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
/ filters is either ArrayList or ArrayList null elts of filters are ignored ret all Profil if filters == null throws KasirException(BAD_RECORD, tableName). possible only if filters = null ret empty Map if (filters = null & table is empty) / all elts of filters = null / filters.isEmpty = true ret Map. never null
public static Map<String,Profil> filterSelectS(Set<? extends Filter<Profil>> filters) throws SQLException, KasirException{ ResultSet rs; if(filters == null) rs = DBSR.takeResultSetByFilterColl(tableName, null, -1, null); else{ //remove null filters / filters with empty asWhereClause, so BAD_RECORD is only detected if filters = null //arg filters isn't modified Set<Filter<Profil>> validFilters = new HashSet<>(); for(Filter<Profil> filter : filters){ if(filter != null && !"".equals(filter.asWhereClause())) validFilters.add(filter); } rs = DBSR.takeResultSetByFilterColl(tableName, null, -1, validFilters); } Map<String,Profil> noIndukProfil = new HashMap<>(DBSR.rowCountRS(rs)); while(rs.next()){ Profil p = Profil.fromResultSet(rs); noIndukProfil.put(p.noInduk, p); } return noIndukProfil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, String> getFilters();", "public Hashtable getFilters() {\n // we need to build the hashtable dynamically\n return globalFilterSet.getFilterHash();\n }", "public Map<String, Object> getFilters() {\n if (filters == null) {\n filters = new HashMap<String, Object>();\n }\n \n return filters;\n }", "public int contarPorCriterio(Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45: 93 */ return this.maquinaDao.contarPorCriterio(filters);\r\n/* 46: */ }", "private boolean filterTable(Map.Entry<CorfuStoreMetadata.TableName,\n CorfuRecord<CorfuStoreMetadata.TableDescriptors, CorfuStoreMetadata.TableMetadata>> table) {\n return (namespace == null || table.getKey().getNamespace().equals(namespace)) &&\n (!taggedTables || table.getValue().getMetadata().getTableOptions().getRequiresBackupSupport());\n }", "protected Map<String, DataFilter> getFilterMap()\r\n {\r\n return getFilterMap(getQueryableDataTypeKeys());\r\n }", "protected Map<String, String> getFilter() {\n\t\tMap<String, String> filterMap = new HashMap<String, String>();\n\t\tfilterMap.clear();\n\t\tString filterGrade = \"\";\n\t\tString elemGrade=\"\";\n\t\t\n\t\tString eleGrade = getSelectedFilter(eleGradePanelUc);\n\t\tif (!eleGrade.isEmpty()) {\n\t\t\tfilterGrade+=eleGrade;\n\t\t}\n\t\tString midGrade = getSelectedFilter(middleGradePanelUc);\n\t\tif (!midGrade.isEmpty()) {\n\t\t\tif(filterGrade.equals(\"\")){\n\t\t\t\tif(elemGrade.isEmpty()){\n\t\t\t\t\tfilterGrade+=midGrade;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tfilterGrade+=\",\"+midGrade;\n\t\t\t}\n\t\t}\n\t\tString highGrade = getSelectedFilter(highrGradePanelUc);\n\t\tif (!highGrade.isEmpty()) {\n\t\t\tif(filterGrade.equals(\"\")){\n\t\t\t\tfilterGrade+=highGrade;\n\t\t\t}else{\n\t\t\t\tfilterGrade+=\",\"+highGrade;\n\t\t\t}\n\t\t}\n\t\tif(filterGrade!=null && !filterGrade.equals(\"\")){\n\t\t\tfilterMap.put(IsSearchView.GRADE_FLT, filterGrade);\n\t\t}\n\t\tString selectedSubject = getSelectedFilter(subjectPanelUc, \"~~\");\n\t\tif (!selectedSubject.isEmpty()) {\n\t\t\tfilterMap.put(IsSearchView.SUBJECT_FLT, selectedSubject);\n\t\t}\n\t\treturn filterMap;\n\t}", "Parameters genParamatersFromFilters(TableFields tableFields, String filters);", "private RuntimeFilterInfo generateRuntimeFilterInfo (HashJoinPrel hashJoinPrel) throws RuntimeException {\n List<RuntimeFilterEntry> partitionColumns = new ArrayList<>();\n List<RuntimeFilterEntry> nonPartitionColumns = new ArrayList<>();\n\n JoinRelType joinRelType = hashJoinPrel.getJoinType();\n JoinInfo joinInfo = hashJoinPrel.analyzeCondition();\n boolean allowRuntimeFilter = (joinInfo.isEqui()) && (joinRelType == JoinRelType.INNER || joinRelType == JoinRelType.RIGHT);\n if (!allowRuntimeFilter) {\n return null;\n }\n\n final RelNode currentLeft;\n final RelNode currentRight;\n final List<Integer> leftKeys;\n final List<Integer> rightKeys;\n\n //identify probe sie and build side prel tree\n if (hashJoinPrel.isSwapped()) {\n currentLeft = hashJoinPrel.getRight();\n currentRight = hashJoinPrel.getLeft();\n leftKeys = hashJoinPrel.getRightKeys();\n rightKeys = hashJoinPrel.getLeftKeys();\n } else {\n currentLeft = hashJoinPrel.getLeft();\n currentRight = hashJoinPrel.getRight();\n leftKeys = hashJoinPrel.getLeftKeys();\n rightKeys = hashJoinPrel.getRightKeys();\n }\n\n // find exchange node from build side\n ExchangePrel rightExchangePrel = findExchangePrel(currentRight);\n ExchangePrel leftExchangePrel = findExchangePrel(currentLeft);\n if(rightExchangePrel == null && leftExchangePrel == null) {\n //does not support single fragment mode, that is the right build side can\n //only be BroadcastExchangePrel or HashToRandomExchangePrel\n return null;\n }\n List<String> leftFields = currentLeft.getRowType().getFieldNames();\n List<String> rightFields = currentRight.getRowType().getFieldNames();\n\n int keyIndex = 0;\n for (Integer leftKey : leftKeys) {\n String leftFieldName = leftFields.get(leftKey);\n Integer rightKey = rightKeys.get(keyIndex++);\n String rightFieldName = rightFields.get(rightKey);\n\n //This also avoids the left field of the join condition with a function call.\n ScanPrelBase scanPrel = findLeftScanPrel(leftFieldName, currentLeft);\n if (scanPrel != null) {\n //if contains block node on path from join to scan, we may not push down runtime filter\n if(hasBlockNode((Prel) currentLeft, scanPrel)) {\n return null;\n }\n PrelSequencer.OpId opId = prelOpIdMap.get(scanPrel);\n int probeScanMajorFragmentId = opId.getFragmentId();\n int probeScanOperatorId = opId.getAsSingleInt();\n RuntimeFilterEntry runtimeFilterEntry = new RuntimeFilterEntry(leftFieldName, rightFieldName, probeScanMajorFragmentId, probeScanOperatorId);\n if (isPartitionColumn(scanPrel, leftFieldName)) {\n partitionColumns.add(runtimeFilterEntry);\n } else {\n nonPartitionColumns.add(runtimeFilterEntry);\n }\n } else {\n return null;\n }\n }\n\n return new RuntimeFilterInfo.Builder()\n .nonPartitionJoinColumns(nonPartitionColumns)\n .partitionJoinColumns(partitionColumns)\n .isBroadcastJoin((rightExchangePrel instanceof BroadcastExchangePrel))\n .build();\n }", "public int contarPorCriterio(Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45:95 */ return this.categoriaArticuloServicioDao.contarPorCriterio(filters);\r\n/* 46: */ }", "private void cargarFiltros(Map<String, String> filters)\r\n/* 81: */ {\r\n/* 82:107 */ filters.put(\"numero\", String.valueOf(getDimension()));\r\n/* 83: */ }", "private RuntimeFilterInfo generateRuntimeFilterInfo (HashJoinPrel hashJoinPrel) throws RuntimeException {\n List<RuntimeFilterEntry> partitionColumns = new ArrayList<>();\n List<RuntimeFilterEntry> nonPartitionColumns = new ArrayList<>();\n\n JoinRelType joinRelType = hashJoinPrel.getJoinType();\n JoinInfo joinInfo = hashJoinPrel.analyzeCondition();\n if (!joinInfo.isEqui()) {\n return null;\n }\n\n if ((joinRelType == JoinRelType.LEFT && !hashJoinPrel.isSwapped())\n || (joinRelType == JoinRelType.RIGHT && hashJoinPrel.isSwapped())\n || joinRelType == JoinRelType.FULL) {\n return null;\n }\n\n final RelNode currentProbe;\n final RelNode currentBuild;\n final List<Integer> probeKeys;\n final List<Integer> buildKeys;\n\n //identify probe sie and build side prel tree\n if (hashJoinPrel.isSwapped()) {\n currentProbe = hashJoinPrel.getRight();\n currentBuild = hashJoinPrel.getLeft();\n probeKeys = hashJoinPrel.getRightKeys();\n buildKeys = hashJoinPrel.getLeftKeys();\n } else {\n currentProbe = hashJoinPrel.getLeft();\n currentBuild = hashJoinPrel.getRight();\n probeKeys = hashJoinPrel.getLeftKeys();\n buildKeys = hashJoinPrel.getRightKeys();\n }\n\n // find exchange node from build side\n ExchangePrel buildExchangePrel = findExchangePrel(currentBuild);\n ExchangePrel probeExchangePrel = findExchangePrel(currentProbe);\n if(buildExchangePrel == null && probeExchangePrel == null) {\n //does not support single fragment mode, that is the right build side can\n //only be BroadcastExchangePrel or HashToRandomExchangePrel\n return null;\n }\n List<String> rightFields = currentBuild.getRowType().getFieldNames();\n\n for (Pair<Integer,Integer> keyPair : Pair.zip(probeKeys, buildKeys)) {\n Integer probeKey = keyPair.left;\n Integer buildKey = keyPair.right;\n String buildFieldName = rightFields.get(buildKey);\n\n //This also avoids the left field of the join condition with a function call.\n if (!(currentProbe instanceof Prel)) {\n return null;\n }\n List<ColumnOriginScan> columnOrigins = ((Prel) currentProbe).accept(new FindScanVisitor(), probeKey);\n columnOrigins.stream()\n .filter(Objects::nonNull)\n .forEach(columnOrigin -> {\n Prel scanPrel = columnOrigin.getScan();\n String leftFieldName = columnOrigin.getField();\n PrelSequencer.OpId opId = prelOpIdMap.get(scanPrel);\n int probeScanMajorFragmentId = opId.getFragmentId();\n int probeScanOperatorId = opId.getAsSingleInt();\n RuntimeFilterEntry runtimeFilterEntry = new RuntimeFilterEntry(leftFieldName, buildFieldName, probeScanMajorFragmentId, probeScanOperatorId);\n if (isPartitionColumn(scanPrel, leftFieldName)) {\n partitionColumns.add(runtimeFilterEntry);\n } else {\n nonPartitionColumns.add(runtimeFilterEntry);\n }\n });\n }\n if(!partitionColumns.isEmpty() || !nonPartitionColumns.isEmpty()) {\n return new RuntimeFilterInfo.Builder()\n .nonPartitionJoinColumns(nonPartitionColumns)\n .partitionJoinColumns(partitionColumns)\n .isBroadcastJoin((buildExchangePrel instanceof BroadcastExchangePrel))\n .build();\n } else {\n return null;\n }\n\n }", "private void validateFilters() {\r\n\t\t// There should be a column matching each filter\r\n\t\tList<FilterEnumeration> list = this.filterConfig.getFilters();\r\n\t\tif(list != null){\r\n\t\t\tfor(FilterEnumeration filter: list){\r\n\t\t\t\t// Do we have a column matching this filter?\r\n\t\t\t\tHeaderData header = map.get(filter.getColumnId());\r\n\t\t\t\tif(header == null) throw new IllegalArgumentException(\"Cannot find a column matching FilterEnumeration colum id: \"+filter.getColumnId());\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "public HashMap<String, Object> convert() {\n HashMap<String, Object> condMap = new HashMap<String, Object>();\n condMap.put(CommonSpecification.PARAMETERS, paramList);\n condMap.put(CommonSpecification.FETCH_TABLES, fetchTables);\n condMap.put(CommonSpecification.JOIN_TABLES, joinTables);\n condMap.put(CommonSpecification.SORT, sort);\n return condMap;\n }", "public List<TableData> filter(List<TableData> incomeData) throws Exception{\r\n return filterByNote(filterByCategory(filterByDate(incomeData)));\r\n }", "@Override\n public List<BankAccount> findAllByFilters(Map<String, String> map1) {\n try {\n\n CriteriaBuilder builder = manager.getCriteriaBuilder();\n CriteriaQuery<BankAccount> criteria = builder.createQuery(BankAccount.class);\n Root<BankAccount> root = criteria.from(BankAccount.class);\n\n criteria.distinct(true).select(root);\n\n TypedQuery<BankAccount> banksAccountsQuery = manager.createQuery(criteria);\n\n if(map1.get(\"page\")!=null && map1.get(\"limit\")!=null){\n banksAccountsQuery.setFirstResult(Integer.parseInt(map1.get(\"page\")));\n banksAccountsQuery.setMaxResults(Integer.parseInt(map1.get(\"limit\")));\n }\n\n return banksAccountsQuery.getResultList();\n\n }catch (Exception e){\n\n log.error(e.getMessage());\n List<BankAccount> bankAccountsError = new ArrayList<>();\n BankAccount bankAccountError = new BankAccount();\n bankAccountError.setId(-500L);\n bankAccountsError.add(bankAccountError);\n\n return bankAccountsError;\n }\n }", "Map<String, Object> getFilterScratchpad();", "public static Map<String,Profil> selectS(Set<String> noInduks) throws SQLException, KasirException{\r\n ResultSet rs;\r\n Map<String,Profil> noIndukProfil;\r\n if(noInduks == null){\r\n rs = DBSR.takeResultSetByStringColl(tableName, noIndukColName, -1, null);\r\n\r\n noIndukProfil = new HashMap<>(DBSR.rowCountRS(rs)); \r\n rs.beforeFirst();\r\n while(rs.next()){\r\n Profil p = Profil.fromResultSet(rs);\r\n noIndukProfil.put(p.noInduk, p);\r\n }\r\n }else{\r\n Set<String> validNoInduk = new HashSet<>(CollectionUtils.subtract(noInduks, Arrays.asList(null, \"\")));\r\n rs = DBSR.takeResultSetByStringColl(tableName, noIndukColName, -1, validNoInduk);\r\n\r\n noIndukProfil = new HashMap<>(validNoInduk.size()); \r\n for(String noInduk : validNoInduk){\r\n try{\r\n noIndukProfil.put(noInduk, Profil.fromResultSet(rs, noInduk));\r\n }catch(KasirException e){\r\n noIndukProfil.put(noInduk, null);\r\n }\r\n }\r\n }\r\n\r\n return noIndukProfil;\r\n }", "public List<Map<String, String>> getTable(String tableName) {\n return getTable(tableName, 1, 9999);\n\n }", "protected static Map<String, Object> prepareQueryForSelection(JsonObject parameters) {\n Map<String, Object> queryFilters = new HashMap<String, Object>();\n\n // Date fields\n processDateFilter(Entity.CREATION_DATE, parameters, queryFilters);\n processDateFilter(Entity.MODIFICATION_DATE, parameters, queryFilters);\n\n // String fields\n processStringFilter(Consumer.EMAIL, parameters, queryFilters);\n processStringFilter(Consumer.JABBER_ID, parameters, queryFilters);\n processStringFilter(Consumer.NAME, parameters, queryFilters);\n processStringFilter(Consumer.TWITTER_ID, parameters, queryFilters);\n\n // Long fields\n processLongFilter(Consumer.FACEBOOK_ID, parameters, queryFilters);\n\n return queryFilters;\n }", "@RequestMapping(value = { \"/hip/tableIdFilter\" }, method = RequestMethod.POST)\n\t/**\n\t * \n\t * @param plt_id\n\t * @param feed_id\n\t * @param tbl_id\n\t * @param run_id\n\t * @param map\n\t * @param sdate\n\t * @param edate\n\t * @return ModelAndView tableIdFilter\n\t * @throws Exception\n\t */\n\tpublic ModelAndView tableIdFilter(@Valid @ModelAttribute(\"plt_id\") final String plt_id,\n\t\t\t@ModelAttribute(\"feed_id\") final String feed_id, @ModelAttribute(\"tbl_id\") final String tbl_id,\n\t\t\t@ModelAttribute(\"run_id\") final String run_id, final ModelMap map,\n\t\t\t@Valid @RequestParam(\"sdate\") final String sdate, @Valid @RequestParam(\"edate\") final String edate)\n\t\t\tthrows Exception {\n\n\t\tArrayList<String> tblArrBatchDate = new ArrayList<String>();\n\t\tArrayList<String> tblArrDuration = new ArrayList<String>();\n\t\tArrayList<String> tblArrCount = new ArrayList<String>();\n\t\tArrayList<HipDashboardDTO> tblArrHipDashboard = this.hipService.getTableDashboardChartLoggerStats(plt_id,\n\t\t\t\tfeed_id, tbl_id, run_id, sdate, edate);\n\t\tmap.addAttribute(\"tblArrHipDashboard\", tblArrHipDashboard);\n\t\tArrayList<Integer> arrDurationInt = new ArrayList<Integer>();\n\t\tArrayList<Integer> arrCountInt = new ArrayList<Integer>();\n\t\tArrayList<HipDashboardDTO> metadatarr = this.hipService.getColumnMetadata(feed_id, tbl_id, run_id);\n\t\tmap.addAttribute(\"metadatarr\", metadatarr);\n\t\tif (tblArrHipDashboard.isEmpty()) {\n\n\t\t} else {\n\t\t\tfor (HipDashboardDTO hipVO : tblArrHipDashboard) {\n\t\t\t\tarrDurationInt.add(Integer.parseInt(hipVO.getDuration()));\n\t\t\t\tarrCountInt.add(Integer.parseInt(hipVO.getTable_count()));\n\t\t\t\ttblArrBatchDate.add(hipVO.getBatch_date().toString());\n\t\t\t\ttblArrDuration.add(hipVO.getDuration());\n\t\t\t\ttblArrCount.add(hipVO.getTable_count());\n\n\t\t\t}\n\t\t\tmap.addAttribute(\"feed_id\", feed_id);\n\t\t\tmap.addAttribute(\"tbl_x\", tblArrBatchDate);\n\t\t\tmap.addAttribute(\"tbl_y\", tblArrDuration);\n\t\t\tmap.addAttribute(\"tbl_z\", tblArrCount);\n\t\t\tmap.addAttribute(\"stat\", 2);\n\t\t\tmap.addAttribute(\"tbl_max_duration\", Collections.max(arrDurationInt));\n\t\t\tmap.addAttribute(\"tbl_min_duration\", Collections.min(arrDurationInt));\n\t\t\tmap.addAttribute(\"tbl_avg_duration\", calculateAverage(arrDurationInt));\n\t\t\tmap.addAttribute(\"tbl_max_count\", Collections.max(arrCountInt));\n\t\t\tmap.addAttribute(\"tbl_min_count\", Collections.min(arrCountInt));\n\t\t\tmap.addAttribute(\"tbl_avg_count\", calculateAverage(arrCountInt));\n\n\t\t}\n\n\t\treturn new ModelAndView(\"/hip/hipTableDashboard\");\n\t}", "private void inicializarFiltros() {\r\n filtros = new HashMap<String, String>();\r\n filtros.put(\"parametroNombre\", null);\r\n filtros.put(\"parametroApellido\", null);\r\n filtros.put(\"parametroDocumento\", null);\r\n filtros.put(\"parametroTipoDocumento\", null);\r\n filtros.put(\"parametroCorreo\", null);\r\n filtros.put(\"parametroUsuario\", null);\r\n filtros.put(\"parametroEstado\", null);\r\n filtros.put(\"parametroGenero\", null);\r\n agregarFiltrosAdicionales();\r\n }", "String genWhereConditionsFromFilters(TableFields tableFields, String filters);", "public static HashMap<String, String> getCountAllEligibilityAndApplianceStatus() {\n\t\tHashMap<String, String> map = new HashMap<>();\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\t\t\tResultSet resultSet = connection.prepareCall(\r\n\t\t\t\t\t\"{CALL count_all_eligibility_and_appliance_status}\")\r\n\t\t\t\t\t.executeQuery();\r\n\t\t\tint accepted = 0;\r\n\t\t\tint rejected = 0;\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tString status = resultSet.getString(\"t.status\");\r\n\t\t\t\tif (status != null && !status.isEmpty()) {\r\n\t\t\t\t\tif (status.equals(\"appliance_status\")) {\r\n\r\n\t\t\t\t\t\tif (resultSet.getInt(\"status\") == 0) {\r\n\t\t\t\t\t\t\tmap.put(\"Inactive\", resultSet.getInt(1) + \"\");\r\n\t\t\t\t\t\t} else if (resultSet.getInt(\"status\") == 1) {\r\n\t\t\t\t\t\t\tmap.put(\"Active\", resultSet.getInt(1) + \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (status.equals(\"eligibility_status\")) {\r\n\t\t\t\t\t\tif (resultSet.getInt(\"status\") == 0) {\r\n\t\t\t\t\t\t\tmap.put(\"Applied\", resultSet.getInt(1) + \"\");\r\n\t\t\t\t\t\t} else if (resultSet.getInt(\"status\") == 1\r\n\t\t\t\t\t\t\t\t|| resultSet.getInt(\"status\") == 6) {\r\n\t\t\t\t\t\t\taccepted += resultSet.getInt(1);\r\n\t\t\t\t\t\t\t// System.out.println(\"Current Accepted\r\n\t\t\t\t\t\t\t// \"+resultSet.getInt(1));\r\n\t\t\t\t\t\t\tSystem.out.println(\"Accepted : \" + accepted);\r\n\t\t\t\t\t\t\tmap.put(\"Accepted\", accepted + \"\");\r\n\t\t\t\t\t\t} else if (resultSet.getInt(\"status\") == 2\r\n\t\t\t\t\t\t\t\t|| resultSet.getInt(\"status\") == 4) {\r\n\t\t\t\t\t\t\trejected += resultSet.getInt(1);\r\n\t\t\t\t\t\t\t// System.out.println(\"Rejected : \"+rejected);\r\n\t\t\t\t\t\t\tmap.put(\"Rejected\", rejected + \"\");\r\n\t\t\t\t\t\t} else if (resultSet.getInt(\"status\") == 3) {\r\n\t\t\t\t\t\t\tmap.put(\"NotInterested\", resultSet.getInt(1) + \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// maps.add(map);\r\n\r\n\t\t\t}\r\n\t\t\tconnection.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "private ArrayList<HashMap<String, String>> processRetrieve() {\n //Transform and Return Rows to a List of HashMaps\n try {\n if (rs == null) {\n System.out.println(\"rs is null\");\n } else {\n return rsToMaps();\n }\n } catch (SQLException ex) {\n throw new RuntimeException(ex);\n }\n return null;\n }", "public Map<String, Filter> getFilters() {\n return filters;\n }", "List<Map<String, Object>> getAllItems(String tableName);", "public void filterTable(String filter) {\n\t\tif (fullBackup.isEmpty() || fullBackup == null) {\n\t\t\tfullBackup.addAll(list);\n\t\t}\n\n\t\t// always clear selected items\n\t\tselectionModel.clear();\n\t\tlist.clear();\n\n\t\tif (filter.equalsIgnoreCase(\"\")) {\n\t\t\tlist.addAll(fullBackup);\n\t\t} else {\n\t\t\tfor (Attribute attr : fullBackup){\n\t\t\t\t// store facility by filter\n\t\t\t\tif (attr.getFriendlyName().toLowerCase().startsWith(filter.toLowerCase())) {\n\t\t\t\t\tlist.add(attr);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t\tloaderImage.loadingFinished();\n\n\t}", "@Override\n protected SerializablePredicate<T> getFilter(Query<T, Void> query) {\n return Optional.ofNullable(inMemoryDataProvider.getFilter())\n .orElse(item -> true);\n }", "public HashMap<CellID, Set<MetadataID> > searchMetadata(MetadataSearchFilters filters){\n // pass in a listener to notify, rather than sending directly to a connection\n logger.log(Level.INFO, \"[META SERVICE] global search with \" + filters.filterCount() + \" filters\");\n return db.searchMetadata(filters);\n }", "public synchronized static List<String> loadStoresByProfile(Connection c, String profil, int lim) throws SQLException {\r\n List<String> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE '\" + profil +\"%' limit \"+ lim);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n// Statement myStmt2 = c.createStatement();\r\n// //The query which selects all the shops.\r\n// ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n// List<TypeStore> list = new ArrayList<>();\r\n// while (myRs2.next()) {\r\n// int idtype = myRs2.getInt(\"idType\");\r\n// String designationType = myRs2.getString(\"designation\");\r\n// TypeStore T = new TypeStore(idtype, designationType);\r\n// list.add(T);\r\n// }\r\n filteredShopList.add(designation);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }", "@Override\n public SqlDatabaseTable filter(SqlDatabaseTable table, List<FilterRule> filterRules) {\n if (filterRules.isEmpty()) return table;\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"SELECT * FROM \").append(table.getFullRef());\n sql.append(\" WHERE\");\n for (int i = 0; i < filterRules.size(); i++) {\n FilterRule filterRule = filterRules.get(i);\n if (filterRule instanceof ColumnFilterRule) {\n int lhs = ((ColumnFilterRule) filterRule).getRowId();\n int rhs = ((ColumnFilterRule) filterRule).getAnotherRowId();\n sql.append(\" `_\").append(lhs).append(\"`=`_\").append(rhs).append(\"`\");\n } else if (filterRule instanceof ConstantFilterRule) {\n int rowId = ((ConstantFilterRule) filterRule).getRowId();\n String value = ((ConstantFilterRule) filterRule).getValue();\n sql.append(\" `_\").append(rowId).append(\"`='\").append(value).append(\"'\");\n } else {\n throw new IllegalArgumentException();\n }\n if (i != filterRules.size() - 1) {\n sql.append(\" AND\");\n }\n }\n\n return new SqlDatabaseQueryTable(sql.toString(), table.getArity());\n }", "@Override\n\tpublic List<HashMap<String, Object>> getMetaListByTableName(String tableName,String condition) {\n\t\tList<HashMap<String, Object>> hm = metaDao.getMetaListByTableName(tableName,condition);\n\t\treturn hm;\n\t}", "private Map<String, Object> dealWithMap(Map<String, Object> paramMap)\n {\n Set<String> set = new HashSet<String>();\n for (String colName : defaultValColArr)\n {\n set.add(colName);\n }\n for (String colName : pkColArr)\n {\n set.add(colName);\n }\n Iterator<String> iterator = set.iterator();\n while (iterator.hasNext())\n {\n String colName = iterator.next();\n if (paramMap.get(colName) == null)\n {\n paramMap.remove(colName);\n }\n }\n return paramMap;\n }", "public Map<String, Set<Object>> getPrimaryFilters() {\n return primaryFilters;\n }", "public Map getPredicatesInfo()\n {\n return this.predicatesInfo;\n }", "@Test\n public void testGetHeadersByFilter_whenFiltersIsNull() {\n\n MockHttpServletRequest request = new MockHttpServletRequest();\n request.addHeader(\"cookie\", \"JSESSIONID=276D58AC17ABB217997C59EA33414274\");\n request.addHeader(\"accept\", \"text/html\");\n\n List<String> filters = null;\n Map<String, List<String>> expResult = new HashMap<>();\n\n HeadersService instance = new HeadersService();\n Map<String, List<String>> result = instance.getHeadersByFilter(request, filters);\n assertEquals(expResult, result);\n }", "public static WFJFilterMap[] findFilterMaps() {\n return filterMaps.asArray();\n }", "public static ArrayList<Result> search(HashMap<String,ArrayList<String>> map) {\n result = new ArrayList<>();\n finalResult = new ArrayList<>();\n \n String input = map.get(\"search\").get(0);\n searchByName(input);\n \n ArrayList<String> type = map.get(\"type\");\n if(type.isEmpty());\n else for(String t:type){\n searchByType(t);\n result = finalResult;\n }\n \n //<editor-fold defaultstate=\"collapsed\" desc=\"FILTERS\">\n ArrayList<ArrayList<String>> filters = new ArrayList<>();\n filters.add(map.get(\"brand\"));\n filters.add(map.get(\"price\"));\n filters.add(map.get(\"os\"));\n filters.add(map.get(\"memory\"));\n filters.add(map.get(\"storage\"));\n filters.add(map.get(\"numberOfSimSlots\"));\n filters.add(map.get(\"f_camera\"));\n filters.add(map.get(\"b_camera\"));\n /**\n * ArrayList of filters from Mobile Phone\n * 0 = Brand | brand\n * 1 = Price | price\n * 2 = OS | os\n * 3 = Memory | memory\n * 4 = Storage | storage\n * 5 = SIM slots | numberOfSimSlots\n * 6 = Camera front | f_camera\n * 7 = Camera back | b_camera\n */\n int filterMode = 0;\n while(filterMode<filters.size()){\n// for(Result r:result){\n// System.out.println(r.getMP().getFullName());\n// }\n// System.out.println(\"filtermode: \"+filterMode);\n finalResult = new ArrayList<>();\n if(filters.get(filterMode).isEmpty()||filters.get(filterMode).get(0).equals(\"\")){\n filterMode++;\n continue;\n }\n filter(filterMode,filters.get(filterMode++));\n result = finalResult;\n }\n //</editor-fold>\n return result;\n }", "default <K> List<Condition> composeFilterConditionsForPrimaryKeyOfEntity(T entity) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tfor (Attribute<T, ?> attr : getPrimaryAttributes()) {\n\t\t\tconditions.add(Condition.eq(attr, attr.getValue(entity)));\n\t\t}\n\t\treturn conditions;\n\t}", "private static Map<Boolean, List<StudentRecord>> razvrstajProlazPad(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.collect(Collectors.partitioningBy(o -> o.getOcjena() > 1));\n\t}", "public LinkedHashMap<String, LinkedHashSet<String>> getConditionsFromTable() {\n\t\tLinkedHashMap<String, LinkedHashSet<String>> toReturn = new LinkedHashMap<String, LinkedHashSet<String>>();\n\t\tfor (int i = 0; i < modelCondTable.getRowCount(); i++) {\n\t\t\tString key = (String) modelCondTable.getValueAt(i, 0);\n\t\t\tString value = (String) modelCondTable.getValueAt(i, 1);\n\t\t\tLinkedHashSet<String> setValue = new LinkedHashSet<String>(Arrays.asList(value.split(\";\")));\n\n\t\t\ttoReturn.put(key, setValue);\n\t\t}\n\t\treturn toReturn;\n\t}", "private void updateFilteredData() {\n\t\tswitch (currentTabScreen) {\n\t\tcase INVENTORY:\n\t\t\tpresentationInventoryData.clear();\n\n\t\t\tfor (RecordObj record: masterInventoryData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInventoryData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\tpresentationInitialData.clear();\n\n\t\t\tfor (RecordObj record: masterInitialData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInitialData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase SEARCH:\n\t\t\tpresentationSearchData.clear();\n\n\t\t\tfor (RecordObj record: masterSearchData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationSearchData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}// End switch statement\n\t}", "protected Map<String, DataFilter> getFilterMap(Collection<? extends String> keys)\r\n {\r\n Map<String, DataFilter> filterMap = New.map();\r\n for (String key : keys)\r\n {\r\n filterMap.put(key, myToolbox.getDataFilterRegistry().getLoadFilter(key));\r\n }\r\n return filterMap;\r\n }", "KTable<K, V> filter(Predicate<K, V> predicate);", "protected boolean analyzeTable(final Parameter _parameter,\n final IFilterList _filterlist,\n final QueryBuilder _queryBldr,\n final Type _type)\n throws EFapsException\n {\n boolean exec = true;\n if (CollectionUtils.isNotEmpty(_filterlist)) {\n // filtering\n for (final IFilter filter : _filterlist) {\n final Field field = Field.get(filter.getFieldId());\n if (field.getFilter().getType().equals(FilterType.FREETEXT)\n || field.getFilter().getType().equals(FilterType.FORM)\n && field.getFilter().getAttributes() != null) {\n String attrName = field.getAttribute();\n String[] attrNames = null;\n if (field.getFilter().getAttributes() != null) {\n if (field.getFilter().getAttributes().contains(\",\")) {\n attrNames = field.getFilter().getAttributes().split(\",\");\n } else {\n attrName = field.getFilter().getAttributes();\n }\n }\n if (attrNames != null) {\n exec = addInsideRangeFilter(_parameter, filter, _queryBldr, _type, attrNames);\n } else {\n if (attrName != null && _type.getAttribute(attrName) != null) {\n exec = addFilter(_parameter, filter, _queryBldr, _type, attrName);\n } else {\n exec = addFilter4Select(_parameter, filter, _queryBldr, _type, field.getSelect());\n }\n }\n if (!exec) {\n break;\n }\n } else if (field.getFilter().getType().equals(FilterType.CLASSIFICATION)) {\n exec = addClassFilter(_parameter, filter, _queryBldr, _type);\n } else if (field.getFilter().getType().equals(FilterType.STATUS)) {\n exec = addStatusFilter(_parameter, filter, _queryBldr, _type);\n }\n }\n }\n return exec;\n }", "@Override\r\n public List<Map<String, Object>> findAllRecords(String tableName, int upperLimit) throws SQLException {\r\n List<Map<String, Object>> records = new ArrayList();\r\n String sqlQuery = (upperLimit > 0) ? \"SELECT * FROM \" + tableName + \" LIMIT \" + upperLimit : \"SELECT * FROM \" + tableName;\r\n if (connection != null) {\r\n\r\n Statement sqlStatement = connection.createStatement();\r\n ResultSet rs = sqlStatement.executeQuery(sqlQuery);\r\n ResultSetMetaData rsmd = rs.getMetaData();\r\n int columnCount = rsmd.getColumnCount();\r\n while (rs.next()) {\r\n Map<String, Object> record = new HashMap();\r\n for (int i = 1; i <= columnCount; i++) {\r\n record.put(rsmd.getColumnName(i), rs.getObject(i));\r\n }\r\n records.add(record);\r\n }\r\n } else {\r\n System.out.println(\"No connection could be established\");\r\n }\r\n return records;\r\n }", "private Map<String, Object> dealWithMap(Map<String, Object> paramMap) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor (String colName : defaultValColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tfor (String colName : pkColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tIterator<String> iterator = set.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tString colName = iterator.next();\n\t\t\tif(paramMap.get(colName) == null) {\n\t\t\t\tparamMap.remove(colName);\n\t\t\t}\n\t\t}\n\t\treturn paramMap;\n\t}", "List<String> getActiveFilters();", "public StringBuilder adminQueryGroupFilterCondInfo(HttpServletRequest req) throws Exception {\n StringBuilder sBuilder = new StringBuilder(512);\n BdbGroupFilterCondEntity webGroupFilterCondEntity =\n new BdbGroupFilterCondEntity();\n try {\n webGroupFilterCondEntity\n .setTopicName(WebParameterUtils.validStringParameter(\"topicName\",\n req.getParameter(\"topicName\"),\n TBaseConstants.META_MAX_TOPICNAME_LENGTH,\n false, null));\n webGroupFilterCondEntity\n .setConsumerGroupName(WebParameterUtils.validGroupParameter(\"groupName\",\n req.getParameter(\"groupName\"),\n TBaseConstants.META_MAX_GROUPNAME_LENGTH,\n false, null));\n webGroupFilterCondEntity\n .setCreateUser(WebParameterUtils.validStringParameter(\"createUser\",\n req.getParameter(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n false, null));\n webGroupFilterCondEntity\n .setControlStatus(WebParameterUtils.validIntDataParameter(\"condStatus\",\n req.getParameter(\"condStatus\"),\n false,\n TBaseConstants.META_VALUE_UNDEFINED,\n 0));\n Set<String> filterCondSet =\n WebParameterUtils.checkAndGetFilterCondSet(req.getParameter(\"filterConds\"), true, false, sBuilder);\n List<BdbGroupFilterCondEntity> webGroupCondEntities =\n brokerConfManager.confGetBdbAllowedGroupFilterCondSet(webGroupFilterCondEntity);\n SimpleDateFormat formatter =\n new SimpleDateFormat(TBaseConstants.META_TMP_DATE_VALUE);\n int j = 0;\n sBuilder.append(\"{\\\"result\\\":true,\\\"errCode\\\":0,\\\"errMsg\\\":\\\"OK\\\",\\\"data\\\":[\");\n for (BdbGroupFilterCondEntity entity : webGroupCondEntities) {\n if (!filterCondSet.isEmpty()) {\n String filterItems = entity.getAttributes();\n if (filterItems.length() == 2\n && filterItems.equals(TServerConstants.TOKEN_BLANK_FILTER_CONDITION)) {\n continue;\n } else {\n boolean allInc = true;\n for (String filterCond : filterCondSet) {\n if (!filterItems.contains(filterCond)) {\n allInc = false;\n break;\n }\n }\n if (!allInc) {\n continue;\n }\n }\n }\n if (j++ > 0) {\n sBuilder.append(\",\");\n }\n sBuilder.append(\"{\\\"topicName\\\":\\\"\").append(entity.getTopicName())\n .append(\"\\\",\\\"groupName\\\":\\\"\").append(entity.getConsumerGroupName())\n .append(\"\\\",\\\"condStatus\\\":\").append(entity.getControlStatus());\n if (entity.getAttributes().length() <= 2) {\n sBuilder.append(\",\\\"filterConds\\\":\\\"\\\"\");\n } else {\n sBuilder.append(\",\\\"filterConds\\\":\\\"\")\n .append(entity.getAttributes())\n .append(\"\\\"\");\n }\n sBuilder.append(\",\\\"createUser\\\":\\\"\").append(entity.getCreateUser())\n .append(\"\\\",\\\"createDate\\\":\\\"\").append(formatter.format(entity.getCreateDate()))\n .append(\"\\\"}\");\n }\n sBuilder.append(\"],\\\"count\\\":\").append(j).append(\"}\");\n } catch (Exception e) {\n sBuilder.delete(0, sBuilder.length());\n sBuilder.append(\"{\\\"result\\\":false,\\\"errCode\\\":400,\\\"errMsg\\\":\\\"\")\n .append(e.getMessage()).append(\"\\\",\\\"count\\\":0,\\\"data\\\":[]}\");\n }\n return sBuilder;\n }", "public List<Map<String, Object>> searchDBTableDate(String condition) {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"search db table data\");\n// TrafferCurrentDB();\n List<Map<String, Object>> list = queryMap(condition);\n if (StringUtils.isEmpty(list)) {\n throw new SQLException(SQLError, SQLError);\n }\n if (list.size() == 0) {\n List<String> tableNameList = (List<String>) session.getAttribute(\"list\");\n String DBName = (String) session.getAttribute(\"dbName\");\n tableNameList.forEach(\n tableName -> {\n if (condition.contains(tableName)) {\n queryMap(\n \"SELECT column_name FROM information_schema.columns WHERE table_name='\" + dbNameTrim(tableName) + \"' And table_schema='\" + dbNameTrim(DBName) + \"'\").forEach(\n stringObjectMap -> {\n if (!list.contains(stringObjectMap)) {\n list.add(stringObjectMap);\n }\n }\n );\n }\n }\n );\n\n }\n return list;\n }", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "@Override\n\tCriteria getFiltrCriteria(Session session, Filtr filtr) {\n\t\treturn null;\n\t}", "protected Map<String, String> getAssociationFilters(Map<String, String>fieldValues) {\n Map<String, String> associationDetails = new HashMap<String, String>();\n\n for (Iterator<Map.Entry<String, String>> fieldIter = fieldValues.entrySet().iterator(); fieldIter.hasNext(); ) {\n Map.Entry<String, String> field = fieldIter.next();\n if (StringUtils.startsWith(field.getKey(), ASSOC_PREFIX)) {\n fieldIter.remove();\n //add the associated filter to the result ONLY if it contains some value\n if (!StringUtils.isEmpty(field.getValue())) {\n associationDetails.put(field.getKey().replaceFirst(ASSOC_PREFIX + \".\", \"\"), field.getValue());\n }\n }\n }\n\n return associationDetails;\n }", "public Map<String, Boolean> getFilteringResults() {\n return filteringResults;\n }", "public Set<SearchFilterItem> setActiveFilterParams(Model model, HttpServletRequest request) {\n Map<String, String[]> parameterMap = request.getParameterMap();\n model.addAttribute(\"parameterMap\", parameterMap);\n\n\n // exclude non-filter query parameters\n Map<String, String[]> filtersOnlyMap = parameterMap.entrySet().stream()\n .filter(entry -> FILTER_PARAMETER_NAMES.contains(entry.getKey())\n || (\"filterJournals\").equals(entry.getKey()))\n .collect(Collectors.toMap(entry -> entry.getKey(), entry -> entry.getValue()));\n\n Set<SearchFilterItem> activeFilterItems = new LinkedHashSet<>();\n filtersOnlyMap.forEach((filterName, filterValues) -> buildActiveFilterItems(activeFilterItems,\n parameterMap, filterName, filterValues));\n return activeFilterItems;\n }", "private ListMap<String, String> slurpFilters(final File vcf) {\n final ListMap<String, String> map = new ListMap<>();\n final VCFFileReader in = new VCFFileReader(vcf, false);\n for (final VariantContext ctx : in) {\n if (ctx.isNotFiltered()) continue;\n for (final String filter : ctx.getFilters()) {\n map.add(ctx.getID(), filter);\n }\n }\n in.close();\n return map;\n }", "public HashMap<String,String> filterDataForVerification(HashMap<String, String> data)\n {\n\n HashMap<String, String> fillter = new HashMap<String, String>();\n\n //add medical condition description\n String medicalConditionDescription =\n getMedicalConditionDescription(data.get(\"medical_condition_id\"));\n fillter.put(\"medical_condition_description\", medicalConditionDescription);\n\n\n //add medication name\n String medicationName = getMedicationName( data.get(\"medication_num\"));\n\n fillter.put(\"medication_name\", medicationName);\n\n for (String key : data.keySet()) {\n if (key.equals(\"first_name\") || key.equals(\"last_name\") || key.equals(\"street\") ||\n key.equals(\"home_phone_number\") || key.equals(\"email_address\")\n || key.equals(\"house_number\") || key.equals(\"contact_phone\") ||\n key.equals(\"zip_code\") || key.equals(\"birth_date\") || key.equals(\"city\") ||\n key.equals(\"mobile_phone_number\") || key.equals(\"state\")\n || key == \"dosage\")\n fillter.put(key,data.get(key));\n\n if (key.equals(\"gender\"))\n fillter.put(key,convertCodeToGender(data.get(key)));\n }\n return fillter;\n }", "List<Map<String, Object>> getTableValuesWithHeaders();", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter1);", "private static void addUserFilters() {\n List<FiltersByLocation> filtersByLocations=new ArrayList<>();\n List<String> listOfFilterNamesAlreadyAddedUnModified=HealthDataFilter.returnAllFilterNames();\n List<String> listOfFilterNamesAlreadyAdded=new ArrayList<>(listOfFilterNamesAlreadyAddedUnModified);\n\n Set <String> set1=new HashSet<>();\n set1.add(\"\");\n\n String whereForZipFilter1 = createWhereForZipFilter((HashSet<String>) set1);\n\n if (!listOfFilterNamesAlreadyAdded.contains(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME)){\n filtersByLocations.add(new FiltersByLocation(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME ,whereForZipFilter1));\n listOfFilterNamesAlreadyAdded.add(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME);\n }\n\n Map<String, ?> userZipCodeFilters = PreferenceUtility.getUserZipCodeFilters();\n\n for (Map.Entry<String, ?> entry : userZipCodeFilters.entrySet()) {\n //Upper case\n String filterName=entry.getKey().substring(AppConstant.USER_PREF_ZIP_FILTER_PREFIX.length()).toUpperCase();\n String whereForZipFilter = createWhereForZipFilter((HashSet<String>) entry.getValue());\n if (!listOfFilterNamesAlreadyAdded.contains(filterName)){\n filtersByLocations.add(new FiltersByLocation(filterName,whereForZipFilter));\n }\n }\n }", "List<Map<String, Object>> getTableValuesWithHeaders(TableParameters tableParameters);", "private static Map<Boolean, List<StudentRecord>> razvrstajProlazPad(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.collect(Collectors.partitioningBy(s -> s.getGrade() > 1));\n\t}", "public List<Cuenta> buscarCuentasList(Map filtro);", "public List<Reporteador> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 52: */ {\r\n/* 53: 71 */ return this.reporteadorDao.obtenerListaPorPagina(startIndex, pageSize, sortField, sortOrder, filters);\r\n/* 54: */ }", "FilterInfo getActiveFilterInfoForFilter(String filter_id);", "public Collection<Object> getOrderedTestNames(Map<String,String> filter) throws\n NEDSSSystemException , InvalidSRTFilterKeysException {\n\n\n\n ArrayList<Object> returnSet = null;\n String programArea = null;\n String condition = null;\n String orderingFacility = null;\n String orderedTest = null;\n\n programArea = (String) filter.get(SRTFilterKeys.PROGRAM_AREA_CODE);\n condition = (String) filter.get(SRTFilterKeys.CONDITION_CODE);\n orderingFacility = (String) filter.get(SRTFilterKeys.REPORTING_FACILITY_ID);\n orderedTest = (String) filter.get(SRTFilterKeys.ORDERED_TEST_CODE);\n\n if (filter.size() == 1) {\n if (orderingFacility != null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByOrderingFacility(orderingFacility);\n else {\n throw new InvalidSRTFilterKeysException(\"Invalid Filter Key Exception\");\n\n }\n }\n else\n {\n if (programArea != null && orderingFacility != null)\n {\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByPA(programArea, orderingFacility);\n if(returnSet == null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByPA(programArea, \"DEFAULT\");\n }\n\n else if (condition != null && orderingFacility != null)\n {\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByCondition(condition, orderingFacility);\n if(returnSet == null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByCondition(condition, \"DEFAULT\");\n }\n\n else if(orderedTest != null && orderingFacility != null)\n {\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByOrderingFacilityAndTest(orderingFacility, orderedTest);\n if(returnSet == null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByOrderingFacilityAndTest(\"DEFAULT\",orderedTest);\n }\n else\n throw new NEDSSSystemException(\"Invalid Filter Key Exception\");\n\n }\n\n if (returnSet == null)\n return getOrderedTestNamesByOrderingFacility(\"DEFAULT\");\n else\n return returnSet;\n}", "@Override\n public Map<String, ? extends FilterRegistration> getFilterRegistrations() {\n return null;\n }", "private DataTableManager<ShowCategoryDTO> getDataTable( HttpServletRequest request, CategoryFilter filter )\r\n {\r\n // si un objet est déjà présent en session, on l'utilise\r\n Method findMethod = null;\r\n\r\n try\r\n {\r\n findMethod = _serviceCategory.getClass( ).getMethod( PARAMETER_FIND_BY_FILTER_NAME_METHOD, CategoryFilter.class, PaginationProperties.class );\r\n }\r\n catch( Exception e )\r\n {\r\n LOGGER.error( \"Erreur lors de l'obtention du data table : \", e );\r\n }\r\n\r\n DataTableManager<ShowCategoryDTO> dataTableToUse = getAbstractDataTableManager( request, filter, MARK_DATA_TABLE_CATEGORY, JSP_MANAGE_CATEGORYS,\r\n _serviceCategory, findMethod );\r\n\r\n // si pas d'objet en session, il faut ajouter les colonnes à afficher\r\n dataTableToUse.getListColumn( ).clear( );\r\n\r\n if ( dataTableToUse.getListColumn( ).isEmpty( ) )\r\n {\r\n dataTableToUse.addColumn( \"module.stock.billetterie.manage_category.filter.name\", \"name\", true );\r\n dataTableToUse.addFreeColumn( \"module.stock.billetterie.manage_category.actionsLabel\", MACRO_COLUMN_ACTIONS_CATEGORY );\r\n }\r\n\r\n saveDataTableInSession( request, dataTableToUse, MARK_DATA_TABLE_CATEGORY );\r\n\r\n return dataTableToUse;\r\n }", "public List<COSName> getFilters() {\n/* 312 */ List<COSName> retval = null;\n/* 313 */ COSBase filters = this.stream.getFilters();\n/* 314 */ if (filters instanceof COSName) {\n/* */ \n/* 316 */ COSName name = (COSName)filters;\n/* 317 */ retval = new COSArrayList<COSName>(name, (COSBase)name, (COSDictionary)this.stream, COSName.FILTER);\n/* */ }\n/* 319 */ else if (filters instanceof COSArray) {\n/* */ \n/* 321 */ retval = ((COSArray)filters).toList();\n/* */ } \n/* 323 */ return retval;\n/* */ }", "@Override\r\n @Transactional(rollbackFor = InfraccionException.class)\r\n public List<InfraccionDTO> findByFilter(EscenarioIncumplimientoFilter filtro) throws InfraccionException {\r\n LOG.info(\"findByFilter\");\r\n List<InfraccionDTO> retorno=null;\r\n try{\r\n Query query = getFindQuery(filtro);\r\n retorno = InfraccionBuilder.toListInfraccionDTO(query.getResultList());\r\n }catch(Exception e){\r\n LOG.error(\"Error en findByFilter\",e);\r\n }\r\n return retorno;\r\n }", "List<List<Object>> getTableValues(TableParameters tableParameters);", "public static Result<Map<String, String>> getUsers(Connection c){\n PreparedStatement pstmt;\n ResultSet rst;\n Map<String, String> maps=new HashMap<String,String>(); //Maps\n try {\n pstmt = c.prepareStatement(getUserStatement);\n rst=pstmt.executeQuery();\n while(rst.next()){\n String name=rst.getString(\"name\").trim();\n String username=rst.getString(\"username\").trim();\n System.out.println(name+\",\"+username);\n System.out.println(rst.getRow());\n maps.put(username,name);\n }\n\n /* condition to check if the map/databse is empty*/\n if(!maps.isEmpty()){\n return Result.success(maps);\n }\n else{\n return Result.failure(\"There are no user for this table\");\n }\n }\n catch (SQLException e) {\n return Result.fatal(\"Unknown error\");\n }\n }", "@Override\n\tpublic Iterable<Map<String, Object>> findAll() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<Filter> getFilters(AgentContext ctx) {\n\t\tString filtrs = ConfigurationManager.getProperty(Agent.getPropertyName(AGENT_GROUP_NAME, \"list\"));\n\t\tif (filtrs == null) \n {\n filtrs = DEFAULT_FILTERS;\n log.info(LogManager.getHeader(null, \"Filters is null!!!\", null));\n }\n else\n log.info(LogManager.getHeader(null, \"Filters is NOT null!!!\", null));\n\t\tList<String> filters = Arrays.asList(filtrs.split(\",\"));\n\t\tList<Filter> list = new ArrayList<Filter>();\n\t\tfor (String string : filters) {\n\t\t\ttry {\n\t\t\t log.info(LogManager.getHeader(null,\"Get Filters #\",string));\n Class cls = Class.forName(string.trim());\n\t\t\t\tObject obj = cls.newInstance();\n\t\t\t\tif (obj instanceof Filter) {\n\t\t\t\t\tFilter m = (Filter) obj;\n\t\t\t\t\tm.setContext(ctx);\n\t\t\t\t\tlist.add(m);\n\t\t\t\t}\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tlog.info(LogManager.getHeader(null, \"oaidriver_error\",\n \"Class \"+string.trim()+\" not found\"),e);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.info(LogManager.getHeader(null, \"oaidriver_error\",\n\t\t\t\t\t\t\"Impossible to create instance of \"+string.trim()),e);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.info(LogManager.getHeader(null, \"oaidriver_error\",\n\t\t\t\t\t\t\"Class \"+string.trim()+\" doesn't have empty constructor\"),e);\n\t\t\t}\n\t\t}\n\t\treturn list;\n }", "public List introspectTables(TableConfiguration tc) throws SQLException {\n\n // get the raw columns from the DB\n Map columns = getColumns(tc);\n \n if (columns.isEmpty()) {\n warnings.add(Messages.getString(\"Warning.19\", tc.getCatalog(), //$NON-NLS-1$\n tc.getSchema(), tc.getTableName()));\n return null;\n }\n \n removeIgnoredColumns(tc, columns);\n calculateExtraColumnInformation(tc, columns);\n applyColumnOverrides(tc, columns);\n calculateIdentityColumns(tc, columns);\n \n List introspectedTables = calculateIntrospectedTables(tc, columns);\n \n Iterator iter = introspectedTables.iterator();\n while (iter.hasNext()) {\n IntrospectedTableImpl it = (IntrospectedTableImpl) iter.next();\n calculatePrimaryKey(it);\n }\n \n // now introspectedTables has all the columns from all the \n // tables in the configuration. Do some validation...\n\n iter = introspectedTables.iterator();\n while (iter.hasNext()) {\n IntrospectedTableImpl introspectedTable = (IntrospectedTableImpl) iter.next();\n \n ColumnDefinitions cds = introspectedTable.getColumnDefinitions();\n \n if (!cds.hasAnyColumns()) {\n // add warning that the table has no columns, remove from the list\n warnings.add(Messages.getString(\"Warning.1\", introspectedTable.getTable().toString())); //$NON-NLS-1$\n iter.remove();\n } else if (!cds.hasPrimaryKeyColumns()\n && !cds.hasBaseColumns()) {\n // add warning that the table has only BLOB columns, remove from the list\n warnings.add(Messages.getString(\"Warning.18\", introspectedTable.getTable().toString())); //$NON-NLS-1$\n iter.remove();\n } else {\n // now make sure that all columns called out in the configuration\n // actually exist\n reportIntrospectionWarnings(cds, tc, introspectedTable.getTable());\n }\n }\n\n return introspectedTables;\n }", "public void getNetworkFilterParameters(){\n Retrofit retrofit = ApiClient.getClient();\n\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n\n apiInterface.getAccounts().enqueue(new Callback<List<FilterUserModel>>() {\n @Override\n public void onResponse(Call<List<FilterUserModel>> call, Response<List<FilterUserModel>> response) {\n Observable.just(Objects.requireNonNull(response.body()))\n .subscribeOn(Schedulers.io())\n .concatMapIterable((Function<List<FilterUserModel>, Iterable<FilterUserModel>>) filterUserModels -> {\n /**Save to DB*/\n database = FlowManager.getDatabase(DecagonDatabase.class);\n\n FastStoreModelTransaction<FilterUserModel> transaction = FastStoreModelTransaction\n .saveBuilder(FlowManager.getModelAdapter(FilterUserModel.class))\n .addAll(filterUserModels)\n .build();\n\n database.executeTransaction(transaction);\n\n return filterUserModels;\n }).subscribeOn(Schedulers.io())\n .observeOn(Schedulers.newThread())\n .concatMap((Function<FilterUserModel, ObservableSource<List<FilterCountryModel>>>) filterUserModel -> {\n\n Log.e(TAG,\" LIST<COLORS> : \" + filterUserModel.getColors().size() + \" LIST<COUNTRIES>: \" + filterUserModel.getCountries().size());\n\n /**Should add a condition here, if the size is zero, no need to resolve jack*/\n resolveColor(filterUserModel.getColors(), filterUserModel.getId());\n\n return resolveCountries(filterUserModel.getCountries(), filterUserModel.getId());\n }).subscribe(new Observer<List<FilterCountryModel>>() {\n @Override\n public void onSubscribe(Disposable d) {\n compositeDisposable.add(d);\n }\n\n @Override\n public void onNext(List<FilterCountryModel> filterCountryModels) {\n\n Log.e(TAG, \"LIST OF FILTER COUNTRY MODEL: \" + filterCountryModels.size());\n\n /**Save to DB*/\n database = FlowManager.getDatabase(DecagonDatabase.class);\n\n FastStoreModelTransaction<FilterCountryModel> transaction = FastStoreModelTransaction\n .saveBuilder(FlowManager.getModelAdapter(FilterCountryModel.class))\n .addAll(filterCountryModels)\n .build();\n\n database.executeTransaction(transaction);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n }\n\n @Override\n public void onFailure(Call<List<FilterUserModel>> call, Throwable t) {\n call.cancel();\n t.printStackTrace();\n }\n });\n\n }", "KTable<K, V> filterOut(Predicate<K, V> predicate);", "protected Set<String> getFilter(StaplerRequest req) throws ServletException, IllegalAccessException, IllegalArgumentException, InvocationTargetException{\n Set<String> filter = new TreeSet<String>();\n String values[] = {\"other\",\"job\",\"view\",\"computer\",\"user\"};\n for(String s:values){\n if(req.getParameter(s)!=null)\n filter.add(s); \n }\n return filter;\n }", "@Override\n public List<MongoPrideAssay> filterByAttributes(List<Triple<String, String, String>> filters) {\n Query queryMongo = PrideMongoUtils.buildQuery(filters);\n return mongoTemplate.find(queryMongo, MongoPrideAssay.class);\n }", "List<String> getFilters();", "@SneakyThrows\n public List<Map<String, String>> getTable(String tableName, int page, int pageSize) {\n try (CloseableHttpClient client = HttpClientBuilder.create()\n .setDefaultRequestConfig(getRequestConfig())\n .build()) {\n String url = KodexaPlatform.getUrl() + \"/api/stores/\" + ref.replace(\":\", \"/\") + \"/rows\";\n log.info(\"Connecting to [\" + url + \"]\");\n\n URIBuilder builder = new URIBuilder(url);\n builder.setParameter(\"page\", String.valueOf(page)).setParameter(\"pageSize\", String.valueOf(pageSize)).setParameter(\"table\", tableName);\n\n HttpGet httpGet = new HttpGet(builder.build());\n httpGet.addHeader(\"x-access-token\", KodexaPlatform.getAccessToken());\n\n HttpResponse response = client.execute(httpGet);\n\n if (response.getStatusLine().getStatusCode() != 200) {\n throw new KodexaException(\"Unable to create a session, check your access token and URL [\" + response.getStatusLine().getStatusCode() + \"]\");\n }\n\n String responseJson = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);\n Page<StoredRow> rowPage = jsonOm.readValue(responseJson, new TypeReference<Page<StoredRow>>() {\n });\n\n return rowPage.getContent().stream().map(StoredRow::getData).collect(Collectors.toList());\n\n\n } catch (IOException e) {\n throw new KodexaException(\"Unable to create a session on Kodexa\", e);\n }\n }", "public List<Maquina> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 34: */ {\r\n/* 35: 73 */ return this.maquinaDao.obtenerListaPorPagina(startIndex, pageSize, sortField, sortOrder, filters);\r\n/* 36: */ }", "public static boolean validateFilterKeys(Map<String,String> filter)\n {\n if(filter == null)\n return false;\n\n if(filter.size() > 2)\n return false;\n\n if(filter.size() == 2 && filter.containsKey(SRTFilterKeys.PROGRAM_AREA_CODE) && filter.containsKey(SRTFilterKeys.REPORTING_FACILITY_ID))\n return true;\n else if(filter.size() == 2 && filter.containsKey(SRTFilterKeys.CONDITION_CODE) && filter.containsKey(SRTFilterKeys.REPORTING_FACILITY_ID))\n return true;\n else if(filter.size() == 2 && filter.containsKey(SRTFilterKeys.ORDERED_TEST_CODE) && filter.containsKey(SRTFilterKeys.REPORTING_FACILITY_ID))\n return true;\n else if(filter.size() == 1 && filter.containsKey(SRTFilterKeys.REPORTING_FACILITY_ID))\n return true;\n else\n return false;\n\n }", "public ArrayList<Vector<Object>> recuperaTablaFacturas(String filtro) {\r\n\t\tArrayList<Vector<Object>> tableData = null;\r\n\t\tArrayList<Factura> lista = recuperaFacturaParaTabla(filtro);\r\n\t\ttableData = new ArrayList<>();\r\n\t\tfor (Factura factura : lista) {\r\n\t\t\tVector<Object> filaData = new Vector<>();\r\n\t\t\tfilaData.add(factura);\r\n\t\t\tfilaData.add(factura.getFecha());\r\n\t\t\tfilaData.add(factura.getCliente().toString());\r\n\t\t\tfilaData.add(factura.getImpTotal());\r\n\t\t\tfilaData.add(factura.isCobrada());\r\n\t\t\ttableData.add(filaData);\r\n\t\t}\r\n\t\treturn tableData;\r\n\t}", "@Test\n public void testFilterStudent() {\n System.out.println(\"filterStudent\");\n HashMap<String, Student> result = new HashMap<>();\n School instance = new School();\n\n result.put(student1.getId(), student1);\n result.put(student2.getId(), student2);\n result.put(student3.getId(), student3);\n instance.setStudents(students);\n\n assertEquals(result, instance.filterStudent(\"\", students));\n assertEquals(result, instance.filterStudent(\" \", students));\n System.out.println(\"PASS with null filter\");\n\n result.remove(student1.getId());\n result.remove(student2.getId());\n assertEquals(result, instance.filterStudent(\"Hong\", students));\n System.out.println(\"PASS with name field\");\n\n result.put(student1.getId(), student1);\n result.put(student2.getId(), student2);\n assertEquals(result, instance.filterStudent(\"@\", students));\n assertEquals(result, instance.filterStudent(\"0909090909\", students));\n assertEquals(result, instance.filterStudent(\"08-0808-0808\", students));\n System.out.println(\"PASS with other fields\");\n\n result.clear();\n assertEquals(result, instance.filterStudent(\"qwerty\", students));\n System.out.println(\"PASS with not-found filter\");\n\n System.out.println(\"PASS ALL\");\n }", "@Override\n\t\t\tpublic void visit(Label inLabel, Set<FilterComplex> inFilters, FilterComplex filterComplex, Set<FilterComplex> outFilters,\n\t\t\t\t\tLabel outLabel, int depth) {\n\t\t\t\tif(outFilters == null || outFilters.isEmpty()) {\n\t\t\t\t\t// labelMap.put(outLabel, filterComplex);\n\t\t\t\t\tfor(Type type : filterComplex.getTypes()) {\n\t\t\t\t\t\tmap.add(outLabel, type);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }", "public List<COSName> getFilters()\n {\n COSBase filters = stream.getFilters();\n if (filters instanceof COSName)\n {\n return Collections.singletonList((COSName) filters);\n } \n else if (filters instanceof COSArray)\n {\n return (List<COSName>)((COSArray) filters).toList();\n }\n return Collections.emptyList();\n }", "public synchronized static List<Store> loadStores(Connection c, String profil) throws SQLException {\r\n List<Store> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE \" + profil);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store s = new Store(id, designation, description, rent, surface, floor, localization, list);\r\n filteredShopList.add(s);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }", "@Override\r\n public Page<T> filter(U filter)\r\n {\r\n Class<T> T = returnedClass();\r\n CriteriaBuilder cb = getEm().getCriteriaBuilder();\r\n CriteriaQuery<T> criteriaQuery = cb.createQuery(T);\r\n CriteriaQuery<Long> criteriaQueryCount = cb.createQuery(Long.class);\r\n Root<T> entity = criteriaQuery.from(T);\r\n criteriaQueryCount.select(cb.count(entity));\r\n criteriaQuery.select(entity);\r\n \r\n // collect all filters relevant for affected entity\r\n List<Object> filters = new ArrayList<Object>();\r\n getPreFilters(filters, T, filter);\r\n \r\n filters.add(filter);\r\n List<Hint> hints = new ArrayList<Hint>();\r\n \r\n if (!filters.isEmpty()) {\r\n List<Predicate> filterPredicates = new ArrayList<Predicate>();\r\n for (Object queryCriteria : filters) {\r\n \r\n List<Predicate> orPredicates = new ArrayList<Predicate>();\r\n List<Predicate> andPredicates = new ArrayList<Predicate>();\r\n FilterContextImpl<T> filterContext = new FilterContextImpl<T>(entity, criteriaQuery, getEm(), queryCriteria);\r\n hints.addAll(filterContext.getHints());\r\n \r\n List<Field> fields = AbstractFilteringRepository.getInheritedPrivateFields(queryCriteria.getClass());\r\n for (Field field : fields) {\r\n // I want to skip static fields and fields which are cared of in different(specific way)\r\n if (!Modifier.isStatic(field.getModifiers()) && !ignoredFields.contains(field.getName())) {\r\n if (!field.isAccessible()) {\r\n field.setAccessible(true);\r\n }\r\n \r\n /**\r\n * Determine field path\r\n */\r\n // anottaion specified path has always highest priority, so is processed in the first place processing\r\n FieldPath fieldPathAnnotation = field.getAnnotation(FieldPath.class);\r\n Field f;\r\n if (fieldPathAnnotation != null && StringUtils.isNotBlank(fieldPathAnnotation.value())) {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(fieldPathAnnotation.value(), FieldPath.FIELD_PATH_SEPARATOR), true);\r\n } else {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(field.getName(), StructuredPathFactory.FILTER_PATH_SEPARATOR), true);\r\n }\r\n \r\n // tries to find CustmoProcessor annotation or some annotation metaannotated by custom processor\r\n CustomProcessor processor = field.getAnnotation(CustomProcessor.class);\r\n if (processor == null) {\r\n processor = getMetaAnnotation(CustomProcessor.class, field);\r\n }\r\n \r\n ProcessorContext<T> processorContext = filterContext.getProcessorContext(andPredicates, orPredicates, field);\r\n Object filterFieldValue = getFilterFieldValue(field, queryCriteria);\r\n if (processor == null && f != null) {\r\n processTypes(filterFieldValue, processorContext);\r\n // If field is not pressent in Entity, it needs special care\r\n } else {\r\n Class<CustomFieldProcessor<T, ?>> processorClass = null;\r\n if (processor != null) {\r\n processorClass = (Class<CustomFieldProcessor<T, ?>>) processor.value();\r\n processCustomFields(filterFieldValue, processorContext, processorClass);\r\n } else {\r\n if (!processCustomTypes(filterFieldValue, processorContext)) {\r\n if (shouldCheck(processorContext.getField())) {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" wasn't handled. \");\r\n throw new UnsupportedOperationException(\"Custom filter fields not supported in \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \", required field: \" + processorContext.getField().getName());\r\n } else {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" marked with @Unchecked annotation wasn't handled. \");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!andPredicates.isEmpty() || !orPredicates.isEmpty()) {\r\n Predicate filterPredicate = null;\r\n if (!andPredicates.isEmpty()) {\r\n Predicate andPredicate = cb.and(andPredicates.toArray(new Predicate[1]));\r\n filterPredicate = andPredicate;\r\n }\r\n if (!orPredicates.isEmpty()) {\r\n Predicate orPredicate = cb.or(orPredicates.toArray(new Predicate[1]));\r\n if (filterPredicate != null) {\r\n filterPredicate = cb.and(filterPredicate, orPredicate);\r\n } else {\r\n filterPredicate = orPredicate;\r\n }\r\n }\r\n filterPredicates.add(filterPredicate);\r\n }\r\n }\r\n if (!filterPredicates.isEmpty()) {\r\n Predicate finalPredicate = cb.and(filterPredicates.toArray(new Predicate[1]));\r\n criteriaQuery.where(finalPredicate);\r\n criteriaQueryCount.where(finalPredicate);\r\n }\r\n }\r\n \r\n \r\n TypedQuery<T> query = getEm().createQuery(criteriaQuery);\r\n TypedQuery<Long> queryCount = getEm().createQuery(criteriaQueryCount);\r\n if (filter != null && filter.getPageSize() > 0) {\r\n query = query.setFirstResult(filter.getOffset());\r\n query = query.setMaxResults(filter.getPageSize());\r\n }\r\n // add hints\r\n if (!hints.isEmpty()) {\r\n for (Hint hint : hints) {\r\n query.setHint(hint.getName(), hint.getValue());\r\n queryCount.setHint(hint.getName(), hint.getValue());\r\n }\r\n }\r\n \r\n \r\n PageImpl<T> result = new PageImpl<T>(query.getResultList(), filter, queryCount.getSingleResult().intValue());\r\n return result;\r\n }", "public static device_profile[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception\r\n\t{\r\n\t\tdevice_profile obj = new device_profile();\r\n\t\toptions option = new options();\r\n\t\toption.set_filter(filter);\r\n\t\tdevice_profile[] response = (device_profile[]) obj.getfiltered(service, option);\r\n\t\treturn response;\r\n\t}", "public ArrayList getSourceTableList(String tableName) {\r\n\t\tArrayList sourceTableList = new ArrayList();\r\n\t\tHashSet tableSet = new HashSet();\r\n\t\t// whether the table is a volatile table\r\n\t\tint index = -1;\r\n\t\tindex = volatileIndex(tableName);\r\n\t\t// is a volatile table\r\n\t\tif (index >= 0) {\r\n\t\t\tfor (int i = 0; i < volatileTableSourceList.size(); i++) {\r\n\t\t\t\tHashMap volatileTable = (HashMap) volatileTableSourceList.get(i);\r\n\t\t\t\tInteger volatileIndex = (Integer) volatileTable.get(\"sqlIndex\");\r\n\t\t\t\tif (index == volatileIndex.intValue()) {\r\n\t\t\t\t\ttableSet = (HashSet) volatileTable.get(\"sourceTableList\");\r\n\t\t\t\t\tArrayList tableList = new ArrayList(tableSet);\r\n\r\n\t\t\t\t\tfor (int j = 0; j < tableList.size(); j++) {\r\n\t\t\t\t\t\tHashMap table = (HashMap) tableList.get(j);\r\n\t\t\t\t\t\tString sTable_name = (String) table.get(\"sourceTable\");\r\n\t\t\t\t\t\t// String expressionExp = (String) table.get(\"expression\");\r\n\t\t\t\t\t\tHashMap sTable = new HashMap();\r\n\t\t\t\t\t\tsTable.put(\"sourceTable\", sTable_name);\r\n\t\t\t\t\t\tsTable.put(\"targetTable\", tableName);\r\n\t\t\t\t\t\t// sTable.put(\"expression\",expressionExp);\r\n\t\t\t\t\t\tsourceTableList.add(sTable);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tindex = commonIndex(tableName);\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\tfor (int i = 0; i < commonTableSourceList.size(); i++) {\r\n\t\t\t\t\tHashMap commonTable = (HashMap) commonTableSourceList.get(i);\r\n\t\t\t\t\tInteger commonIndex = (Integer) commonTable.get(\"sqlIndex\");\r\n\t\t\t\t\tif (index == commonIndex.intValue()) {\r\n\t\t\t\t\t\ttableSet = (HashSet) commonTable.get(\"sourceTableList\");\r\n\t\t\t\t\t\tArrayList tableList = new ArrayList(tableSet);\r\n\r\n\t\t\t\t\t\tfor (int j = 0; j < tableList.size(); j++) {\r\n\t\t\t\t\t\t\tHashMap table = (HashMap) tableList.get(j);\r\n\t\t\t\t\t\t\tString sTable_name = (String) table.get(\"sourceTable\");\r\n\t\t\t\t\t\t\t// String expressionExp = (String) table.get(\"expression\");\r\n\t\t\t\t\t\t\tHashMap sTable = new HashMap();\r\n\t\t\t\t\t\t\tsTable.put(\"sourceTable\", sTable_name);\r\n\t\t\t\t\t\t\tsTable.put(\"targetTable\", tableName);\r\n\t\t\t\t\t\t\t// sTable.put(\"expression\",expressionExp);\r\n\t\t\t\t\t\t\tsourceTableList.add(sTable);\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} else {\r\n\t\t\t\tHashMap sourceTable = new HashMap();\r\n\t\t\t\tsourceTable.put(\"sourceTable\", \"\");\r\n\t\t\t\tsourceTable.put(\"targetTable\", tableName);\r\n\t\t\t\t// sourceTable.put(\"expression\",expString);\r\n\t\t\t\tsourceTableList.add(sourceTable);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new ArrayList(new HashSet(sourceTableList));\r\n\t}", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter);", "public ArrayList<CampusEvent> eventListFilter (ArrayList<CampusEvent> campusEvents, Filters filter) {\n ArrayList<CampusEvent> newList = new ArrayList<CampusEvent>();\n //if all the filters are zero, return original list\n Log.d(Globals.TAGG, \"Showing what the filters are\");\n\n if (filter == null) {\n Log.d(Globals.TAGG, \"All filters are null\");\n return campusEvents;\n } else {\n if (filter.getfFood() == 0 && filter.getfEventType() == 0 && filter.getfProgramType() == 0 && filter.getfGender() == 0 && filter.getfGreekSociety() == 0 && filter.getfMajor() == 0 && filter.getfYear() == 0) {\n return campusEvents;\n }\n if (filter.getfFood() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfFood() - 1;\n if (event.getFood() == scaleval) {\n newList.add(event);\n }\n }\n }\n if (filter.getfEventType() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfEventType() - 1;\n if (event.getEventType() == scaleval) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfProgramType() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getProgramType() == filter.getfProgramType()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfYear() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getYear() == filter.getfYear()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfMajor() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getMajor() == filter.getfMajor()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGender() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGender() == filter.getfGender()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGreekSociety() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGreekSociety() == filter.getfGreekSociety()) {\n newList.add(event);\n }\n }\n }\n\n return newList;\n }\n }", "public List<DetallesFacturaContratoVenta> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 32: */ {\r\n/* 33: 51 */ List<DetallesFacturaContratoVenta> listaDetallesFacturaContratoVenta = new ArrayList();\r\n/* 34: */ \r\n/* 35: 53 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 36: 54 */ CriteriaQuery<DetallesFacturaContratoVenta> criteriaQuery = criteriaBuilder.createQuery(DetallesFacturaContratoVenta.class);\r\n/* 37: 55 */ Root<DetallesFacturaContratoVenta> from = criteriaQuery.from(DetallesFacturaContratoVenta.class);\r\n/* 38: */ \r\n/* 39: 57 */ Fetch<Object, Object> contratoVenta = from.fetch(\"contratoVenta\", JoinType.LEFT);\r\n/* 40: 58 */ Fetch<Object, Object> empresa = contratoVenta.fetch(\"empresa\", JoinType.LEFT);\r\n/* 41: 59 */ Fetch<Object, Object> cliente = empresa.fetch(\"cliente\", JoinType.LEFT);\r\n/* 42: 60 */ contratoVenta.fetch(\"agenteComercial\", JoinType.LEFT);\r\n/* 43: 61 */ contratoVenta.fetch(\"subempresa\", JoinType.LEFT);\r\n/* 44: 62 */ Fetch<Object, Object> direccionEmpresa = contratoVenta.fetch(\"direccionEmpresa\", JoinType.LEFT);\r\n/* 45: 63 */ direccionEmpresa.fetch(\"ubicacion\", JoinType.LEFT);\r\n/* 46: 64 */ contratoVenta.fetch(\"canal\", JoinType.LEFT);\r\n/* 47: 65 */ contratoVenta.fetch(\"zona\", JoinType.LEFT);\r\n/* 48: 66 */ contratoVenta.fetch(\"condicionPago\", JoinType.LEFT);\r\n/* 49: */ \r\n/* 50: 68 */ List<Expression<?>> empresiones = obtenerExpresiones(filters, criteriaBuilder, from);\r\n/* 51: 69 */ criteriaQuery.where((Predicate[])empresiones.toArray(new Predicate[empresiones.size()]));\r\n/* 52: */ \r\n/* 53: 71 */ agregarOrdenamiento(sortField, sortOrder, criteriaBuilder, criteriaQuery, from);\r\n/* 54: */ \r\n/* 55: 73 */ CriteriaQuery<DetallesFacturaContratoVenta> select = criteriaQuery.select(from);\r\n/* 56: */ \r\n/* 57: 75 */ TypedQuery<DetallesFacturaContratoVenta> typedQuery = this.em.createQuery(select);\r\n/* 58: 76 */ agregarPaginacion(startIndex, pageSize, typedQuery);\r\n/* 59: */ \r\n/* 60: 78 */ listaDetallesFacturaContratoVenta = typedQuery.getResultList();\r\n/* 61: 81 */ for (DetallesFacturaContratoVenta dfcv : listaDetallesFacturaContratoVenta)\r\n/* 62: */ {\r\n/* 63: 83 */ CriteriaQuery<DetalleContratoVenta> cqDetalle = criteriaBuilder.createQuery(DetalleContratoVenta.class);\r\n/* 64: 84 */ Root<DetalleContratoVenta> fromDetalle = cqDetalle.from(DetalleContratoVenta.class);\r\n/* 65: 85 */ fromDetalle.fetch(\"producto\", JoinType.LEFT);\r\n/* 66: */ \r\n/* 67: 87 */ cqDetalle.where(criteriaBuilder.equal(fromDetalle.join(\"contratoVenta\"), dfcv.getContratoVenta()));\r\n/* 68: 88 */ CriteriaQuery<DetalleContratoVenta> selectContratoVenta = cqDetalle.select(fromDetalle);\r\n/* 69: */ \r\n/* 70: 90 */ List<DetalleContratoVenta> listaDetalleContratoVenta = this.em.createQuery(selectContratoVenta).getResultList();\r\n/* 71: 91 */ dfcv.getContratoVenta().setListaDetalleContratoVenta(listaDetalleContratoVenta);\r\n/* 72: */ }\r\n/* 73: 94 */ return listaDetallesFacturaContratoVenta;\r\n/* 74: */ }", "public Object retrieveGrants(final Map<String, String[]> filter) throws Exception {\r\n return null;\r\n }", "public final static Double[][] getFiler(String filterName) {\n //setup kernals\n if (kernalMap == null) {\n kernalMap = new HashMap<>();\n //vertical\n Double[][] vertical = {{1.0, 0.0, -1.0}, {1.0, 0.0, -1.0}, {1.0, 0.0, -1.0}};\n kernalMap.put(\"v\", vertical);\n //horizontal\n Double[][] horizontal = {{1.0, 1.0, 1.0}, {0.0, 0.0, 0.0}, {-1.0, -1.0, -1.0}};\n kernalMap.put(\"h\", horizontal);\n //sobel vertical\n Double[][] sobel_v = {{1.0, 0.0, -1.0}, {2.0, 0.0, -2.0}, {1.0, 0.0, -1.0}};\n kernalMap.put(\"sobel v\", sobel_v);\n //sobel horizontal\n Double[][] sobel_h = {{0.0, 2.0, 1.0}, {0.0, 0.0, 0.0}, {-1.0, -2.0, -1.0}};\n kernalMap.put(\"sobel h\", sobel_h);\n //scharr vertical\n Double[][] scharr_v = {{3.0, 0.0, -3.0}, {10.0, 0.0, -10.0}, {3.0, 0.0, -3.0}};\n kernalMap.put(\"scharr v\", scharr_v);\n //scharr horizontal\n Double[][] scharr_h = {{3.0, 10.0, 3.0}, {0.0, 0.0, 0.0}, {-3.0, -10.0, -3.0}};\n kernalMap.put(\"scharr h\", scharr_h);\n }\n if (!kernalMap.containsKey(filterName)) return null;\n return kernalMap.get(filterName);\n }", "static private List getObjectsOfType(final ExecutionContext ec, final HBaseManagedConnection mconn,\r\n final AbstractClassMetaData cmd, boolean ignoreCache, FetchPlan fp, final Filter filter, final StoreManager storeMgr)\r\n {\r\n List results = new ArrayList();\r\n\r\n StoreData sd = storeMgr.getStoreDataForClass(cmd.getFullClassName());\r\n if (sd == null)\r\n {\r\n storeMgr.manageClasses(ec.getClassLoaderResolver(), cmd.getFullClassName());\r\n sd = storeMgr.getStoreDataForClass(cmd.getFullClassName());\r\n }\r\n final Table table = sd.getTable();\r\n final String tableName = table.getName();\r\n final int[] fpMembers = fp.getFetchPlanForClass(cmd).getMemberNumbers();\r\n try\r\n {\r\n final ClassLoaderResolver clr = ec.getClassLoaderResolver();\r\n\r\n Scan scan = new Scan();\r\n if (filter != null)\r\n {\r\n scan.setFilter(filter);\r\n }\r\n\r\n // Retrieve all fetch-plan fields\r\n for (int i=0; i<fpMembers.length; i++)\r\n {\r\n AbstractMemberMetaData mmd = cmd.getMetaDataForManagedMemberAtAbsolutePosition(fpMembers[i]);\r\n RelationType relationType = mmd.getRelationType(clr);\r\n if (relationType != RelationType.NONE && MetaDataUtils.getInstance().isMemberEmbedded(ec.getMetaDataManager(), clr, mmd, relationType, null))\r\n {\r\n if (RelationType.isRelationSingleValued(relationType))\r\n {\r\n // 1-1 embedded\r\n List<AbstractMemberMetaData> embMmds = new ArrayList<AbstractMemberMetaData>();\r\n embMmds.add(mmd);\r\n addColumnsToScanForEmbeddedMember(scan, embMmds, table, ec);\r\n }\r\n }\r\n else\r\n {\r\n MemberColumnMapping mapping = table.getMemberColumnMappingForMember(mmd);\r\n int numCols = mapping.getNumberOfColumns();\r\n for (int colNo=0;colNo<numCols;colNo++)\r\n {\r\n Column col = mapping.getColumn(colNo);\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(col).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(col).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n }\r\n }\r\n\r\n VersionMetaData vermd = cmd.getVersionMetaDataForClass();\r\n if (cmd.isVersioned() && vermd.getMemberName() == null)\r\n {\r\n // Add version column\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(table.getSurrogateColumn(SurrogateColumnType.VERSION)).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(table.getSurrogateColumn(SurrogateColumnType.VERSION)).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n if (cmd.hasDiscriminatorStrategy())\r\n {\r\n // Add discriminator column\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DISCRIMINATOR)).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DISCRIMINATOR)).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n if (cmd.getIdentityType() == IdentityType.DATASTORE)\r\n {\r\n // Add datastore identity column\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DATASTORE_ID)).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DATASTORE_ID)).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n\r\n org.apache.hadoop.hbase.client.Table htable = mconn.getHTable(tableName);\r\n ResultScanner scanner = htable.getScanner(scan);\r\n if (ec.getStatistics() != null)\r\n {\r\n // Add to statistics\r\n ec.getStatistics().incrementNumReads();\r\n }\r\n Iterator<Result> it = scanner.iterator();\r\n\r\n // Instantiate the objects\r\n if (cmd.getIdentityType() == IdentityType.APPLICATION)\r\n {\r\n while (it.hasNext())\r\n {\r\n final Result result = it.next();\r\n Object obj = getObjectUsingApplicationIdForResult(result, cmd, ec, ignoreCache, fpMembers, tableName, storeMgr, table);\r\n if (obj != null)\r\n {\r\n results.add(obj);\r\n }\r\n }\r\n }\r\n else if (cmd.getIdentityType() == IdentityType.DATASTORE)\r\n {\r\n while (it.hasNext())\r\n {\r\n final Result result = it.next();\r\n Object obj = getObjectUsingDatastoreIdForResult(result, cmd, ec, ignoreCache, fpMembers, tableName, storeMgr, table);\r\n if (obj != null)\r\n {\r\n results.add(obj);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n while (it.hasNext())\r\n {\r\n final Result result = it.next();\r\n Object obj = getObjectUsingNondurableIdForResult(result, cmd, ec, ignoreCache, fpMembers, tableName, storeMgr, table);\r\n if (obj != null)\r\n {\r\n results.add(obj);\r\n }\r\n }\r\n }\r\n }\r\n catch (IOException e)\r\n {\r\n throw new NucleusDataStoreException(e.getMessage(), e.getCause());\r\n }\r\n return results;\r\n }", "public Filter [] getFilters() {\n return this.Filters;\n }" ]
[ "0.5872978", "0.5790802", "0.57215494", "0.5538145", "0.55190027", "0.54828763", "0.5403195", "0.525075", "0.52191013", "0.5208993", "0.5202649", "0.51784915", "0.51269764", "0.50998694", "0.5093167", "0.5040101", "0.5024255", "0.50180197", "0.5004921", "0.49989754", "0.4939138", "0.48962092", "0.48915455", "0.48913276", "0.48906922", "0.48810774", "0.48802555", "0.4862016", "0.48547143", "0.48507613", "0.4847019", "0.48088562", "0.4800582", "0.47992748", "0.47964773", "0.47934577", "0.4784576", "0.4769591", "0.47519583", "0.4749797", "0.47491482", "0.4748136", "0.4737788", "0.47351465", "0.47298503", "0.472676", "0.46881154", "0.4683706", "0.46778044", "0.46716818", "0.46709877", "0.46623033", "0.4660396", "0.4659544", "0.46491346", "0.4645952", "0.46428826", "0.46418408", "0.4637129", "0.46364596", "0.46271938", "0.46196645", "0.461269", "0.4609575", "0.46059138", "0.46045724", "0.459378", "0.45925897", "0.45880106", "0.4582429", "0.4580564", "0.45752004", "0.45737278", "0.4570149", "0.45694044", "0.45684558", "0.45625255", "0.45600566", "0.4550382", "0.45480853", "0.45456973", "0.4544383", "0.45429817", "0.4541287", "0.45371562", "0.45349076", "0.45241934", "0.452411", "0.45229948", "0.45219645", "0.4521311", "0.45183277", "0.4516676", "0.45133293", "0.4512095", "0.45111692", "0.45089778", "0.4508894", "0.45030263", "0.44989306" ]
0.71411777
0
============================UPDATE / flush current states (including noInduk) of profil into db oldNoInduk & profil may not be null. oldNoInduk is the previous val of profil.noInduk throws KasirException(DB_INVALID, profil) if profil.isDBValid = false throws KasirException(ROW_NOT_FOUND, oldNoInduk) if noIndukOld record = not in db throws KasirException(DUPLICATE_PRIMARY_KEY, profil) if profil.noInduk has already existed in db never ret false
public boolean updateNoInduk(String oldNoInduk) throws SQLException, KasirException{ assert oldNoInduk != null; //profil.noInduk is also retrieved to check for noInduk duplication ResultSet rs = DBSR.takeResultSetByString(tableName, noIndukColName, 1, oldNoInduk, noInduk); if(updateResultSetNoInduk(rs, oldNoInduk)){ rs.updateRow(); return true; }else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public static int updateS(ArrayList<Profil> profils) throws SQLException, KasirException{\r\n return DBSR.updateKasirOs(tableName, noIndukColName, profils); \r\n }", "public static void update(Profil unProfil) {\n\n\t\t\n\t\tBDD uneBDD = new BDD(\"localhost\", \"MairieDeVilliers\", \"root\", \"\");\n\t\tuneBDD.chargerPilote();\n\t\tuneBDD.seConnecter();\n\t\tString requete = \"update personne set NOM ='\" + unProfil.getNom() + \"' , PRENOM = '\" + unProfil.getPrenom()\n\t\t\t\t+ \"', DATENAISS ='\" + unProfil.getDatenaiss() + \"',SEXE='\" + unProfil.getSexe() + \"',ADRESSE='\"\n\t\t\t\t+ unProfil.getAdresse() + \"',CP='\" + unProfil.getCp() + \"',Ville='\" + unProfil.getVille() + \"',TEL='\"\n\t\t\t\t+ unProfil.getTel() + \"' where EMAIL='\" + unProfil.getEmail()+\"';\";\n\t\ttry {\n\t\t\tStatement unStat = uneBDD.getMaconnexion().createStatement();\n\t\t\tunStat.execute(requete);\n\t\t\tunStat.close();\n\n\t\t} catch (SQLException exp) {\n\t\t\tSystem.out.println(\"Erreur d'execution :\" + requete);\n\t\t}\n\n\t\tuneBDD.seDeconnecter();\n\n\t}", "private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00011 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\trestoredata();\n\t\t\tcontractDetail.update();\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0007\", \"\", msgObjIdx, messages);\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t}", "public boolean updateResultSetNoInduk(ResultSet rs, String oldNoInduk) throws SQLException, KasirException {\r\n assert oldNoInduk != null : \"oldNoInduk = null\";\r\n \r\n if(!isDBValid())\r\n throw new KasirException(KasirException.Tipe.DB_INVALID, this);\r\n \r\n if(noInduk.equals(oldNoInduk)){\r\n if(DBSR.searchRow(rs, noIndukColName, false, noInduk) > 0)\r\n return flushResultSet(rs, false);\r\n else\r\n throw new KasirException(KasirException.Tipe.ROW_NOT_FOUND, this);\r\n }else{\r\n if(DBSR.searchRow(rs, noIndukColName, false, noInduk) > 0)\r\n throw new KasirException(KasirException.Tipe.DUPLICATE_PRIMARY_KEY, this);\r\n \r\n if(DBSR.searchRow(rs, noIndukColName, false, oldNoInduk) > 0)\r\n return flushResultSet(rs, true);\r\n else\r\n throw new KasirException(KasirException.Tipe.ROW_NOT_FOUND, oldNoInduk);\r\n }\r\n }", "public void update() throws SQLException {\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n int safeCheck = BusinessFacade.getInstance().checkChildsIDinDB(this.goodID,\n this.order.getID(), \"orders\", \"goods_id\", \"orders_id\");\n\n if (check != -1 && safeCheck == -1) {\n if (check != this.goodID) {\n int oldGoodID = this.goodID;\n this.goodID = check;\n this.order.update();\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n stmtIn.executeUpdate(\"DELETE FROM ngaccount.goods WHERE goods.goods_id = \" +\n oldGoodID + \" LIMIT 1;\");\n }\n } else if (check != -1 && safeCheck != -1) {\n this.goodID = check;\n } else if (check == -1 && safeCheck == -1) {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n stmtIn.executeUpdate(\"UPDATE ngaccount.goods SET product_type_id = \" +\n this.productRelation.getID() + \", post_id = \" + this.post.getID() +\n \" WHERE goods.goods_id = \" + this.goodID);\n } else {\n this.goodID = BusinessFacade.getInstance().lastIDInDB(\"product_type\") + 1;\n this.insert();\n }\n }", "@Override\n\tpublic void inativar(EntidadeDominio entidade) {\n\t\tPreparedStatement pst=null;\n\t\tLivro livro = (Livro)entidade;\t\t\n\t\ttry {\n\t\t\topenConnection();\n\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\n\t\t\tStringBuilder sql = new StringBuilder();\t\t\t\n\t\t\tsql.append(\"UPDATE livro SET livStatus=?\");\n\t\t\tsql.append(\"WHERE idlivro=?\");\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\tpst.setString(1, \"INATIVADO\");\n\t\t\tpst.setInt(2, livro.getId());\n\t\t\tpst.executeUpdate();\t\t\t\n\t\t\tconnection.commit();\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tconnection.rollback();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\t\t\t\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tpst.close();\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//SEGUNDA PARTE\n\t\t\t\ttry {\n\t\t\t\t\topenConnection();\n\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t//FALTA COLOCAR EDITORA\t\t\n\t\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\t\t\t\tSystem.out.println(livro.getId());\n\t\t\t\t\tSystem.out.println(livro.getJustificativa());\n\t\t\t\t\tSystem.out.println(livro.getIdCatJustificativa());\n\t\t\t\t\tsql.append(\"INSERT INTO justificativainativar (id_livro , justificativa, id_Inativar) VALUES (?,?,?)\");\t\t\n\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\tpst.setInt(1, livro.getId());\n\t\t\t\t\tpst.setString(2,livro.getJustificativa());\n\t\t\t\t\tpst.setInt(3,livro.getIdCatJustificativa());\n\t\t\t\t\tpst.executeUpdate();\n\t\t\t\t\tconnection.commit();\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t}finally{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\n\t}", "public void updateProfile(Profile newProfile) throws Exception {\n // If the two profiles are exactly the same, an update isn't required\n if (this.equals(newProfile))\n return;\n\n String logString = newProfile.getImei() + \": \";\n // Check all attributes, updating them whenever they differ\n if (!softwareVersion.equals(newProfile.getSoftwareVersion())) {\n ProfileDBManager.updateSoftwareVersion(this.imei, newProfile.getSoftwareVersion());\n logString = logString + \"Old SW Version - \" + softwareVersion + \" | New SW Version - \" + newProfile.getSoftwareVersion() + \".\";\n }\n\n if (!simOperator.equals(newProfile.getSimOperator())) {\n ProfileDBManager.updateSimOperator(this.imei, newProfile.getSimOperator());\n logString = logString + \"Old SIM Operator - \" + simOperator + \" | New SIM Operator - \" + newProfile.getSimOperator() + \".\";\n }\n\n if (!simOperatorName.equals(newProfile.getSimOperatorName())) {\n ProfileDBManager.updateSimOperatorName(this.imei, newProfile.getSimOperatorName());\n logString = logString + \"Old SIM Operator Name - \" + simOperatorName + \" | New SIM Operator Name - \" + newProfile.getSimOperatorName() + \".\";\n }\n\n if(!simSerialNumber.equals(newProfile.getSimSerialNumber())) {\n ProfileDBManager.updateSimSerialNumber(this.imei, newProfile.getSimSerialNumber());\n logString = logString + \"Old SIM Serial Number - \" + simSerialNumber + \" | New SIM Serial Number - \" + newProfile.getSimSerialNumber() + \".\";\n }\n\n if(!simCountryIso.equals(newProfile.getSimCountryIso())) {\n ProfileDBManager.updateSimCountryIso(this.imei, newProfile.getSimCountryIso());\n logString = logString + \"Old SIM Country ISO - \" + simCountryIso + \" | New SIM Country ISO - \" + newProfile.getSimCountryIso() + \".\";\n }\n\n if(!imsiNumber.equals(newProfile.getImsiNumber())) {\n ProfileDBManager.updateImsiNumber(this.imei, newProfile.getImsiNumber());\n logString = logString + \"Old IMSI Number - \" + imsiNumber + \" | New IMSI Number - \" + newProfile.getImsiNumber() + \".\";\n }\n\n if (!ipAddress.equals(newProfile.getIpAddress())) {\n ProfileDBManager.updateIpAddress(this.imei, newProfile.getIpAddress());\n logString = logString + \"Old IP Address Location - \" + ipAddress + \" | New IP Address Location - \" + newProfile.getIpAddress() + \".\";\n }\n\n if(!osVersion.equals(newProfile.getOsVersion())) {\n ProfileDBManager.updateOsVersion(this.imei, newProfile.getOsVersion());\n logString = logString + \"Old OS Version - \" + osVersion + \" | New OS Version - \" + newProfile.getOsVersion() + \".\";\n }\n\n if(!sdkVersion.equals(newProfile.getSdkVersion())) {\n ProfileDBManager.updateSdkVersion(this.imei, newProfile.getSdkVersion());\n logString = logString + \"Old SDK Version - \" + sdkVersion + \" | New SDK Version - \" + newProfile.getSdkVersion() + \".\";\n }\n\n if(!deviceName.equals(newProfile.getDeviceName())) {\n ProfileDBManager.updateDeviceName(this.imei, newProfile.getDeviceName());\n logString = logString + \"Old Device Name - \" + deviceName + \" | New Device Name - \" + newProfile.getDeviceName() + \".\";\n }\n\n if(!keyboardLanguage.equals(newProfile.getKeyboardLanguage())) {\n ProfileDBManager.updateKeyboardLanguage(this.imei, newProfile.getKeyboardLanguage());\n logString = logString + \"Old Keyboard Language - \" + keyboardLanguage + \" | New Keyboard Language - \" + newProfile.getKeyboardLanguage() + \".\";\n }\n\n if(!networksSSID.equals(newProfile.getNetworksSSID())) {\n ProfileDBManager.updateNetworksSSID(this.imei, newProfile.getNetworksSSID());\n logString = logString + \"Old Networks - \" + networksSSID.toString() + \" | New Networks - \" + newProfile.getNetworksSSID().toString() + \".\";\n }\n\n if(!googleAccounts.equals(newProfile.getGoogleAccounts())) {\n ProfileDBManager.updateGoogleAccounts(this.imei, newProfile.getGoogleAccounts());\n logString = logString + \"Old Google Accounts - \" + googleAccounts.toString() + \" | New Google Accounts - \" + newProfile.getGoogleAccounts().toString() + \".\";\n }\n\n if(!memorizedAccounts.equals(newProfile.getMemorizedAccounts())) {\n ProfileDBManager.updateMemorizedAccounts(this.imei, newProfile.getMemorizedAccounts());\n logString = logString + \"Old Accounts - \" + memorizedAccounts.toString() + \" | New Accounts - \" + newProfile.getMemorizedAccounts().toString() + \".\";\n }\n\n if(!inputMethods.equals(newProfile.getInputMethods())) {\n ProfileDBManager.updateInputMethods(this.imei, newProfile.getInputMethods());\n logString = logString + \"Old Input Methods - \" + inputMethods.toString() + \" | New Input Methods - \" + newProfile.getInputMethods().toString() + \".\";\n }\n\n if(!installedApplications.equals(newProfile.getInstalledApplications())) {\n ProfileDBManager.updateInstalledApplications(this.imei, newProfile.getInstalledApplications());\n logString = logString + \"Old Applications - \" + installedApplications.toString() + \" | New Applications - \" + newProfile.getInstalledApplications().toString() + \".\";\n }\n\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(logString);\n }", "@Override\r\n\tpublic boolean update(Viaggio viaggio) {\r\n\t\tboolean result = false;\r\n\t\tif ( viaggio == null ) {\r\n\t\t\tSystem.out.println( \"update(): failed to update a null entry\");\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPreparedStatement prep_stmt = conn.prepareStatement(update);\r\n\t\t\tprep_stmt.clearParameters();\r\n\t\t\tprep_stmt.setInt(1, viaggio.getCreatore().getId());\r\n\t\t\tprep_stmt.setString(2, viaggio.getTitolo());\r\n\t\t\tprep_stmt.setString(3, viaggio.getDestinazione());\r\n\t\t\tprep_stmt.setString(4, viaggio.getDescrizione());\r\n\t\t\tprep_stmt.setString(5, viaggio.getLingua());\r\n\t\t\tprep_stmt.setInt(6, viaggio.getBudget());\r\n\t\t\tprep_stmt.setString(7, viaggio.getLuogopartenza());\r\n\t\t\tprep_stmt.setInt(8, viaggio.getStato().ordinal());\r\n\t\t\tprep_stmt.setDate(9, viaggio.getDatainizio());\r\n\t\t\tprep_stmt.setDate(10, viaggio.getDatafine());\r\n\t\t\tprep_stmt.setString(11, viaggio.getImmaginiProfilo());\t\t\t\r\n\t\t\tprep_stmt.setInt(12, viaggio.getIdViaggio());\r\n\t\t\tint esito;\r\n\t\t\tesito=prep_stmt.executeUpdate();\r\n\t\t\tprep_stmt.close();\r\n\t\t\tif(esito>=0) {\r\n\t\t\t\tSystem.out.println(\"Ho aggiornato il viaggio con id \"+ viaggio.getIdViaggio());\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"ERRORE: non ho potuto aggiornare il viaggio con id \"+ viaggio.getIdViaggio());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"insert(): failed to update entry: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic int updateProgrameInfo(ProgrameInfo VO) throws Exception {\n\t\tint ret = 0;\n\t\tif (VO.getMode().equals(\"Ins\")){\n\t\t\tVO.setProgCode(egovProgIdGnrService.getNextStringId());\n\t\t\tret = progMapper.insertProgrameInfo(VO);\n\t\t}else {\n\t\t\tret = progMapper.updateProgrameInfo(VO);\n\t\t}\n\t\treturn ret;\n\t}", "@Transactional\n @Override\n public Prenotazione update(Prenotazione prenotazione) {\n return this.prenotazioneRepository.update(prenotazione);\n }", "int updateByPrimaryKey(GoodsPo record);", "int updateByPrimaryKeySelective(GoodsPo record);", "public ProjectCart updateProjectCart(ProjectCart pc) {\n Session session = ConnectionFactory.getInstance().getSession();\n boolean tf = true;\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(pc);\n\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return pc;\n }", "@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\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(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic int update(Prod_Unidadmed P) {\n\t\treturn jdbcTemplate.update(\"call PKG_ALM_CRUD_PRODUNIDADMED.pa_mat_produnidadmed_upd(?,?,?,?)\",P.getIdprodunidadmed(),P.getNombrelargo(),P.getNombrecorto(),P.getEstado());\n\t}", "@Override\n\tpublic int updateByPrimaryKey(Checkingin record) {\n\t\treturn 0;\n\t}", "private void update() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"update OldStudent os set id=9 where os.name = 'Omkar'\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows Updated in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\n\t}", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic boolean update(Goods goods) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}", "public Boolean updateData(String codProduc, String nombreProduc, String precioProduc){\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"codProduc\", codProduc);\n contentValues.put(\"nombreProduc\", nombreProduc);\n contentValues.put(\"precioProduc\", precioProduc);\n\n //Verificamos el registro usando el codigo de actualizar\n Cursor cursor = db.rawQuery(\"SELECT * FROM tienda WHERE codProduc=?\", new String[]{codProduc});\n\n //Evaluamos el registro para verificar si existe\n if(cursor.getCount()>0){\n long result = db.update(\"tienda\", contentValues, \"codProduc=?\", new String[]{codProduc});\n if(result==-1){\n return false;\n }else{\n return true;\n }\n }else{\n return false;\n }\n\n }", "public boolean atualizarSocio(Socio socio) {\n System.out.println(\"altualizarSocio\");\n // inicia a conexao com o Banco de dados chamando\n // a classe Conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando para inserir\");\n Statement stmt = null;\n try {\n stmt = connection.createStatement();\n\n //Inserir dados na tabela SOCIO!\n String sql = \"UPDATE socio SET cpfSocio = '\" + socio.getCpf() +\"',rgSocio = '\" + socio.getRg()\n +\"',matSocio = '\" + socio.getMatricula() +\"',sexoSocio = '\" + socio.getSexo() +\"',diaNascSocio = '\" + socio.getDia()\n +\"',mesNascSocio = '\" + socio.getMes() +\"',anoNascSocio = '\" + socio.getAno() +\"',enderecoSocio = '\" + socio.getEndereco()\n +\"',numEndSocio = '\" + socio.getNumEndereco() +\"',bairroSocio = '\" + socio.getBairro() +\"',cidadeSocio = '\" + socio.getCidade()\n +\"',estadoSocio = '\" + socio.getEstado() +\"',foneSocio = '\" + socio.getFone() +\"',celSocio = '\" + socio.getCel() +\"',emailSocio = '\" + socio.getEmail()\n +\"',blocoSocio = '\" + socio.getBloco() +\"',funcaoSocio = '\" + socio.getFuncao() +\"' WHERE nomeSocio = '\" + socio.getNome() + \"'\";\n\n System.out.println(\"SQL: \" + sql);\n System.out.println(\"Dados do Socio alterados com sucesso\");\n stmt.executeUpdate(sql);\n\n String sql2 = \"UPDATE socio SET nomeSocio = '\" + socio.getNome() +\"' WHERE cpfSocio = '\" + socio.getCpf() + \"'\";\n System.out.println(\"SQL: \" + sql);\n System.out.println(\"Nome do socio alterado com sucesso\");\n stmt.executeUpdate(sql2);\n\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n }", "@Override\n\tpublic void update(Iscrizioni o)\n\t\t\tthrows ClassNotFoundException, SQLException, NotHandledTypeException, NamingException, ParseException {\n\t\tem.merge(o);\n//\t\tObject[] campi = { o.getIdDipendente(), o.getIdDocente(), o.getIdCorso(), o.getIdIscrizione() };\n//\t\tString sql = \"UPDATE `iscrizioni` SET `idDipendente`=?,`idDocente`=?,`idCorso`=? WHERE `idIscrizione`=?\";\n//\t\tDBHandler dbHandler = new DBHandler();\n//\t\tdbHandler.sql(sql, campi);\n\t}", "@Override\n\tpublic int updateGoods(Goods goods) {\n\n\t\tGoods gd1 =goodsMapper.selectGoodsBygdName(goods.getGdName());\n\t\t\n\t\tint i=-1;\n\t\tif(gd1 != null) {\n\t\t\ti=goodsMapper.updateGoods(goods);\n\t\t}else {\n\t\t\ti=-1;\n\t\t}\n\t\t\t\n\t\t\treturn i;\n\t\t\n\t}", "@Transactional\r\n\t\tpublic void updateCertificadoComunidad(ComunidadQueryBean query){ \r\n\t\t\tif(query.getHashCertificado()!=null){\r\n\t\t\t\t if(query.getIndActivo()!=null && query.getIndActivo().equals(1))\r\n\t\t\t\t\tvalidateAndChange(query);\t\t\t\t\r\n\t\t \r\n\t\t log.debug(\"Guardando certificado con Hash \" + query.getHashCertificado());\t \r\n\t\t\tcomunidadRepository.updateComunidadCertificado(query);\r\n\t\t\t\t \r\n\t\t }\r\n\t\t\r\n\t\t}", "public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }", "@Override\n\tpublic int updblu(ApplicationEntity App) {\n\t\tint id=App.A_id;\n\t\tString zt=null;\n\t\tApplicationEntity app=appdao.selectappById(id);\n\t\tif(\"0\".equals(app.A_state)){\n\t\t\t zt=\"2\";\n\t\t\t\n\t\t}\n\t\tApplicationEntity app1=new ApplicationEntity();\n\t\tapp1.A_state=zt;\n\t\tapp1.A_id=id;\n\t\treturn appdao.updapp(app1);\n\t}", "@Test\n public void updateTest6() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }", "int updateByPrimaryKey(UserPonumberGoods record);", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "int updateByPrimaryKeySelective(UserPonumberGoods record);", "@Test\r\n\tpublic void testUpdate() {\n\t\tint todos = modelo.getAll().size();\r\n\t\tCalificacion c = modelo.getById(1);\r\n\t\tCalificacion c2 = new Calificacion(7, \"Notable\");\r\n\t\tc2.setClave(c.getClave());\r\n\t\tc2.setDescripcion(c.getDescripcion());\r\n\t\tc2.setId(c.getId());\r\n\t\tc2.setClave(5);\r\n\t\tassertTrue(Calificacion.ID_NULL < modelo.update(c2));\r\n\t\tassertEquals(5, modelo.getById(1).getClave());\r\n\r\n\t\t// update de un registro null\r\n\t\tassertEquals(Calificacion.ID_NULL, modelo.update(null));\r\n\r\n\t\t// update de un registro que no existe\r\n\t\tCalificacion cInexistente = new Calificacion(0, \"nulo\");\r\n\t\tcInexistente.setId(14);\r\n\t\tassertEquals(Calificacion.ID_NULL, modelo.update(cInexistente));\r\n\t\tassertEquals(\"Debería ser las mismas calificaciones\", todos, modelo\r\n\t\t\t\t.getAll().size());\r\n\r\n\t}", "int updateByPrimaryKey(Goods record);", "int updateByPrimaryKey(Goods record);", "@Override\n\t@Transactional\n\tpublic Boolean updateImportPro(List<FormProduct> formProduct, int impId) {\n\t\treturn importDao.updateImportPro(formProduct, impId);\n\t}", "@Override\r\n\tpublic void updatePizzaRecord(int pId) {\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\tfos = new FileOutputStream(tempFile);\r\n\t\t\toos = new ObjectOutputStream(fos);\r\n\r\n\t\t\r\n\t\tList<PizzaBean> updateList = new ArrayList<PizzaBean>();\r\n\r\n\t\t\r\n\t\t\tupdateList = (List<PizzaBean>) ois.readObject();\r\n\t\t\tfor (PizzaBean p : updateList) {\r\n\t\t\t\tif (p.getpId() == pId) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"select \\n1.pname \\n2.pprice\\n3.pqty you want to update\");\r\n\t\t\t\t\tint n = sc.nextInt();\r\n\t\t\t\t\tswitch (n) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new pizza name\");\r\n\t\t\t\t\t\tp.setpName(sc.next());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new Pizza Price\");\r\n\t\t\t\t\t\tp.setpPrice(sc.nextInt());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new pizza Quantity\");\r\n\t\t\t\t\t\tp.setPqty(sc.nextInt());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"choose between 1-3\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttempList = new ArrayList<PizzaBean>();\r\n\t\t\t\t\ttempList.add(p);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempList.add(p);\r\n\t\t\t\t}\r\n\t\t\t\tfos=new FileOutputStream(tempFile);\r\n\t\t\t\toos=new ObjectOutputStream(oos);\r\n\t\t\t\t\r\n\t\t\t\toos.writeObject(tempList);\r\n\t\t\t\toriginal.delete();\r\n\t\t\t\ttempFile.renameTo(original);\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Pizza Updated Successfully\");\r\n\t}", "public static int update(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection();\n //melakukan query database untuk merubah data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement( \n \"update periode set tahun=?, awal=?, akhir=?, status=? where id=?\"); \n ps.setString(1,p.getTahun()); \n ps.setString(2,p.getAwal()); \n ps.setString(3,p.getAkhir()); \n ps.setString(4,p.getStatus()); \n ps.setInt(5,p.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n return status; \n }", "int updateByPrimaryKeySelective(Goods record);", "int updateByPrimaryKeySelective(Goods record);", "public boolean saveDown() {\n if (\n cashFlow == null ||\n cashFlow.getDetail() == null ||\n cashFlow.getDetail().isEmpty()\n ) {\n System.out.println(\"invalid model store\");\n return false;\n }\n boolean cashFlowSaveResult = CashFlow.save(cashFlow);\n\n // save cash flow failure case\n if (!cashFlowSaveResult) {\n System.out.println(\"query false\");\n return false;\n }\n\n // get owe per provider\n boolean owe_log = true;\n int pointer = 0;\n final Map<String, Integer> providerIndex = new HashMap<>();\n final int nrow = cashFlow.getDetail().size();\n final int[] owe = new int[nrow];\n for (Payable p: cashFlow.getDetail()) {\n String prvId = p.getProviderId();\n if (providerIndex.containsKey(prvId)) {\n owe[ providerIndex.get(prvId) ] += p.getPrice();\n } else {\n providerIndex.put(prvId, pointer);\n owe[ pointer ] = p.getPrice();\n pointer++;\n }\n }\n for (String k: providerIndex.keySet()) {\n owe_log = owe_log &&\n db.send(\"UPDATE NhaCungCap SET NoPhaiTra = NoPhaiTra + \"\n + owe[ providerIndex.get(k) ]\n + \" WHERE MaNCC = \" + k);\n }\n if (!owe_log) {\n System.out.println(\"update own false\");\n }\n return owe_log;\n }", "@Test\n public void updateTest1() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCabina() ,\"Should return true if update Servizio\");\n }", "@Update({ \"update d_notifica_priorita\", \"set priorita_cod = #{prioritaCod,jdbcType=VARCHAR},\",\n\t\t\t\"priorita_desc = #{prioritaDesc,jdbcType=VARCHAR},\",\n\t\t\t\"validita_inizio = #{validitaInizio,jdbcType=TIMESTAMP},\",\n\t\t\t\"validita_fine = #{validitaFine,jdbcType=TIMESTAMP},\",\n\t\t\t\"utente_operazione = #{utenteOperazione,jdbcType=VARCHAR},\",\n\t\t\t\"data_creazione = #{dataCreazione,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_modifica = #{dataModifica,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_cancellazione = #{dataCancellazione,jdbcType=TIMESTAMP}\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(DNotificaPriorita record);", "@Test\n public void updateTest2() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBar() ,\"Should return true if update Servizio\");\n }", "@Override\n\tpublic int updApp(ApplicationEntity App) {\n\t\tint id=App.A_id;\n\t\tString zt=null;\n\t\tApplicationEntity app=appdao.selectappById(id);\n\t\tif(\"0\".equals(app.A_state)){\n\t\t\t zt=\"1\";\n\t\t\t\n\t\t}\n\t\tApplicationEntity app1=new ApplicationEntity();\n\t\tapp1.A_state=zt;\n\t\tapp1.A_id=id;\n\t\treturn appdao.updapp(app1);\n\t}", "@Override\n\tpublic Fournisseur update(Fournisseur entity) {\n\t\treturn null;\n\t}", "@Test\r\n public void testUpdateValid() throws PAException {\r\n Ii studyDiseaseIi = IiConverter.convertToStudyDiseaseIi(TestSchema.studyDiseaseIds.get(0));\r\n StudyDiseaseDTO studyDiseaseDTO = bean.get(studyDiseaseIi);\r\n Ii diseaseIi = IiConverter.convertToIi(TestSchema.pdqDiseaseIds.get(3));\r\n studyDiseaseDTO.setDiseaseIdentifier(diseaseIi);\r\n StudyDiseaseDTO result = bean.update(studyDiseaseDTO);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, result);\r\n StudyDiseaseDTO saved = bean.get(studyDiseaseIi);\r\n assertNotNull(\"No result returned\", saved);\r\n assertStudyDiseaseDTO(studyDiseaseDTO, saved);\r\n }", "public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }", "int updateByPrimaryKeySelective(DashboardGoods record);", "@Override\n\tpublic void update(KomponenNilai komp) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.update(komp);\n\t\ttx.commit();\n\t\tsession.flush();\n\t\tsession.close();\n\t}", "@Override\n\tpublic void ativar(EntidadeDominio entidade) throws SQLException {\n\t\t\t\tPreparedStatement pst=null;\n\t\t\t\tLivro livro = (Livro)entidade;\t\t\n\t\t\t\ttry {\n\t\t\t\t\topenConnection();\n\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tStringBuilder sql = new StringBuilder();\t\t\t\n\t\t\t\t\tsql.append(\"UPDATE livro SET livStatus=?\");\n\t\t\t\t\tsql.append(\"WHERE idlivro=?\");\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\tpst.setString(1, \"ATIVADO\");\n\t\t\t\t\tpst.setInt(2, livro.getId());\n\t\t\t\t\tpst.executeUpdate();\t\t\t\n\t\t\t\t\tconnection.commit();\t\n\t\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t}finally{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//SEGUNDA PARTE\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topenConnection();\n\t\t\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\t\t//FALTA COLOCAR EDITORA\t\t\n\t\t\t\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\t\t\t\t\t\tSystem.out.println(livro.getId());\n\t\t\t\t\t\t\tSystem.out.println(livro.getJustificativa());\n\t\t\t\t\t\t\tSystem.out.println(livro.getIdCatJustificativa());\n\t\t\t\t\t\t\tsql.append(\"INSERT INTO justificativaativar (id_livro , justificativa, id_Ativar) VALUES (?,?,?)\");\t\t\n\t\t\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\t\t\tpst.setInt(1, livro.getId());\n\t\t\t\t\t\t\tpst.setString(2,livro.getJustificativa());\n\t\t\t\t\t\t\tpst.setInt(3,livro.getIdCatJustificativa());\n\t\t\t\t\t\t\tpst.executeUpdate();\n\t\t\t\t\t\t\tconnection.commit();\t\t\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t\t\t}finally{\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t}", "private boolean cambiarEstadoCotizacionDenegada(java.sql.Connection conExt,int intCodEmp,int intCodLoc,int intCodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n try{\n if(conExt!=null){\n stmLoc = conExt.createStatement();\n strSql=\"\";\n strSql+=\" UPDATE tbm_cabCotVen SET st_autSolResInv='D',st_solResInv='C',co_usrIngAutSolResInv=\"+objParSis.getCodigoUsuario()+\",fe_autSolResInv=CURRENT_TIMESTAMP, \\n\";\n strSql+=\" tx_comIngAutSolResInv=\"+objUti.codificar(objParSis.getNombreComputadoraConDirIP(), 0)+\" \\n\";\n strSql+=\" WHERE co_emp=\"+intCodEmp+\" AND co_loc=\"+intCodLoc+\" AND co_cot=\"+intCodCot+\"; \";\n stmLoc.executeUpdate(strSql);\n stmLoc.close();\n stmLoc=null;\n blnRes=true;\n }\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }", "@Override\n public Viagem update(Viagem viagem) {\n\n try{\n\n if(\"FINALIZAR\".equals(viagem.getStatus())){\n viagem.getVeiculo().setStatus(\"Livre\");\n viagem.setCliente(viagem.getCliente()+\" Finalizado \"+System.currentTimeMillis());\n veiculoService.atualizarStatusVeiculo(viagem.getVeiculo());\n }\n\n return viagemRepository.save(viagem);\n }catch (DuplicateKeyException ex ){\n logger.error(ex);\n throw getAlreadyExistException();\n }\n }", "public int actualizarCRN_update(SicaCRN crn) {\n if (conectado) {\n\n try {\n PreparedStatement p = Conexion.prepareStatement(\n \"INSERT INTO `crn`(`usuario`, `materia`, `crn`, `anio`, `ciclo`) \"\n + \"SELECT ?, ?, ?, YEAR(NOW()), CURRENT_CICLO() \"\n + \"FROM dual \"\n + \"WHERE NOT EXISTS (SELECT * FROM `crn` \"\n + \"WHERE `crn` = ? AND `usuario` = ? \"\n + \"AND `anio` = YEAR(NOW()) AND `ciclo` = CURRENT_CICLO()) LIMIT 1 ;\"\n );\n\n p.setInt(1, crn.getUsuario());\n p.setString(2, crn.getMateria());\n p.setInt(3, crn.getCrn());\n p.setInt(4, crn.getCrn());\n p.setInt(5, crn.getUsuario());\n\n Logy.m(\"Se insertara si no existe un CRN: \" + crn.getCrn());\n Logy.m(p.toString());\n\n PreparedStatement p2 = Conexion.prepareStatement(\n \"UPDATE `checador`.`crn` SET `usuario` = ?, `materia` = ?, \"\n + \"`crn` = ?, `anio` = YEAR(NOW()), `ciclo` = CURRENT_CICLO() \"\n + \"WHERE `crn` = ? AND `usuario` = ? AND `anio` = YEAR(NOW()) AND `ciclo` = CURRENT_CICLO() ;\"\n );\n\n p2.setInt(1, crn.getUsuario());\n p2.setString(2, crn.getMateria());\n p2.setInt(3, crn.getCrn());\n p2.setInt(4, crn.getCrn());\n p2.setInt(5, crn.getUsuario());\n\n Logy.m(\"Se hara update de crn: \" + crn.getCrn());\n Logy.m(p2.toString());\n\n int r = p.executeUpdate();\n int r2 = p2.executeUpdate();\n\n return r + r2;\n } catch (SQLException e) {\n Logy.me(\"\" + e.getLocalizedMessage() + \" \" + e.getMessage());\n Sincronizador.setOk(false);\n Sincronizador.setDetalles(Sincronizador.getDetalles() + \"error update CRNS en DB, \");\n return 0;\n }\n } else {\n Logy.me(\"Error!!! no ha establecido previamente una conexion a la DB\");\n return 0;\n }\n }", "@Override\n\tpublic int update(Goods goods) {\n\t\treturn goodsDao.update(goods);\n\t}", "@Test\n public void updateTest7() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }", "public boolean updateByCodPersFIniHIni(String dbpool, String codPers,\n\t\t\tString periodo, String fechaIni, String horaIni, String mov)\n\t\t\tthrows SQLException {\n\n\t\tStringBuffer strUpd = new StringBuffer(\"\");\n\t\tPreparedStatement pre = null;\n\t\tConnection con = null;\n\t\tboolean result = false;\n\n\t\ttry {\n\n\t\t\tstrUpd.append(\"update t1271asistencia \" ).append( \"set mov = ? \"\n\t\t\t\t\t).append( \"where cod_pers = ? and periodo = ? \"\n\t\t\t\t\t).append( \" and fing = ? and hing = ? \");\n\n\t\t\tcon = getConnection(dbpool);\n\t\t\tpre = con.prepareStatement(strUpd.toString());\n\t\t\tpre.setString(1, mov);\n\t\t\tpre.setString(2, codPers);\n\t\t\tpre.setString(3, periodo);\n\t\t\tpre.setDate(4, new BeanFechaHora(fechaIni).getSQLDate());\n\t\t\tpre.setString(5, horaIni);\n\t\t\tint res = pre.executeUpdate();\n\n\t\t\tresult = (res > 0);\n \n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tlog.error(\"**** SQL ERROR **** \"+ e.toString());\n\t\t\tthrow new SQLException(e.toString());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpre.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "int updateByPrimaryKey(cskaoyan_mall_order_goods record);", "public void updateIncome(Income income) {\n\t\tSession session=null;\n\t\tTransaction tx=null;\n\t\ttry {\n\t\t\tsession=BuildSessionFactory.getCurrentSession();\n\t\t\ttx=session.beginTransaction();\n\t\t\tincomeDao.update(session, income);\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t\tthrow new UserException(e.getMessage());\n\t\t\t}\n\t\t}finally{\n\t\t\tif(session!=null && session.isOpen()){\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}", "private static void updateTest(int no,int book_no, int member_no, int count) {\n\t\tCartVo cartVo=new CartVo();\r\n\t\tcartVo.setNo(no);\r\n\t\tcartVo.setBook_no(book_no);\r\n\t\tcartVo.setMember_no(member_no);\r\n\t\tcartVo.setCount(count);\r\n\t\tboolean result=new CartDao().update(cartVo);\r\n\t\tif(!result) System.out.println(\"updateTest fail\");\r\n\t}", "int updateByPrimaryKey(DashboardGoods record);", "public void testUpdateProjeto() {\n Projeto p = ProjetoDAO.getProjetoByNome(\"proj4\");\n p.setDuracao(100);\n ProjetoDAO.updateProjeto(p);\n Projeto aux = ProjetoDAO.getProjetoByNome(\"proj4\");\n assertEquals(100, aux.getDuracao());\n }", "public UpdateIscrizioneDatabase(final Connection con, final Iscrizione i) {\r\n\t\tthis.con = con;\r\n\t\tthis.i = i;\r\n\t}", "@Override\r\n\tpublic void updateFournisseur(Fournisseur fournisseur) {\n\t\tthis.sessionFactory.getCurrentSession().update(fournisseur);\r\n\t}", "int updateByPrimaryKey(Drug_OutWarehouse record);", "int updateByPrimaryKey(ParkCurrent record);", "@Test\n\tpublic void testUpdateStock() {\n\t\tStock stock = null;\n\t\tString productId = \"HY-1004\";\n\t\tTestFactory tf = new TestFactory();\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tif (!tf.createStock(em, productId)) {\n\t\t\t\tfail(\"Unable to create \"); // doubt\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tem.getTransaction().begin();\n\t\t\t// Find Stock for update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\t// Update Business Partner\n\t\t\tstock.setQuantity(BigDecimal.valueOf(10));\n\t\t\tem.persist(stock);\n\t\t\tem.getTransaction().commit();\n\t\t\t// Find Business Partner after update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\tassertEquals(\n\t\t\t\t\t\"Update Stock: Stock attribute quantity not updated in the database\",\n\t\t\t\t\tBigDecimal.valueOf(10), stock.getQuantity());\n\t\t\ttf.deleteStock(em, productId);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\n\t}", "public void actualizar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //actualizar el Dia\n session.update(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n }\n finally {\n //cerramos siempre la sesion\n session.close();\n }\n}", "private static void updateAndWriteUnindexedRecordTo(Context context,\r\n CommCarePlatform platform,\r\n FormRecord oldRecord,\r\n SqlStorage<FormRecord> storage,\r\n String saveStatus)\r\n throws InvalidStructureException, IOException,\r\n XmlPullParserException, UnfullfilledRequirementsException {\r\n\r\n Pair<FormRecord, String> recordUpdates = reparseRecord(context, oldRecord);\r\n\r\n FormRecord updated = recordUpdates.first;\r\n updated = updated.updateStatus(saveStatus);\r\n String caseId = recordUpdates.second;\r\n\r\n if (caseId != null &&\r\n FormRecord.STATUS_UNINDEXED.equals(oldRecord.getStatus())) {\r\n // There is a case id associated with an unidexed form record,\r\n // calculate the state descripter and write it.\r\n // Occurs when loading forms manually onto the device using DataPullTask.\r\n AndroidSessionWrapper asw\r\n = AndroidSessionWrapper.mockEasiestRoute(platform,\r\n oldRecord.getFormNamespace(), caseId);\r\n asw.setFormRecordId(updated.getID());\r\n\r\n SqlStorage<SessionStateDescriptor> ssdStorage =\r\n CommCareApplication.instance().getUserStorage(SessionStateDescriptor.class);\r\n\r\n ssdStorage.write(SessionStateDescriptor.buildFromSessionWrapper(asw));\r\n }\r\n\r\n storage.write(updated);\r\n }", "public boolean addOrUpdateInsurance(InsuranceModel insuranceDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSuccessful = false;\n\n //As usual Wrap it in a transaction\n db.beginTransaction();\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_INSURANCE_OBJECT_ID, insuranceDetails.getInsuranceObjectId());\n values.put(KEY_INSURANCE_NAME, insuranceDetails.getInsuranceName());\n values.put(KEY_INSURANCE_IMAGE, insuranceDetails.getInsuranceImage());\n values.put(KEY_INSURANCE_ADDRESS, insuranceDetails.getInsuranceAddress());\n values.put(KEY_INSURANCE_SWIFT_CODE, insuranceDetails.getInsuranceSwiftCode());\n values.put(KEY_INSURANCE_STOCK_CODE, insuranceDetails.getInsuranceStockCode());\n values.put(KEY_INSURANCE_DESCRIPTION, insuranceDetails.getInsuranceDescription());\n values.put(KEY_INSURANCE_ESTABLISHED, insuranceDetails.getInsuranceEstablished());\n values.put(KEY_INSURANCE_CONTACTS, insuranceDetails.getInsuranceContacts());\n values.put(KEY_INSURANCE_TYPE, insuranceDetails.getInsuranceType());\n values.put(KEY_INSURANCE_WEBSITE, insuranceDetails.getInsuranceWebsite());\n values.put(KEY_INSURANCE_STATUS, insuranceDetails.getInsuranceStatus());\n values.put(KEY_INSURANCE_SUMMARY, insuranceDetails.getInsuranceSummary());\n //Let's try to update the Saved Product if it exists.\n int rows = db.update(TABLE_INSURANCE, values, KEY_INSURANCE_OBJECT_ID + \"= ?\", new String[]{insuranceDetails.getInsuranceObjectId()});\n\n //Let's check if the update worked\n if (rows == 1) {\n //Ok, we have updated a Saved Insurance Agency, we could probably get the Insurance updated at this point if we needed to\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n\n } else {\n //No Such Insurance Here, insert it\n db.insertOrThrow(TABLE_INSURANCE, null, values);\n db.setTransactionSuccessful();\n transactionSuccessful = true;\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error trying to Update Insurance table\");\n transactionSuccessful = false;\n } finally {\n db.endTransaction();\n }\n return transactionSuccessful;\n\n }", "private void validateAndChange(ComunidadQueryBean query) {\r\n\t\t\tJugComunidadCertificado certActivo=getCertificadoActivo(query);\r\n\t\t\t if(certActivo!=null){\r\n\t\t\t\t if(!certActivo.getHashCertificado().equals(query.getHashCertificado())){\r\n\t\t\t\t\t certActivo.setIndActivo(new Integer(0));\r\n\t\t\t\t\t comunidadRepository.update(certActivo);\r\n\t\t\t\t }\t\t\t\t\t\r\n\t\t\t }\r\n\t\t}", "@Test\n public void updateTest8() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }", "public void updateDataBuku(){\n String sql = \"UPDATE buku SET judulBuku = '\"+getJudulBuku()+\"'\"\n + \",pengarang = '\"+getPengarang()+\"'\"\n + \",penerbit = '\"+getPenerbit()+\"'\"\n + \",tahun = '\"+getTahun()+\"'\"\n + \",stok = '\"+getStok()+\"' WHERE idBuku = '\"+getIdBuku()+\"'\";\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public static void upDB() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n String upTable = \"UPDATE \" + StFrmNm\r\n + \" Set Sku = '\" + Field1 + \"',\"\r\n + \" Qty = '\" + Field2 + \"',\"\r\n + \" Description1 = '\" + Field3 + \"',\"\r\n + \" Orig_Sku = '\" + Field4 + \"',\"\r\n + \" Description2 = '\" + Field5 + \"',\"\r\n + \" Attribute2 = '\" + Field6 + \"',\"\r\n + \" Size2 = '\" + Field7 + \"',\"\r\n + \" Orig_Retail = '\" + Field8 + \"',\"\r\n + \" Manuf_Inspection = '\" + Field9 + \"',\"\r\n + \" New_Used = '\" + Field10 + \"',\"\r\n + \" Reason = '\" + Field11 + \"',\"\r\n + \" Desc_Damage = '\" + Field12 + \"',\"\r\n + \" Cust_Satisf = '\" + Field13 + \"',\"\r\n + \" Warranty = '\" + Field14 + \"',\"\r\n + \" Second_Sku_Vendor = '\" + vendor + \"',\"\r\n + \" Ln_Date = '\" + GtDates.ldate + \"',\" \r\n + \" Form_Name = '\" + StFrmNm + \"',\" \r\n + \" Second_Cost = '\" + prodCost + \"',\"\r\n + \" Second_Sku_VPNum = '\" + VPnum + \"',\"\r\n + \" First_DCS = null, \"\r\n + \" Second_DCS = '\" + DCS + \"',\"\r\n + \" Ord_C$ = '\" + ord_c + \"'\"\r\n + \" WHERE Line = \" + rline;\r\n /*\r\n + \"(Line, Qty, SKU, Description1, Reason, Desc_Damage, Orig_Retail, New_SKU, Description2, Qty_In, Ln_Date) \"\r\n + \"VALUES(\"\r\n + \"'\" + rline + \"'\" + \",\"\r\n + \"'\" + Field1 + \"'\" + \",\"\r\n + \"'\" + Field2 + \"'\" + \",\"\r\n + \"'\" + Field3 + \"'\" + \",\"\r\n + \"'\" + Field4 + \"'\" + \",\"\r\n + \"'\" + Field5 + \"'\" + \",\"\r\n + \"'\" + Field6 + \"'\" + \",\"\r\n + \"'\" + Field7 + \"'\" + \",\"\r\n + \"'\" + Field8 + \"'\" + \",\"\r\n + \"'\" + Field9 + \"'\" + \",\"\r\n + \"'\" + Field10 + \"'\" + \",\"\r\n + \"'\" + GtDates.ldate + \"'\"\r\n + \")\";\r\n */\r\n s.execute(upTable);\r\n \r\n }", "int updateByPrimaryKey(Disproduct record);", "@Test\n public void updateTest4() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setAnimazione(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isAnimazione() ,\"Should return true if update Servizio\");\n }", "@Override\n\tpublic void update(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.update(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "@Test\n public void updateTest3() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }", "public void update(ProfessionEntity profession) throws SQLException {\n openTransactionSession();\n\n Session session = getSession();\n session.update(profession);\n\n //close session with a transaction\n closeTransactionSession();\n }", "public void save()throws Exception{\n if(!pname1.getText().isEmpty() && !qty1.getText().isEmpty() && !prc1.getText().isEmpty() && !rsp1.getText().isEmpty() ){\r\n s_notif1.setId(\"hide\");\r\n ArrayList<Product> ar = new ArrayList<>();\r\n com.mysql.jdbc.Connection conn = db.getConnection();\r\n Statement stm = conn.createStatement();\r\n int rs = stm.executeUpdate(\"UPDATE products SET \"\r\n + \"name='\"+pname1.getText()+\"', \"\r\n + \"qty='\"+qty1.getText()+\"', \"\r\n + \"price='\"+prc1.getText()+\"',\"\r\n + \"re_stock_point='\"+rsp1.getText()+\"' WHERE ID ='\"+S_ID+\"';\");\r\n if(rs > 0){\r\n s_notif1.setId(\"show\");\r\n }\r\n }\r\n loadData();\r\n }", "public void updateInsurance(Insurance insurance) throws DataAccessException;", "public void saveOrUpdatePosPay(PosPay posPay) throws DataAccessException;", "@Override\n\tpublic boolean updateRecord(Products productInfoBean) {\n\t\treturn dao.updateRecord(productInfoBean);\n\t}", "int updateByPrimaryKey(CTipoComprobante record) throws SQLException;", "@Override\n public void update(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"UPDATE curso SET idprofesor = ?, nombrecurso = ?, claveprofesor = ?, clavealumno = ? WHERE idcurso = ?\");\n\n pstmt.setInt(1, entity.getIdProfesor());\n pstmt.setString(2, entity.getNombre());\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n pstmt.setInt(5, entity.getIdCurso());\n \n pstmt.executeUpdate();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "int updateByPrimaryKey(NeeqCompanyAccountingFirmOnline record);", "int updateByPrimaryKeySelective(NeeqCompanyAccountingFirmOnline record);", "@Test\n public void updateTest9() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCabina() ,\"Should return true if update Servizio\");\n }", "public void updateIscrizione() throws SQLException {\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tpstmt = con.prepareStatement(STATEMENT);\r\n\t\t\t\r\n\t\t\tArray sql = con.createArrayOf(\"boolean\", i.getDisponibilita());\r\n\t\t\t\r\n\t\t\tpstmt.setArray(1, sql);\r\n\t\t\tpstmt.setString(2, i.getGiocatore());\r\n\t\t\tpstmt.setInt(3, i.getTorneo());\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tpstmt.execute();\r\n\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\tpstmt.close();\r\n\t\t\t}\r\n\r\n\t\t\tcon.close();\r\n\t\t}\r\n\r\n\t}", "int updateByPrimaryKey(CartDO record);", "@Override\r\n\tpublic void updateFamille(Famille C) {\n\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t \tsession.beginTransaction();\r\n\t \tsession.update(C);\r\n\t \tsession.getTransaction().commit();\r\n\t}", "public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;", "@Override\n\tpublic void actualizarLinComClienImp(LineaComercialClienteImportacionDTO linComCliImpDTO)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo actualizarLinComClienImp \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"userId : \"+linComCliImpDTO.getUserId());\n\t\t\tLogeable.LOG_SICV2.info(\"estado : \"+linComCliImpDTO.getEstado());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoLineaComercial : \"+ linComCliImpDTO.getId().getCodigoLineaComercial());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion : \"+ linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\t\n\t\t\tStringBuilder query = new StringBuilder();\n\t\t\tQuery update;\n\t\t\t\t\n\t\t\thibernateH.getHibernateSession().clear();\n\t\t\t\t\n\t\t\tquery.append(\"update \").append(LineaComercialClienteImportacionDTO.class.getName()).append(\" d \")\n\t\t\t\t.append(\" set \")\n\t\t\t\t.append(\" d.fechaModificacion = CURRENT_TIMESTAMP, \")\n\t\t\t\t.append(\" d.estado = :pEstado, \")\n\t\t\t\t.append(\"d.idUsuarioModificacion = :pUsuarioModificacion \");\n\t\t\t\n\t\t\tquery.append(\" where \")\n\t\t\t\t.append(\" d.id.codigoLineaComercial = :pCodigoLineaComercial \");\n\t\t\t\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() != null){\n\t\t\t\tquery.append(\" and d.id.codigoClienteImportacion = :pCodigoClienteImportacion \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and d.estado = :pEstadoDiferente \");\n\t\t\t}\n\t\t\t\n\t\t\tupdate = hibernateH.getHibernateSession().createQuery(query.toString());\n\t\t\t\n\t\t\tupdate.setString(\"pUsuarioModificacion\", linComCliImpDTO.getUserId());\n\t\t\tupdate.setString(\"pEstado\",linComCliImpDTO.getEstado());\n\t\t\tupdate.setLong(\"pCodigoLineaComercial\", linComCliImpDTO.getId().getCodigoLineaComercial());\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() != null){\n\t\t\t\tupdate.setLong(\"pCodigoClienteImportacion\",linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\t}else{\n\t\t\t\tupdate.setString(\"pEstadoDiferente\",(SICConstantes.ESTADO_ACTIVO_NUMERICO.equals(linComCliImpDTO.getEstado())?SICConstantes.ESTADO_INACTIVO_NUMERICO:SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\t}\n\t\t\tupdate.executeUpdate();\t\n\t\t\t\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error actualizarLinComClienImp: \",e);\n\t\t}\n\t}", "@Override\n\tpublic Historico update(Historico entity) throws ApplicationException {\n\t\treturn null;\n\t}", "@Test\n public void updateTest14() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }", "int updateByPrimaryKey(UploadStateRegDTO record);", "private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }", "int updateByPrimaryKey(ResumePractice record);", "@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }" ]
[ "0.5678152", "0.5656867", "0.56222147", "0.5589477", "0.5534145", "0.54612327", "0.5367568", "0.53406215", "0.5326056", "0.53137016", "0.53069127", "0.5276088", "0.52491033", "0.5247143", "0.5240805", "0.5238447", "0.5234151", "0.52203375", "0.52200615", "0.5206692", "0.5198408", "0.51918685", "0.51865023", "0.5180681", "0.51639223", "0.5161797", "0.51422316", "0.51396453", "0.5138863", "0.51357806", "0.51128083", "0.51111084", "0.51088", "0.510223", "0.510223", "0.5100723", "0.50973046", "0.5096142", "0.50916255", "0.50916255", "0.50902134", "0.5085367", "0.50775135", "0.5070864", "0.50687885", "0.5067913", "0.5065881", "0.5063227", "0.5062095", "0.5060871", "0.50554293", "0.5054094", "0.50526696", "0.505001", "0.5049482", "0.50454473", "0.5043832", "0.5042902", "0.5041568", "0.5040113", "0.50284183", "0.5027399", "0.5023997", "0.50233215", "0.50206983", "0.501956", "0.5012971", "0.50082433", "0.50080776", "0.50002915", "0.4997647", "0.49972764", "0.4992624", "0.49920315", "0.4990554", "0.49868459", "0.4986425", "0.4986239", "0.49849084", "0.49725917", "0.49696428", "0.49652985", "0.49631056", "0.4962207", "0.4958272", "0.4956013", "0.49526113", "0.4951981", "0.49491602", "0.49434498", "0.49417418", "0.4940274", "0.49399802", "0.49384826", "0.4934641", "0.4927418", "0.49214286", "0.4921132", "0.491998", "0.4919459" ]
0.72958267
0
/ flush current states (except noInduk) of profils into db for each profil, if profil.noInduk is changed prior to calling this method then either not finding the record / updating the wrong record 'profils' may not be null null elts of 'profils' are removed, note this removal done directly on the arraylist given as 'profils' throws KasirException(DB_INVALID, Set), Set elts are indexes such that profils.get(index).isDBValid() = false throws KasirException(ROW_NOT_FOUND, Set), Set elts are indexes such that profils.get(index) = not in db ret num of profil successfully flushed ret 1 if profils.isEmpty() = true before null elts removal ret 2 if profils.isEmpty() = true after null elts removal
public static int updateS(ArrayList<Profil> profils) throws SQLException, KasirException{ return DBSR.updateKasirOs(tableName, noIndukColName, profils); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int deleteS(ArrayList<Profil> profils) throws SQLException{ //arraylist because name clash\r\n Set<String> noInduks = new HashSet<>(profils.size());\r\n for(Profil p : profils)\r\n noInduks.add(p.noInduk);\r\n return deleteS(noInduks);\r\n }", "@Before\n\tpublic void insertProfils(){\n\t\tProfil profil = null;\n\t\ttry {\n\t\t\tList<Profil> listProfil = profilService.findAll();\n\t\t\t//delete profils\n\t\t\tif (!listProfil.isEmpty()){\n\t\t\t\tIterator<Profil> iter = listProfil.iterator();\n\t\t\t\twhile(iter.hasNext()){\n\t\t\t\t\tprofil = iter.next();\n\t\t\t\t\tprofilService.delete(profil);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//insert profils\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tprofil = new Profil();\n\t\t\t\tprofil.setProfilDescription(\"profil of administrataion\" + i);\n\t\t\t\tprofil.setProfilName(\"administrator\" + i);\n\t\t\t\tprofilService.create(profil);\n\t\t\t}\n\t\t\t//Check insertion \n\t\t\tlistProfil = profilService.findAll();\n\t\t\tassertThat(listProfil.size(), equalTo(10));\n\t\t} catch (final HibernateException he) {\n\t\t\the.printStackTrace();\n\t\t\tfail();\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}", "@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\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(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static int isQuinteFlush(List<Carte> cartes){\r\n\t\tif(isCouleur(cartes)==-1) return -1;\r\n\t\telse return isSuite(cartes);\r\n\t}", "@Transactional \n\tpublic void updateAll() {\n\t\t\n\t\tIterator<Pharmacy> newList = pharmacyRepository1.getAllEntity().iterator();\n\t\twhile (newList.hasNext()) {\n\t\t\tPharmacy pharmacy = newList.next();\n\t\t\tlistStockInPharmacy(pharmacy);\n\t\t\t}\n\t\t\n\t}", "public synchronized void flushAll()\n {\n profiles.clear();\n flushProfileNames();\n flushUserProfileAssignments();\n profilePerms.clear();\n nameToId.clear();\n }", "private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }", "@Override\r\n\tpublic void updatePizzaRecord(int pId) {\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\tfos = new FileOutputStream(tempFile);\r\n\t\t\toos = new ObjectOutputStream(fos);\r\n\r\n\t\t\r\n\t\tList<PizzaBean> updateList = new ArrayList<PizzaBean>();\r\n\r\n\t\t\r\n\t\t\tupdateList = (List<PizzaBean>) ois.readObject();\r\n\t\t\tfor (PizzaBean p : updateList) {\r\n\t\t\t\tif (p.getpId() == pId) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"select \\n1.pname \\n2.pprice\\n3.pqty you want to update\");\r\n\t\t\t\t\tint n = sc.nextInt();\r\n\t\t\t\t\tswitch (n) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new pizza name\");\r\n\t\t\t\t\t\tp.setpName(sc.next());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new Pizza Price\");\r\n\t\t\t\t\t\tp.setpPrice(sc.nextInt());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new pizza Quantity\");\r\n\t\t\t\t\t\tp.setPqty(sc.nextInt());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"choose between 1-3\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttempList = new ArrayList<PizzaBean>();\r\n\t\t\t\t\ttempList.add(p);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempList.add(p);\r\n\t\t\t\t}\r\n\t\t\t\tfos=new FileOutputStream(tempFile);\r\n\t\t\t\toos=new ObjectOutputStream(oos);\r\n\t\t\t\t\r\n\t\t\t\toos.writeObject(tempList);\r\n\t\t\t\toriginal.delete();\r\n\t\t\t\ttempFile.renameTo(original);\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Pizza Updated Successfully\");\r\n\t}", "public synchronized static List<Store> loadStores(Connection c, String profil) throws SQLException {\r\n List<Store> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE \" + profil);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n Statement myStmt2 = c.createStatement();\r\n //The query which selects all the shops.\r\n ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n List<TypeStore> list = new ArrayList<>();\r\n while (myRs2.next()) {\r\n int idtype = myRs2.getInt(\"idType\");\r\n String designationType = myRs2.getString(\"designation\");\r\n TypeStore T = new TypeStore(idtype, designationType);\r\n list.add(T);\r\n }\r\n Store s = new Store(id, designation, description, rent, surface, floor, localization, list);\r\n filteredShopList.add(s);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }", "public boolean saveDown() {\n if (\n cashFlow == null ||\n cashFlow.getDetail() == null ||\n cashFlow.getDetail().isEmpty()\n ) {\n System.out.println(\"invalid model store\");\n return false;\n }\n boolean cashFlowSaveResult = CashFlow.save(cashFlow);\n\n // save cash flow failure case\n if (!cashFlowSaveResult) {\n System.out.println(\"query false\");\n return false;\n }\n\n // get owe per provider\n boolean owe_log = true;\n int pointer = 0;\n final Map<String, Integer> providerIndex = new HashMap<>();\n final int nrow = cashFlow.getDetail().size();\n final int[] owe = new int[nrow];\n for (Payable p: cashFlow.getDetail()) {\n String prvId = p.getProviderId();\n if (providerIndex.containsKey(prvId)) {\n owe[ providerIndex.get(prvId) ] += p.getPrice();\n } else {\n providerIndex.put(prvId, pointer);\n owe[ pointer ] = p.getPrice();\n pointer++;\n }\n }\n for (String k: providerIndex.keySet()) {\n owe_log = owe_log &&\n db.send(\"UPDATE NhaCungCap SET NoPhaiTra = NoPhaiTra + \"\n + owe[ providerIndex.get(k) ]\n + \" WHERE MaNCC = \" + k);\n }\n if (!owe_log) {\n System.out.println(\"update own false\");\n }\n return owe_log;\n }", "public int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);", "public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }", "@Test\n public void testSaveAndRemoveProduct() throws Exception {\n System.out.println(\"saveProduct\");\n dao.saveProduct(nonExisten);\n prs = dao.getAllProduct();\n products.add(nonExisten);\n assertArrayEquals(products.toArray(), prs.toArray());\n products.remove(nonExisten);\n dao.removeProduct(nonExisten);\n prs = dao.getAllProduct();\n assertArrayEquals(products.toArray(), prs.toArray());\n }", "public void guardarFacturas(ArrayList<Factura.DTOFactura> datos) {\n ArrayList<CuentaCorriente> cuentaCorrientes = getCuentasCorrientesCollection();\n\n for (CuentaCorriente cuentaCorriente : cuentaCorrientes) {\n ArrayList<Factura> facturas = new ArrayList<>();\n\n for (Factura.DTOFactura dtoFactura : datos) {\n if (dtoFactura.cuitProveedor == cuentaCorriente.getCuitProveedor()) {\n facturas.add(DTOUtil.toClass(dtoFactura, Factura.class));\n }\n }\n cuentaCorriente.setFacturas(facturas);\n }\n\n saveCuentaCorrientesCollection(cuentaCorrientes);\n }", "@Override\r\n\tpublic void updatePKCompuesta(List<T> listPasado, List<T> listFuturo) throws AppException {\n\t\tif (listPasado == null) {\r\n\t\t\tlistPasado = new ArrayList<T>();\r\n\t\t}\r\n\t\tif (listFuturo == null) {\r\n\t\t\tlistFuturo = new ArrayList<T>();\r\n\t\t}\r\n\r\n\t\t// Eliminar los registros de la lista antigua que no estén en la nueva\r\n\t\tif (listPasado.size() > 0) {\r\n\t\t\tfor (T t : listPasado) {\r\n\t\t\t\t// Si no lo contiene, se elimina de la base de datos\r\n\t\t\t\tif (!listFuturo.contains(t)) {\r\n\t\t\t\t\tthis.dao.delete(t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Comprobar lista futura\r\n\t\tif (listFuturo.size() > 0) {\r\n\t\t\tfor (T t : listFuturo) {\r\n\t\t\t\tif (!listPasado.contains(t)) {\r\n\t\t\t\t\t// Si no estaba en la lista anterior, entonces se crea en la\r\n\t\t\t\t\t// base de datos\r\n\t\t\t\t\tthis.dao.create(t);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Si estaba en la lista anterior, entonces se actualiza en\r\n\t\t\t\t\t// la base de datos\r\n\t\t\t\t\tthis.dao.update(t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }", "public synchronized static List<String> loadStoresByProfile(Connection c, String profil, int lim) throws SQLException {\r\n List<String> filteredShopList = new ArrayList<>();\r\n //The query which selects all the shops\r\n Statement myStmt = c.createStatement();\r\n //The query which selects all the shops matching the profile\r\n ResultSet myRs = myStmt.executeQuery(\"select magasin.* from magasin, magasin_has_type, type where magasin.idMagasin = magasin_has_type.magasin_idMagasin and magasin_has_type.type_idtype = type.idType and type.designation LIKE '\" + profil +\"%' limit \"+ lim);\r\n //Loop which adds a shop to the list.\r\n while (myRs.next()) {\r\n int id = myRs.getInt(\"idMagasin\");\r\n String designation = myRs.getString(\"designation\");\r\n String description = myRs.getString(\"description\");\r\n int rent = myRs.getInt(\"loyer\");\r\n int surface = myRs.getInt(\"superficie\");\r\n int floor = myRs.getInt(\"niveau\");\r\n String localization = myRs.getString(\"localisation\");\r\n //liste type \r\n// Statement myStmt2 = c.createStatement();\r\n// //The query which selects all the shops.\r\n// ResultSet myRs2 = myStmt2.executeQuery(\"SELECT designation,idType from magasin_has_type,type where magasin_has_type.type_idType=type.idType and magasin_has_type.magasin_idMagasin=\" + id);\r\n// List<TypeStore> list = new ArrayList<>();\r\n// while (myRs2.next()) {\r\n// int idtype = myRs2.getInt(\"idType\");\r\n// String designationType = myRs2.getString(\"designation\");\r\n// TypeStore T = new TypeStore(idtype, designationType);\r\n// list.add(T);\r\n// }\r\n filteredShopList.add(designation);\r\n }\r\n myStmt.close();\r\n return filteredShopList;\r\n }", "@Test\r\n\tpublic void retrieveAll() {\r\n\t\tList<Opinion> opinions = IntStream.range(0, BATCH_SIZE).mapToObj(i -> {\r\n\t\t\tOpinion currentOpinion = new Opinion(\"Student B\", \"B is for batch\");\r\n\t\t\tservice.save(currentOpinion);\r\n\t\t\treturn currentOpinion;\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tassertEquals(service.count(), BATCH_SIZE);\r\n\r\n\t\topinions.forEach(op -> service.delete(op));\r\n\t}", "private void persistUserDataIfNeeded() throws IOException {\n int amountdatasets = 0;\n for (Transaction t : buffer) {\n amountdatasets += t.getDatasets().size();\n }\n //more than 5 datasets in write buffer --> write committed transactions\n if (amountdatasets >= 5) {\n Set<Transaction> todelete = new HashSet<>();\n\n //only one thread at a time should enter this block\n synchronized (this) {\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" entered persistUserDataIfNeeded sync block\");\n for (Transaction t : buffer) {\n if (t.isCommitted()) {\n for (UserData data : t.getDatasets()) {\n persistData(data);\n }\n todelete.add(t);\n }\n }\n\n //here the deletion happens. Comment out if Abnahme is n�rgeling... :)\n for (Transaction t : todelete) {\n System.out.println(\"removing transaction \" + t.getId() + \" from buffer\");\n buffer.remove(t);\n }\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" left persistUserDataIfNeeded sync block\");\n }\n }\n }", "public String eliminarProgramaPeriodoDesarrollo_action()throws SQLException\n {\n mensaje=\"\";\n for(ProgramaProduccionPeriodo bean:programaProduccionPeriodoDesarrolloList)\n {\n if(bean.getChecked())\n {\n try\n {\n con = Util.openConnection(con);\n con.setAutoCommit(false);\n String consulta = \"select count(*) as contLotes\"+\n \" from PROGRAMA_PRODUCCION p where p.COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta verificar que el programa no tenga registrado lotes \"+consulta);\n Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n ResultSet res=st.executeQuery(consulta);\n res.next();\n PreparedStatement pst=null;\n if(res.getInt(\"contLotes\")>0)\n {\n mensaje=\"No se puede eliminar el Programa de Produccion porque tiene registrado \"+res.getInt(\"contLotes\")+\" lotes\";\n }\n else\n {\n consulta=\"delete PROGRAMA_PRODUCCION_PERIODO where COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta delete programa produccion periodo \"+consulta);\n pst=con.prepareStatement(consulta);\n if(pst.executeUpdate()>0)LOGGER.info(\"se elimino el programa de produccion periodo\");\n mensaje=\"1\";\n }\n con.commit();\n\n if(pst!=null)pst.close();\n con.close();\n }\n catch (SQLException ex)\n {\n con.rollback();\n con.close();\n mensaje=\"Ocurrio un error al momento de eliminar el programa periodo, intente de nuevo\";\n LOGGER.warn(\"error\", ex);\n }\n }\n }\n if(mensaje.equals(\"1\"))\n {\n this.cargarProgramaProduccionPeriodoDesarrollo_action();\n }\n return null;\n }", "@Override\r\n\tpublic void atualizr(Perfil perfil) {\n\t\tfor(int i=0;i<TAMANHO;i++) {\r\n\t\t\tif(perfis[i] != null) {\r\n\t\t\t\tif(perfis[i].getId() == perfil.getId()) {\r\n\t\t\t\t\tperfis[i]=perfil;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void flush(Map<TopicPartition, OffsetAndMetadata> offsets) throws ConnectException {\n\n\t\tSystem.out.print(\"Flush start at \"+System.currentTimeMillis());\n\t\tif (fuelList != null) {\n\t\t\tSystem.out.print(fuelList.size());\n\t\t\tfor(int fuelListIndex=0; fuelListIndex < fuelList.size(); fuelListIndex++){\n\t\t\t\ttry {\n\t\t\t\t\tnewConnection.insertFuelDB(fuelList.get(fuelListIndex));\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t// Clear the Arraylist and the updateDeviceTimeObject\n\t\t\tfuelList.clear() ;\n\t\t\tSystem.out.print(\"Flush stop at \" + System.currentTimeMillis());\n\t\t} \n\t }", "private void checking() {\n\n System.out.println(cart);\n\n for (Order o : cart) {\n if (o.getOrderedProduct().getPrice()!= productRepository.getOne(o.getOrderedProduct().getId()).getPrice()){\n System.out.println(\"product will be updated\");\n deleteFromCart(o.getOrderedProduct().getId());\n addToCart(o.getOrderedProduct().getId(),o.getCount());\n }\n }\n }", "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tAssert.assertTrue(results.hasNext());\n\n\t\tCar car = results.next();\n\n\t\tcar.getHistory().remove(0);\n\t\tdb.store(car.getHistory());\n\t\tresults = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\twhile (results.hasNext()) {\n\t\t\tcar = results.next();\n\t\t\tfor (int idx = 0; idx < car.getHistory().size(); idx++) {\n\t\t\t\tSystem.out.println(car.getHistory().get(idx));\n\t\t\t}\n\t\t}\n\n\t}", "public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }", "private void flushData()\n {\n try\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal() || !flushing.isEmpty())\n {\n ICardinality cardinality = flushing.poll(1, TimeUnit.MILLISECONDS);\n if (cardinality == null)\n continue;\n\n long numToFlush = cardinality.cardinality();\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"flushing\", true);\n }\n }\n catch (InterruptedException e)\n {\n logger.error(\"Exception happen during flushing\", e);\n }\n }", "void flushDB();", "private void saveRecords() {\r\n// for (int i = 0; i < reviewRecords.size(); i++) {\r\n// ReviewRecords get = reviewRecords.get(i);\r\n// if (!get.toString().startsWith(\"null\")) {\r\n// Logs.e(get.toString());\r\n// }\r\n//\r\n// }\r\n\r\n SQLiteJDBC sqliteJDBC = new SQLiteJDBC(GlobalParameters.WORKING_REVIEW_DB_PATH);\r\n StringBuilder sqlTableItems = new StringBuilder();\r\n\r\n sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n .append(\"StockName\").append(\" TEXT, \")\r\n .append(\"Reference\").append(\" TEXT, \")\r\n .append(\"Methods\").append(\" TEXT, \")\r\n .append(\"ObStartDate\").append(\" TEXT, \")\r\n .append(\"Comments\").append(\" TEXT)\");\r\n\r\n// sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n// .append(\"StockName\").append(\" TEXT, \")\r\n// .append(\"Reference\").append(\" TEXT, \")\r\n// .append(\"Methods\").append(\" TEXT, \")\r\n// .append(\"ObStartDate\").append(\" TEXT, \")\r\n// .append(\"ObStartPrice\").append(\" TEXT, \")\r\n// .append(\"ObEndDate\").append(\" TEXT, \")\r\n// .append(\"ObEndPrice\").append(\" TEXT, \")\r\n// .append(\"Profit\").append(\" TEXT, \")\r\n// .append(\"Efficency\").append(\" TEXT, \")\r\n// .append(\"Comments\").append(\" TEXT)\");\r\n String tableName = \"Review\";\r\n sqliteJDBC.createTable(tableName, sqlTableItems.toString());\r\n sqliteJDBC.insertColumns(tableName, colNames, getListData());\r\n\r\n }", "private boolean flush()\n {\n List<Protos.SchedulerTask> tasks = this.app.getTasks();\n\n //write all tasks to db\n for(Protos.SchedulerTask task : tasks)\n {\n if( !this.dbClient.updateTask(task) )\n {\n LOGGER.error(\"Failed to flush task to persistent storage\");\n return false;\n }\n }\n\n if( !this.dbClient.updateApp(this.getAppId().getValue(), this.app.getData()) )\n {\n LOGGER.error(\"Failed to flush app to persistent storage\");\n return false;\n }\n\n return true;\n }", "public static void update(Profil unProfil) {\n\n\t\t\n\t\tBDD uneBDD = new BDD(\"localhost\", \"MairieDeVilliers\", \"root\", \"\");\n\t\tuneBDD.chargerPilote();\n\t\tuneBDD.seConnecter();\n\t\tString requete = \"update personne set NOM ='\" + unProfil.getNom() + \"' , PRENOM = '\" + unProfil.getPrenom()\n\t\t\t\t+ \"', DATENAISS ='\" + unProfil.getDatenaiss() + \"',SEXE='\" + unProfil.getSexe() + \"',ADRESSE='\"\n\t\t\t\t+ unProfil.getAdresse() + \"',CP='\" + unProfil.getCp() + \"',Ville='\" + unProfil.getVille() + \"',TEL='\"\n\t\t\t\t+ unProfil.getTel() + \"' where EMAIL='\" + unProfil.getEmail()+\"';\";\n\t\ttry {\n\t\t\tStatement unStat = uneBDD.getMaconnexion().createStatement();\n\t\t\tunStat.execute(requete);\n\t\t\tunStat.close();\n\n\t\t} catch (SQLException exp) {\n\t\t\tSystem.out.println(\"Erreur d'execution :\" + requete);\n\t\t}\n\n\t\tuneBDD.seDeconnecter();\n\n\t}", "private boolean guardarAutorizacionReserva(){\n java.sql.Connection conLoc;\n boolean blnRes=true;\n try{\n lblMsgSis.setText(\"Guardando datos...\");\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\n pgrSis.setIndeterminate(true);\n int intNumFil=objTblMod.getRowCountTrue(), intCodEmp, intCodLoc, intCodCot;\n for (int i=0; i<intNumFil;i++){\n if (objUti.parseString(objTblMod.getValueAt(i,0)).equals(\"M\")){ \n intCodEmp=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_EMP).toString() );\n intCodLoc=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_LOC).toString() );\n intCodCot=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_COT).toString() );\n if(objTblMod.isChecked(i, INT_TBL_DAT_CHK_AUTORIZAR)){\n if(validaStock(intCodEmp, intCodLoc, intCodCot)){\n if(validaControlesCxC(intCodEmp, intCodLoc, intCodCot)){\n if(validaDatosAutorizacion(i,intCodEmp, intCodLoc,intCodCot)){\n // AUTORIZACION\n if(tblDat.getValueAt(i, INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"F\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(objDatItm.modificaItemTerminalOcupado(intCodEmp, intCodLoc, intCodCot)){\n if(guardarAutorizacionFacturacionAutomatica(conLoc,i,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit(); \n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n blnCotVen=true;\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n conLoc.close();\n conLoc=null; \n }\n }\n else if(tblDat.getValueAt(i,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(guardarAutorizacionReservaEmpresa(conLoc,i ,intCodEmp,intCodLoc, intCodCot)){\n conLoc.commit();\n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n }\n else{\n blnRes=false;\n conLoc.rollback();\n }\n conLoc.close();\n conLoc=null; \n }\n }\n }\n }\n else{\n blnRes=false;\n }\n }\n else{\n blnRes=false;\n }\n }else if(objTblMod.isChecked(i,INT_TBL_DAT_CHK_DENEGAR)){\n /* DENEGAR */\n if(revisarCotizacionPendiente(intCodEmp,intCodLoc,intCodCot)){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(cambiarEstadoCotizacionDenegada(conLoc,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit();\n enviarCorreoSolicitudDenegada(intCodEmp,intCodLoc,intCodCot);\n }\n else{\n conLoc.rollback();\n }\n }\n conLoc.close();\n conLoc=null;\n }\n else{\n MensajeInf(\"La cotizacion \"+intCodCot+\" no se puede denegar, ya ha sido autorizada. Debe solicitar cancelacion. \");\n }\n }\n blnRes=false;\n blnGenSolTra=false;\n }\n }\n pgrSis.setIndeterminate(false);\n \n if(!blnIsCotVen){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n cargarDetReg(conLoc);\n conLoc.close();\n conLoc=null;\n }\n blnRes=true;\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }", "@Override\n\tpublic void flushCars() {\n\t\tinList.flush();\n\t}", "public void buscar() {\r\n sessionProyecto.getProyectos().clear();\r\n sessionProyecto.getFilterProyectos().clear();\r\n try {\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(null, sessionProyecto.getCarreraSeleccionada().getId() != null\r\n ? sessionProyecto.getCarreraSeleccionada().getId() : null, null, Boolean.TRUE));\r\n \r\n if (proyectoCarreraOfertas == null) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : proyectoCarreraOfertas) {\r\n proyectoCarreraOferta.getProyectoId().setEstado(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getEstadoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setCatalogo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getCatalogoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setTipo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getTipoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setAutores(autores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setDirectores(directores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setNombreOferta(ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId()).getNombre());\r\n if (!this.sessionProyecto.getProyectos().contains(proyectoCarreraOferta.getProyectoId())) {\r\n proyectoCarreraOferta.getProyectoId().setCarrera(carreraService.find(proyectoCarreraOferta.getCarreraId()).getNombre());\r\n this.sessionProyecto.getProyectos().add(proyectoCarreraOferta.getProyectoId());\r\n }\r\n }\r\n sessionProyecto.setFilterProyectos(sessionProyecto.getProyectos());\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\n }", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "public void prodottiDellaLista(int LID, HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n ProductListDAO productListDAO = new MySQLProductListDAOImpl();\n ProductDAO productDAO = new MySQLProductDAOImpl();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n UserDAO userDAO = new MySQLUserDAOImpl();\n \n List productList = productListDAO.getPIDsByLID(LID);\n Product product = null;\n String [][] prodotto = new String [productList.size()][10];\n \n SharingProductDAO sharingProductDAO = new MySQLSharingProductDAOImpl();\n List userSharedProduct = null;\n \n for(int i=0; i<productList.size(); i++){\n product = productDAO.getProduct(((ProductList)(productList.get(i))).getPID(), (String)session.getAttribute(\"emailSession\"));\n prodotto[i][0] = product.getName();\n prodotto[i][1] = product.getNote();\n prodotto[i][2] = product.getLogo();\n prodotto[i][3] = product.getPhoto();\n prodotto[i][4] = productCategoryDAO.getProductCategory(product.getPCID()).getName();\n prodotto[i][5] = userDAO.getUser(product.getEmail()).getName();\n prodotto[i][6] = Integer.toString(((ProductList)(productList.get(i))).getQuantity());\n prodotto[i][7] = Integer.toString(product.getPID());\n prodotto[i][8] = userDAO.getUser(product.getEmail()).getSurname();\n \n if (!userDAO.getUser(product.getEmail()).getAdmin()) {\n userSharedProduct = sharingProductDAO.getAllEmailsbyPID(Integer.parseInt(prodotto[i][7]));\n if (userSharedProduct.isEmpty() || userSharedProduct.size()>1){\n prodotto[i][9] = String.valueOf(userSharedProduct.size()) + \" utenti\";\n } else {\n prodotto[i][9] = String.valueOf(userSharedProduct.size()) + \" utente\";\n }\n } else {\n prodotto[i][9] = \"Tutti gli utenti\";\n }\n }\n \n session.setAttribute(\"Prodotto\", prodotto);\n \n }", "synchronized private void flushPendingUpdates() throws SailException {\n\t\tif (!isActiveOperation()\n\t\t\t\t|| isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) {\n\t\t\tflush();\n\t\t\tpendingAdds = false;\n\t\t\tpendingRemovals = false;\n\t\t}\n\t}", "@Transactional(propagation=Propagation.REQUIRED,isolation =Isolation.REPEATABLE_READ, rollbackFor = Exception.class)\r\n public int update(List<Test> list) throws Exception {\r\n int updateCount = 0;\r\n if (list == null || list.size() == 0) {\r\n return updateCount;\r\n }\r\n for (Test obj : list) {\r\n if (obj == null) {\r\n continue;\r\n }\r\n try {\r\n updateCount += this.testMapper.updateByPrimaryKeySelective(obj);\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }\r\n return updateCount;\r\n }", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "public void update() {\n\n dbWork.cleanAll();\n\n List<DataFromServiceKudaGo> list = requestDataFromService();\n\n List<Film> films = new ArrayList<>();\n for (DataFromServiceKudaGo data : list) {\n Film film = new Film(list.indexOf(data), data.getNameMovie(), data.getPosterMoviePath(),\n data.getRunning_time(), data.getPrice(), data.getImax(),\n data.getCountryFilm(), data.getYearFilm(), data.getTrailerFilm(),\n data.getAgeFilm(), data.getDirectorFilm(), data.getNameCinema(),\n data.getAddressCinema(), data.getPhone(), data.getStationAboutCinema(),\n data.getPosterCinemaPath(), data.getBeginning_time(), data.getDescription());\n films.add(film);\n }\n\n dbWork.setFilms(films);\n\n fillShows();\n }", "public void quitterGroupe (int idGroupe, int idType) throws RemoteException{\r\n\t\t\t\r\n\t\t //Récupérer le propriétaire du groupe :\r\n\t\t String requete = \"Select g_idprop From groupe Where g_id = \" + idGroupe;\r\n\t\t System.out.println(\"requete quitterGroupe(1) : \" + requete);\r\n\t\t \r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t String[] line = null;\r\n\t\t int idProp=-1;\r\n\t\t \r\n\t\t \tif (data.hasMoreElements()) {\r\n\t\t \t\tline = data.nextElement();\r\n\t\t \t\tidProp = Integer.parseInt(line[1]);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \trequete = \"DELETE FROM groupeassoc Where ga_idetudiant = \" + _etudiant.getId() +\r\n \t\t\t \" AND ga_idgroupe = \" + idGroupe;\t\r\n\t\t \tSystem.out.println(\"requete quitterGroupe(2) : \" + requete);\r\n\t\t \tdatabase.executeUpdate(requete);\r\n\t\t \t\r\n\t\t \tif (idProp == _etudiant.getId()){\r\n\t\t \t\trequete = \"Select ga_idetudiant From groupeassoc Where ga_idgroupe = \" + idGroupe;\r\n\t\t \t\tSystem.out.println(\"requete quitterGroupe(3) : \" + requete);\r\n\t\t \t\tdata = database.executeQuery(requete);\r\n\t\t \t\t\r\n\t\t \t\tint idFuturProp = -1;\r\n\t\t \t\tif (data.hasMoreElements()) {\r\n\t\t\t \t\tline = data.nextElement();\r\n\t\t\t \t\tidFuturProp = Integer.parseInt(line[1]);\r\n\t\t\t \t}\r\n\t\t \t\t\r\n\t\t \t\trequete = \"UPDATE groupe SET g_idprop = \" + idFuturProp + \" Where g_id = \" + idGroupe;\r\n\t\t \t\tSystem.out.println(\"requete quitterGroupe(4) : \" + requete);\r\n\t\t \t\tdatabase.executeUpdate(requete);\r\n\t\t \t}\r\n\t\t \t\r\n\t \t\trequete = \"INSERT INTO groupe VALUES ( DEFAULT, \" + _etudiant.getId() + \", \" + idType + \" )\"; \r\n\t \t\tSystem.out.println(\"requete quitterGroupe(5) : \" + requete);\r\n\t \t\tdatabase.executeUpdate(requete);\r\n\t \t\t\r\n\t \t\trequete = \"INSERT INTO groupeassoc ( Select g_id, g_idprop From groupe Where g_idprop = \" + _etudiant.getId() + \" AND g_idtype = \" + idType + \" )\";\r\n\t \t\tSystem.out.println(\"requete quitterGroupe(6) : \" + requete);\r\n\t \t\tdatabase.executeUpdate(requete);\r\n\t\t \t\t \r\n\t\t}", "int updateByPrimaryKey(CmsCouponBatch record);", "public void postFlush(Iterator iterator) {\r\n\t\t//System.out.println(\"postFlush\");\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif(inserts.size() > 0){\r\n\t\t\t\tevaluate(inserts.iterator().next(), \"evt:batchinsert\");\r\n\t\t\t}\r\n\t\t\tfor (Iterator it = inserts.iterator(); it.hasNext();) {\r\n\t\t\t\tFile entity = (File) it.next();\r\n\t\t\t\t//System.out.println(\"postFlush - insert\");\r\n\t\t\t\tLogIt(\"Saved\", entity);\r\n\t\t\t\t\r\n\t\t\t\tevaluate(entity, \"evt:insert\");\r\n\t\t\t\t//if(entity.getParent().getProperty(\"cst:event\"))\r\n\t\t\t}\r\n\r\n\t\t\tif(updates.size() > 0){\r\n\t\t\t\tevaluate(updates.iterator().next(), \"evt:batchupdate\");\r\n\t\t\t}\r\n\t\t\tfor (Iterator it = updates.iterator(); it.hasNext();) {\r\n\t\t\t\tFile entity = (File) it.next();\r\n\t\t\t\t//System.out.println(\"postFlush - update\");\r\n\t\t\t\tLogIt(\"Updated\", entity);\r\n\t\t\t\tevaluate(entity, \"evt:update\");\r\n\t\t\t}\r\n\r\n\t\t\tif(deletes.size() > 0){\r\n\t\t\t\tevaluate(deletes.iterator().next(), \"evt:batchdelete\");\r\n\t\t\t}\r\n\t\t\tfor (Iterator it = deletes.iterator(); it.hasNext();) {\r\n\t\t\t\tFile entity = (File) it.next();\r\n\t\t\t\t//System.out.println(\"postFlush - delete\");\r\n\t\t\t\tLogIt(\"Deleted\", entity);\r\n\t\t\t\tevaluate(entity, \"evt:delete\");\r\n\t\t\t}\r\n\r\n\t\t} finally {\r\n\t\t\tinserts.clear();\r\n\t\t\tupdates.clear();\r\n\t\t\tdeletes.clear();\r\n\t\t}\r\n\t}", "public void atualizarResumo(){\n\t\tSet<AdapterProcedimento> paraRemover = new HashSet<AdapterProcedimento>();\n\t\tif(isAuditarProcedimentosCirurgicos() && !isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(adapter.getHonorarios().isEmpty() && !adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isAuditarProcedimentosCirurgicos() && isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(!adapter.getHonorarios().isEmpty() && adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprocedimentos.removeAll(paraRemover);\n\t}", "public void removeUserCountedOfCensus(List<String> idCensus,String idProfile)\n\t{\n\t\topen();\n\t\ttry\n\t\t{\n\t\t\tfor(String current:idCensus)\n\t\t\t{\n\t\t\t\tCensus old=getCensusById(current);\n\t\t\t\tCensus updated=new Census(old);\n\t\t\t\tupdated.removeIdOfUsersCounted(idProfile);\n\t\t\t\tDB.delete(old);\n\t\t\t\tDB.store(updated);\n\t\t\t}\n\t\t\tSystem.out.println(\"[DB4O] Census was updated\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"[DB4]ERROR:Census could not be updated\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t}", "int updateByPrimaryKeySelective(CmsCouponBatch record);", "public int updateBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.updateBatch(\"Resourcesvalue.updateByPK\", list);\n \treturn rows;\n }", "@Override\r\n\tpublic void updateSoftDrinkRecord(int sId) {\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original2);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\tfos = new FileOutputStream(tempFile2);\r\n\t\t\toos = new ObjectOutputStream(fos);\r\n\t\t\r\n\t\tList<SoftDrinkBean>updateList=new ArrayList<SoftDrinkBean>();\r\n\t\t\r\n\t\t\tupdateList=(List<SoftDrinkBean>)ois.readObject();\r\n\t\t\tfor(SoftDrinkBean s:updateList){\r\n\t\t\t\tif(s.getsId()==sId){\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"select \\n1.pname \\n2.pprice\\n3.pqty you want to update\");\r\n\t\t\tint n = sc.nextInt();\r\n\t\t\tswitch (n) {\r\n\t\t\tcase 1:\r\n\t\t\t\tSystem.out.println(\"Enter new drink name\");\r\n\t\t\t\ts.setsName(sc.next());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tSystem.out.println(\"Enter new drink Price\");\r\n\t\t\t\ts.setsPrice(sc.nextDouble());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(\"Enter new drink Quantity\");\r\n\t\t\t\ts.setSqty(sc.nextInt());\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"choose between 1-3\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttempList2 = new ArrayList<SoftDrinkBean>();\r\n\t\t\ttempList2.add(s);\r\n\t\t} else {\r\n\t\t\ttempList2.add(s);\r\n\t\t}\r\n\t\t\t\tfos=new FileOutputStream(tempFile2);\r\n\t\t\t\toos=new ObjectOutputStream(oos);\r\n\t\t\t\t\r\n\t\toos.writeObject(tempList2);\r\n\t\toriginal.delete();\r\n\t\ttempFile.renameTo(original);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\nSystem.out.println(\"------------------SoftDrink Updated successfully------------\");\r\n\t}", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Profil)) {\r\n return false;\r\n }\r\n Profil other = (Profil) object;\r\n if ((this.idprofil == null && other.idprofil != null) || (this.idprofil != null && !this.idprofil.equals(other.idprofil))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private void updateDB() {\r\n //if(!m_state.isEndingGame()) return;\r\n if(m_connectionName == null || m_connectionName.length() == 0 || !m_botAction.SQLisOperational()) {\r\n m_botAction.sendChatMessage(\"Database not connected. Not updating scores.\");\r\n return;\r\n }\r\n\r\n for(KimPlayer kp : m_allPlayers.values()) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"INSERT INTO tblJavelim (fcName,fnGames,fnKills,fnDeaths) \"\r\n + \"VALUES ('\" + Tools.addSlashes(kp.m_name) + \"',1,\" + kp.m_kills + \",\" + kp.m_deaths + \") \"\r\n + \"ON DUPLICATE KEY UPDATE fnGames = fnGames + 1, fnKills = fnKills + VALUES(fnKills), fnDeaths = fnDeaths + VALUES(fnDeaths)\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_mvp != null) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnMVPs = fnMVPs + 1 WHERE fcName='\" + Tools.addSlashes(m_mvp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n\r\n if(m_winner != null && m_winner.size() != 0) {\r\n for(KimPlayer kp : m_winner) {\r\n try {\r\n m_botAction.SQLQueryAndClose(m_connectionName\r\n , \"UPDATE tblJavelim SET fnWins= fnWins + 1 WHERE fcName='\" + Tools.addSlashes(kp.m_name) + \"'\");\r\n } catch(SQLException e) {\r\n Tools.printStackTrace(e);\r\n }\r\n }\r\n }\r\n }", "boolean flush_all();", "private static boolean flush(ArrayList<CardSuit> suits) {\n //this for loop traverse the suits in order to check if there\n // are two cards of different suits\n for (int i = 1; i < suits.size(); i++) {\n if (suits.get(i) != suits.get(i -1)){\n return false;\n }\n }\n return true;\n }", "public void actualizarProyectosFinanciados() {\r\n\t\t\r\n\t\tDouble financiacion;\r\n\t\tfor(Proyecto p: this.proyectos) {\r\n\t\t\tif(p.getEstadoProyecto()== EstadoProyecto.PENDIENTEFINANCIACION) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfinanciacion = CCGG.getGateway().getAmountGranted( p.getIdSeguimientoSistemaFinanciacion() );\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(financiacion > 0) {\r\n\t\t\t\t\t\tp.financiarProyecto(financiacion);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tp.rechazarProyecto(\"El sistema de financiacion ha denegado la financiacion del proyecto\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch ( NullPointerException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} catch ( Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testPLFM_1978_createOrUpdateBatch(){\n\t\tList<DBOFileHandle> list = new LinkedList<DBOFileHandle>();\r\n\t\t// pass the empty list should return an empty result\r\n\t\tList<Long> results = migratableTableDAO.createOrUpdateBatch(list);\r\n\t\tassertNotNull(results);\r\n\t\tassertEquals(0, results.size());\r\n\t}", "public void flush() {\n\t\tupdateCounter++;\n//\t\trules.update();\n\t}", "@Synchronized\r\n public void cleanTransferModelRecordsPeriodically() {\r\n try {\r\n ArrayList<Long> arrayList = getTransferModelsListIds();\r\n ArrayList<String> arrayListToDelete = new ArrayList<>();\r\n if (!arrayList.isEmpty() && arrayList.size() > 20) {\r\n for (int i = 19; i < arrayList.size(); i++) {\r\n arrayListToDelete.add(arrayList.get(i) + \"\");\r\n }\r\n String[] itemIds = arrayListToDelete.toArray(new String[arrayListToDelete.size()]);\r\n if (itemIds != null && itemIds.length > 0) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\", itemIds);\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n FirebaseCrashlytics.getInstance().recordException(e);\r\n }\r\n }", "private void saveObsequios(String estado) {\n int c = mObsequios.size();\n for (Obsequio obsequio : mObsequios) {\n obsequio.getMovilInfo().setEstado(estado);\n estudioAdapter.updateObsequioSent(obsequio);\n publishProgress(\"Actualizando Obsequios\", Integer.valueOf(mObsequios.indexOf(obsequio)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }", "public void persistData(RatingData[] data) {\n //start by setting long_comp_result\n //TODO: maybe remove old_rating / vol and move to the record creation?\n String sqlStr = \"update long_comp_result set rated_ind = 1, \" +\n \"old_rating = (select rating from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"old_vol = (select vol from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"new_rating = ?, \" +\n \"new_vol = ? \" +\n \"where round_id = ? and coder_id = ?\";\n PreparedStatement psUpdate = null;\n PreparedStatement psInsert = null;\n \n try {\n psUpdate = conn.prepareStatement(sqlStr);\n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n psUpdate.executeUpdate();\n }\n \n psUpdate.close();\n //update algo_rating\n String updateSql = \"update algo_rating set rating = ?, vol = ?,\" +\n \" round_id = ?, num_ratings = num_ratings + 1 \" +\n \"where coder_id = ? and algo_rating_type_id = 3\";\n \n psUpdate = conn.prepareStatement(updateSql);\n \n String insertSql = \"insert into algo_rating (rating, vol, round_id, coder_id, algo_rating_type_id, num_ratings) \" +\n \"values (?,?,?,?,3,1)\";\n \n psInsert = conn.prepareStatement(insertSql);\n \n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n if(psUpdate.executeUpdate() == 0) {\n psInsert.clearParameters();\n psInsert.setInt(1, data[i].getRating());\n psInsert.setInt(2, data[i].getVolatility());\n psInsert.setInt(3, roundId);\n psInsert.setInt(4, data[i].getCoderID());\n psInsert.executeUpdate();\n }\n }\n \n psUpdate.close();\n psInsert.close();\n \n //mark the round as rated\n psUpdate = conn.prepareStatement(\"update round set rated_ind = 1 where round_id = ?\");\n psUpdate.setInt(1, roundId);\n psUpdate.executeUpdate();\n \n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n DBMS.close(psUpdate);\n DBMS.close(psInsert);\n }\n }", "private void cleanupUserKeyRecords() {\n\t\tUserKeyRecord currentlyValid = null;\n\t\t//For all \"new\" entries: If there's another sandbox record (regardless of user)\n\t\t//which shares the sandbox ID, we can set the status of the new record to be\n\t\t//the same as the old record.\n\t\t\n\t\t//TODO: We dont' need to read these records, we can read the metadata straight.\n\t\tSqlStorage<UserKeyRecord> storage = app.getStorage(UserKeyRecord.class);\n\t\tfor(UserKeyRecord record : storage) {\n\t\t\tif(record.getType() == UserKeyRecord.TYPE_NORMAL) {\n\t\t\t\t\n\t\t\t\tif(record.getUsername().equals(username) && record.isCurrentlyValid() && record.isPasswordValid(password)) {\n\t\t\t\t\tif(currentlyValid == null) {\n\t\t\t\t\t\tcurrentlyValid = record;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLogger.log(AndroidLogger.TYPE_ERROR_ASSERTION, \"User \" + username + \" has more than one currently valid key record!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(record.getType() == UserKeyRecord.TYPE_NEW) {\n\t\t\t\t//See if we have another sandbox with this ID that is fully initialized.\n\t\t\t\tif(app.getStorage(UserKeyRecord.class).getIDsForValues(new String[] {UserKeyRecord.META_SANDBOX_ID, UserKeyRecord.META_KEY_STATUS}, new Object[] {record.getUuid(), UserKeyRecord.TYPE_NORMAL}).size() > 0) {\n\t\t\t\t\t\n\t\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Marking new sandbox \" + record.getUuid() + \" as initialized, since it's already in use on this device\");\n\t\t\t\t\t//If so, this sandbox _has_ to have already been initialized, and we should treat it as such.\n\t\t\t\t\trecord.setType(UserKeyRecord.TYPE_NORMAL);\n\t\t\t\t\tstorage.write(record);\n\t\t\t\t}\n\t\t\t} else if (record.getType() == UserKeyRecord.TYPE_PENDING_DELETE) {\n\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Cleaning up sandbox which is pending removal\");\n\t\t\t\t\n\t\t\t\t//See if there are more records in this sandbox. (If so, we can just wipe this record and move on) \n\t\t\t\tif(storage.getIDsForValue(UserKeyRecord.META_SANDBOX_ID, record.getUuid()).size() > 2) {\n\t\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Record for sandbox \" + record.getUuid() + \" has siblings. Removing record\");\n\t\t\t\t\t\n\t\t\t\t\t//TODO: Will this invalidate our iterator?\n\t\t\t\t\tstorage.remove(record);\n\t\t\t\t} else {\n\t\t\t\t\t//Otherwise, we should see if we can read the data, and if so, wipe it as well as the record.\n\t\t\t\t\tif(record.isPasswordValid(password)) {\n\t\t\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Current user has access to purgable sandbox \" + record.getUuid() + \". Wiping that sandbox\");\n\t\t\t\t\t\tUserSandboxUtils.purgeSandbox(this.getContext(), app, record,record.unWrapKey(password));\n\t\t\t\t\t}\n\t\t\t\t\t//Do we do anything here if we couldn't open the sandbox?\n\t\t\t\t}\n\t\t\t}\n\t\t\t//TODO: Specifically we should never have two sandboxes which can be opened by the same password (I think...)\n\t\t}\n\t}", "public synchronized static void updateShop(int idShop, String designation, String description, int loyer, int surface, int niveau, String localisation, List<Integer> ListidTypeOld, List<Integer> ListidTypeNew, Connection c) throws SQLException {\r\n //The query which selects all the shops.\r\n System.out.println(\"taille : \" + ListidTypeOld.size());\r\n System.out.println(ListidTypeOld);\r\n System.out.println(ListidTypeNew);\r\n PreparedStatement myStmt2 = null;\r\n //The query which modifies one or more attributes of a shop.\r\n myStmt2 = c.prepareStatement(\"update magasin set designation=? ,description=?, loyer=? , superficie=? , niveau=? , localisation=? where idMagasin=? \");\r\n\r\n //The attributes' values are placed in the same order as \"?\".\r\n System.out.println(designation);\r\n myStmt2.setString(1, designation);\r\n myStmt2.setString(2, description);\r\n myStmt2.setInt(3, loyer);\r\n myStmt2.setInt(4, surface);\r\n myStmt2.setInt(5, niveau);\r\n myStmt2.setString(6, localisation);\r\n myStmt2.setInt(7, idShop);\r\n myStmt2.executeUpdate();\r\n //This request update the type of the shop ;\r\n PreparedStatement myStmt3 = null;\r\n PreparedStatement myStmt4 = null;\r\n// int sizeOld = ListidTypeOld.size();\r\n// int indexTabNew = 0;\r\n// int idType = 0;\r\n\r\n //on recupere les id des type \r\n int oldType1 = ListidTypeOld.get(0);\r\n int oldType2 = ListidTypeOld.get(1);\r\n int newType1 = ListidTypeNew.get(0);\r\n int newType2 = ListidTypeNew.get(1);\r\n\r\n if (newType1 != oldType1 && newType1 != oldType2) {\r\n if (newType1 == 0) {\r\n myStmt3 = c.prepareStatement(\"delete From magasin_has_type where magasin_idMagasin=? and type_idType=?\");\r\n myStmt3.setInt(1, idShop);\r\n myStmt3.setInt(2, oldType1);\r\n myStmt3.executeUpdate();\r\n\r\n // if we update a type \r\n } else {\r\n myStmt3 = c.prepareStatement(\"update magasin_has_type set type_idType=? where magasin_idMagasin=? and type_idType= ?\");\r\n myStmt3.setInt(1, newType1);\r\n myStmt3.setInt(2, idShop);\r\n myStmt3.setInt(3, oldType1);\r\n myStmt3.executeUpdate();\r\n ListidTypeOld.remove(0);\r\n }\r\n }\r\n if (newType2 != oldType2) {\r\n // if we delete a type\r\n if (newType2 == 0) {\r\n myStmt4 = c.prepareStatement(\"delete From magasin_has_type where magasin_idMagasin=? and type_idType=?\");\r\n myStmt4.setInt(1, idShop);\r\n myStmt4.setInt(2, oldType2);\r\n myStmt4.executeUpdate();\r\n\r\n }\r\n // if we add a type \r\n if (oldType2 == 0 && newType2 != 0) {\r\n System.out.println(\"oooo\");\r\n myStmt4 = c.prepareStatement(\"insert into magasin_has_type values (?,?)\");\r\n myStmt4.setInt(1, idShop);\r\n myStmt4.setInt(2, newType2);\r\n myStmt4.executeUpdate();\r\n // if we update a type \r\n }\r\n if (oldType2 != 0 && newType2 != 0) {\r\n myStmt4 = c.prepareStatement(\"update magasin_has_type set type_idType=? where magasin_idMagasin=? and type_idType= ?\");\r\n myStmt4.setInt(1, newType2);\r\n myStmt4.setInt(2, idShop);\r\n myStmt4.setInt(3, oldType2);\r\n myStmt4.executeUpdate();\r\n System.out.println(oldType2 + \"\" + newType2);\r\n }\r\n\r\n }\r\n\r\n }", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "public ArrayList<Proposta> buscarPropostasSemFiltro() {\n\n ArrayList<Proposta> listaDePropostas = new ArrayList<>();\n\n conectarnoBanco();\n\n String sql = \"SELECT * FROM proposta\";\n\n try {\n\n st = con.createStatement();\n\n rs = st.executeQuery(sql);\n\n System.out.println(\"Lista de propostas: \");\n\n while (rs.next()) {\n\n Proposta propostaTemp = new Proposta(rs.getString(\"propostaRealizada\"), rs.getFloat(\"valorProposta\"), rs.getInt(\"id_usuario\"), rs.getInt(\"id_projeto\"),rs.getInt(\"id_client\"));\n\n System.out.println(\"Proposta = \" + propostaTemp.getPropostaRealizada());\n System.out.println(\"Valor da Proposta = \" + propostaTemp.getValorProposta());\n\n System.out.println(\"---------------------------------\");\n\n listaDePropostas.add(propostaTemp);\n\n sucesso = true;\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao buscar propostas = \" + ex.getMessage());\n sucesso = false;\n } finally {\n try {\n\n if (con != null && pst != null) {\n con.close();\n pst.close();\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao fechar o bd = \" + ex.getMessage());\n }\n\n }\n\n return listaDePropostas;\n }", "private void updateSeatInformation(List<Seat> seatList) {\n\n AdministratorSQLiteOpenHelper administratorSQLiteOpenHelper = new AdministratorSQLiteOpenHelper(this, \"CineTEC\", null, 1);\n SQLiteDatabase sqLiteDatabase = administratorSQLiteOpenHelper.getWritableDatabase();\n\n for(int i = 0; i < seatList.size(); i++) {\n\n Seat seat = seatList.get(i);\n\n // Getting seats by screening id, row number and column number\n sqLiteDatabase.execSQL(\"DELETE FROM SEAT WHERE Screening_id=\" + seat.getScreeningId() + \" AND Row_num=\" + seat.getRowNum() + \" AND Column_num=\" + seat.getColumnNum());\n\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(\"Screening_id\", seat.getScreeningId());\n contentValues.put(\"Row_num\", seat.getRowNum());\n contentValues.put(\"Column_num\", seat.getColumnNum());\n contentValues.put(\"State\", \"sold\");\n\n // emulator or phone connected to internet\n if(checkInternetConnection()) {\n\n contentValues.put(\"Sync_status\", 1);\n\n seat.setState(\"sold\");\n\n updateSeat(seat);\n\n // emulator or phone not connected to internet\n } else {\n\n contentValues.put(\"Sync_status\", 0);\n\n }\n\n sqLiteDatabase.insert(\"SEAT\", null, contentValues);\n\n }\n\n Toast.makeText(ConfirmationActivity.this, \"Successful purchase\", Toast.LENGTH_SHORT).show();\n\n sqLiteDatabase.close();\n\n }", "private void arrangeData() {\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"), literalSdf = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss zzz yyyy\", Locale.ENGLISH);\r\n\t\t\tList<Csv> list = HibernateUtil.readAllCsv();\r\n\t\t\tfor (Csv csv : list) {\r\n\t\t\t\t// Se non esiste il progetto lo creo\r\n\t\t\t\tProject pForName = HibernateUtil.readProjectForName(csv.getProgettoPolarion());\r\n\t\t\t\tif (pForName == null) {\r\n\t\t\t\t\tpForName = new Project();\r\n\t\t\t\t\tpForName.setNome(csv.getProgettoPolarion());\r\n\t\t\t\t\tHibernateUtil.save(pForName);\r\n\t\t\t\t}\r\n\t\t\t\tRelease releaseDiProgetto = null;\r\n\t\t\t\tif (csv.getColonnaB() != null && csv.getColonnaB().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaB\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * idReleaseDiProgetto; titleReleaseDiProgetto;\r\n\t\t\t\t\t * priorityReleaseDiProgetto; severityReleaseDiProgetto;\r\n\t\t\t\t\t * progettoPolarion; versione; link; release;\r\n\t\t\t\t\t * dataCreazioneReleaseDiProgetto;\r\n\t\t\t\t\t * dataUltimoAggiornamentoReleaseDP\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString[] bElements = csv.getColonnaB().split(Pattern.quote(\";\"));\r\n\t\t\t\t\treleaseDiProgetto = HibernateUtil.readRelease(bElements[0].trim());\r\n\t\t\t\t\tboolean toUpdate = false, toSave = false;\r\n\r\n\t\t\t\t\tif (releaseDiProgetto == null) {\r\n\t\t\t\t\t\treleaseDiProgetto = new Release();\r\n\t\t\t\t\t\treleaseDiProgetto.setIdPolarion(bElements[0].trim());\r\n\t\t\t\t\t\ttoSave = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (releaseDiProgetto.getTitolo() == null\r\n\t\t\t\t\t\t\t|| !releaseDiProgetto.getTitolo().equals(bElements[1].trim())) {\r\n\t\t\t\t\t\treleaseDiProgetto.setTitolo(bElements[1].trim());\r\n\t\t\t\t\t\tif (!toSave)\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[2] != null && bElements[2].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getPriority() != null\r\n\t\t\t\t\t\t\t\t&& releaseDiProgetto.getPriority().getValore() != Float.parseFloat(bElements[2].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\tif (toSave || toUpdate)\r\n\t\t\t\t\t\t\treleaseDiProgetto\r\n\t\t\t\t\t\t\t\t\t.setPriority(HibernateUtil.readPriority(Float.parseFloat(bElements[2].trim())));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[3] != null && bElements[3].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getSeverity() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getSeverity().getNome().equals(bElements[3].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\tif (toSave || toUpdate)\r\n\t\t\t\t\t\t\treleaseDiProgetto.setSeverity(HibernateUtil.readSeverity(bElements[3].trim()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\treleaseDiProgetto.setProject(pForName);\r\n\t\t\t\t\tif (bElements[5] != null && bElements[5].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getVersione() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getVersione().equals(bElements[5].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setVersione(bElements[5].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[6] != null && bElements[6].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getLink() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getLink().equals(bElements[6].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setLink(bElements[6].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[7] != null && bElements[7].trim().length() > 0) {\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getType() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getType().equals(bElements[6].trim()))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setType(bElements[7].trim());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[8] != null && bElements[8].trim().length() > 0) {\r\n\t\t\t\t\t\tDate dataCreazione = sdf.parse(bElements[8].trim());\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getDataCreazione() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getDataCreazione().equals(dataCreazione))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setDataCreazione(dataCreazione);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bElements[9] != null && bElements[9].trim().length() > 0) {\r\n\t\t\t\t\t\tDate dataUltimoAggiornamento = sdf.parse(bElements[9].trim());\r\n\t\t\t\t\t\tif (!toSave && releaseDiProgetto.getDataUpdate() != null\r\n\t\t\t\t\t\t\t\t&& !releaseDiProgetto.getDataUpdate().equals(dataUltimoAggiornamento))\r\n\t\t\t\t\t\t\ttoUpdate = true;\r\n\t\t\t\t\t\treleaseDiProgetto.setDataUpdate(dataUltimoAggiornamento);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (toSave)\r\n\t\t\t\t\t\tHibernateUtil.save(releaseDiProgetto);\r\n\t\t\t\t\telse if (toUpdate)\r\n\t\t\t\t\t\tHibernateUtil.update(Release.class, releaseDiProgetto);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaC() != null && csv.getColonnaC().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaC\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoRelease\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString regex = Pattern.quote(\"(\") + \"(.*?)\" + Pattern.quote(\")\");\r\n\t\t\t\t\tPattern pattern = Pattern.compile(regex);\r\n\t\t\t\t\tMatcher matcher = pattern.matcher(csv.getColonnaC());\r\n\t\t\t\t\twhile (matcher.find()) {\r\n\t\t\t\t\t\tString[] history = matcher.group(1).split(Pattern.quote(\"^\"));\r\n\r\n\t\t\t\t\t\tStatus status = null;\r\n\t\t\t\t\t\tif (history.length > 0)\r\n\t\t\t\t\t\t\tstatus = HibernateUtil.readStatus(history[0].trim());\r\n\t\t\t\t\t\tDate dataUpdate = null;\r\n\t\t\t\t\t\tif (history.length > 1)\r\n\t\t\t\t\t\t\tdataUpdate = sdf.parse(history[1]);\r\n\t\t\t\t\t\tUser user = null;\r\n\t\t\t\t\t\tif (history.length > 2)\r\n\t\t\t\t\t\t\tuser = HibernateUtil.readUser(history[2].trim());\r\n\r\n\t\t\t\t\t\tReleaseHistory rHistory = HibernateUtil.readReleaseHistory(releaseDiProgetto, status,\r\n\t\t\t\t\t\t\t\tdataUpdate, user);\r\n\t\t\t\t\t\tif (rHistory == null) {\r\n\t\t\t\t\t\t\trHistory = new ReleaseHistory();\r\n\t\t\t\t\t\t\trHistory.setRelease(releaseDiProgetto);\r\n\t\t\t\t\t\t\trHistory.setStatus(status);\r\n\t\t\t\t\t\t\trHistory.setDataUpdate(dataUpdate);\r\n\t\t\t\t\t\t\trHistory.setUser(user);\r\n\t\t\t\t\t\t\tHibernateUtil.save(rHistory);\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 (csv.getColonnaD() != null && csv.getColonnaD().length() > 0) {\r\n\t\t\t\t\t// TODO D\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaD\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoSviluppo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaE() != null && csv.getColonnaE().length() > 0) {\r\n\t\t\t\t\t// TODO E\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaE\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoMev\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaF() != null && csv.getColonnaF().length() > 0) {\r\n\t\t\t\t\t// TODO F\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaF\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoDocumento\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaG() != null && csv.getColonnaG().length() > 0) {\r\n\t\t\t\t\t// TODO G\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaG\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoRds\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaH() != null && csv.getColonnaH().length() > 0) {\r\n\t\t\t\t\t// TODO H\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaH\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoDefect\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaI() != null && csv.getColonnaI().length() > 0) {\r\n\t\t\t\t\t// TODO I\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaI\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoAnomalia\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tReleaseIt releaseIT = null;\r\n\t\t\t\tif (csv.getColonnaJ() != null && csv.getColonnaJ().length() > 0) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaJ\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * progettoReleaseIt\r\n\t\t\t\t\t */\r\n\t\t\t\t\tboolean hasLinkedItem = false;\r\n\t\t\t\t\tif (csv.getColonnaJ().startsWith(\"<\") && csv.getColonnaJ().endsWith(\">\")) {\r\n\t\t\t\t\t\tcsv.setColonnaJ(csv.getColonnaJ().substring(1, csv.getColonnaJ().length() - 1));\r\n\t\t\t\t\t\thasLinkedItem = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString[] elements = csv.getColonnaJ().split(Pattern.quote(\"|\"));\r\n\t\t\t\t\tif (hasLinkedItem) {\r\n\t\t\t\t\t\tLinkedItemId lIId = new LinkedItemId();\r\n\t\t\t\t\t\tlIId.setIdPolarionPadre(releaseDiProgetto.getIdPolarion());\r\n\t\t\t\t\t\tlIId.setIdPolarionFiglio(elements[1]);\r\n\t\t\t\t\t\tLinkedItem li = HibernateUtil.readLinkedItem(lIId);\r\n\t\t\t\t\t\tif (li == null) {\r\n\t\t\t\t\t\t\tli = new LinkedItem();\r\n\t\t\t\t\t\t\tli.setId(lIId);\r\n\t\t\t\t\t\t\tHibernateUtil.save(li);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treleaseIT = HibernateUtil.readReleaseIT(elements[1].trim());\r\n\t\t\t\t\tboolean toSave = false;\r\n\t\t\t\t\tif (releaseIT == null || !releaseIT.getTitolo().equals(elements[2].trim())) {\r\n\t\t\t\t\t\tif (releaseIT == null) {\r\n\t\t\t\t\t\t\treleaseIT = new ReleaseIt();\r\n\t\t\t\t\t\t\treleaseIT.setIdPolarion(elements[1].trim());\r\n\t\t\t\t\t\t\ttoSave = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treleaseIT.setTitolo(elements[2].trim());\r\n\t\t\t\t\t\tif (elements[3] != null && elements[3].trim().length() > 0){\r\n\t\t\t\t\t\t\tDate d = null;\r\n\t\t\t\t\t\t\ttry{ \r\n\t\t\t\t\t\t\t\td = sdf.parse(elements[3].trim());\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\td = literalSdf.parse(elements[3].trim());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treleaseIT.setDataInizio(d);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (elements[4] != null && elements[4].trim().length() > 0){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\treleaseIT.setDataFine(sdf.parse(elements[4].trim()));\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\treleaseIT.setDataFine(literalSdf.parse(elements[4].trim()));\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 (toSave)\r\n\t\t\t\t\t\t\tHibernateUtil.save(releaseIT);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tHibernateUtil.update(ReleaseIt.class, releaseIT);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (elements.length > 5 && elements[5] != null && elements[5].trim().length() > 0) {\r\n\t\t\t\t\t\tString regex = Pattern.quote(\"(\") + \"(.*?)\" + Pattern.quote(\")\");\r\n\t\t\t\t\t\tPattern pattern = Pattern.compile(regex);\r\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(elements[5].trim());\r\n\t\t\t\t\t\tboolean isFirstRow = true;\r\n\t\t\t\t\t\t// formato sdf per Thu Feb 18 00:00:00 CET 2016\r\n\t\t\t\t\t\twhile (matcher.find()) {\r\n\t\t\t\t\t\t\tString[] history = matcher.group(1).split(Pattern.quote(\"^\"));\r\n\t\t\t\t\t\t\tStatus status = HibernateUtil.readStatus(history[0].trim());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tDate dataUpdate = null;\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdataUpdate = sdf.parse(history[1]);\r\n\t\t\t\t\t\t\t}catch(ParseException pe){\r\n\t\t\t\t\t\t\t\tdataUpdate = literalSdf.parse(history[1]);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (isFirstRow && releaseIT.getDataCreazione() == null) {\r\n\t\t\t\t\t\t\t\treleaseIT.setDataCreazione(dataUpdate);\r\n\t\t\t\t\t\t\t\tHibernateUtil.update(ReleaseIt.class, releaseIT);\r\n\t\t\t\t\t\t\t\tisFirstRow = false;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tReleaseitHistory rItHistory = null;\r\n\t\t\t\t\t\t\tif (history.length > 2) {\r\n\t\t\t\t\t\t\t\tUser user = HibernateUtil.readUser(history[2].trim());\r\n\t\t\t\t\t\t\t\trItHistory = HibernateUtil.readReleaseItHistory(releaseIT, status, dataUpdate,\r\n\t\t\t\t\t\t\t\t\t\tuser);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (rItHistory == null) {\r\n\t\t\t\t\t\t\t\trItHistory = new ReleaseitHistory();\r\n\t\t\t\t\t\t\t\trItHistory.setReleaseIt(releaseIT);\r\n\t\t\t\t\t\t\t\trItHistory.setStatus(status);\r\n\t\t\t\t\t\t\t\trItHistory.setDataUpdate(dataUpdate);\r\n\t\t\t\t\t\t\t\tHibernateUtil.save(rItHistory);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaK() != null && csv.getColonnaK().length() > 0) {\r\n\t\t\t\t\t// TODO K\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaK\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * taskInfo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaL() != null && csv.getColonnaL().length() > 0) {\r\n\t\t\t\t\t// TODO L\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaL\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * workRecordInfo\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaM() != null && csv.getColonnaM().length() > 0) {\r\n\t\t\t\t\t// TODO M\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaM\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * infoTestcase\r\n\t\t\t\t\t */\r\n\t\t\t\t}\r\n\t\t\t\tif (csv.getColonnaN() != null && csv.getColonnaN().length() > 0) {\r\n\t\t\t\t\t// TODO N\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * ColonnaN\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * infoChecklist\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\tLogger.getLogger(Scheduler.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t}", "public void AfficherListProspect() throws Exception{\n laListeProspeect = Prospect_Db_Connect.tousLesProspects();\n laListeProspeect.forEach((p) -> {\n modelProspect.addRow(new Object[]{ p.getIdent(),\n p.getRaison(),\n p.getTypeSo(),\n p.getDomaine(),\n p.getAdresse(),\n p.getTel(),\n p.getCa(),\n p.getComment(),\n p.getNbrEmp(),\n p.getDateProspetc(),\n p.getInteretPropspect()});\n });\n }", "@Override\r\n\tpublic void updateIceCreamRecord(int iceId) {\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(original1);\r\n\t\t\tois = new ObjectInputStream(fis);\r\n\t\t\tfos = new FileOutputStream(tempFile1);\r\n\t\t\toos = new ObjectOutputStream(fos);\r\n\r\n\t\r\n\t\tList<IceCreamBean> updateList1 = new ArrayList<IceCreamBean>();\r\n\r\n\t\t\r\n\t\t\tupdateList1 = (List<IceCreamBean>) ois.readObject();\r\n\t\t\tfor (IceCreamBean p : updateList1) {\r\n\t\t\t\tif (p.getIceId() == iceId) {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(\"select \\n1.pname \\n2.pprice\\n3.pqty you want to update\");\r\n\t\t\t\t\tint n = sc.nextInt();\r\n\t\t\t\t\tswitch (n) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new Icecream name\");\r\n\t\t\t\t\t\tp.setIceName(sc.next());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new Icecream Price\");\r\n\t\t\t\t\t\tp.setIceprice(sc.nextDouble());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"Enter new Icecream Quantity\");\r\n\t\t\t\t\t\tp.setPqty(sc.nextInt());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"choose between 1-3\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttempList1 = new ArrayList<IceCreamBean>();\r\n\t\t\t\t\ttempList1.add(p);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempList1.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfos=new FileOutputStream(tempFile1);\r\n\t\t\toos=new ObjectOutputStream(oos);\r\n\t\t\t\toos.writeObject(tempList1);\r\n\t\t\t\toriginal1.delete();\r\n\t\t\t\ttempFile1.renameTo(original);\r\n\t\t\t\r\n\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }", "@PostConstruct\n\t@Transactional\n\tpublic void fillData() {\n\t\n\t\tBookCategory progromming1 = new BookCategory(1,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming2 = new BookCategory(2,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming3 = new BookCategory(3,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming4 = new BookCategory(4,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming5 = new BookCategory(5,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming6 = new BookCategory(6,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming7 = new BookCategory(7,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming8 = new BookCategory(8,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming9 = new BookCategory(9,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming10 = new BookCategory(10,\"Programming\",new ArrayList<Book>());\n\t\t\n\n\t\t\n\t\tbookCategoryRepository.save(progromming1);\n\t\tbookCategoryRepository.save(programming2);\n\t\tbookCategoryRepository.save(programming3);\n\t\tbookCategoryRepository.save(programming4);\n\t\tbookCategoryRepository.save(programming5);\n\t\tbookCategoryRepository.save(programming6);\n\t\tbookCategoryRepository.save(programming7);\n\t\tbookCategoryRepository.save(programming8);\n\t\tbookCategoryRepository.save(programming9);\n\t\tbookCategoryRepository.save(programming10);\n\t\t\n\t\tBook java = new Book(\n\t\t\t\t(long) 1,\"text-100\",\"Java Programming Language\",\n\t\t\t\t \"Master Core Java basics\",\n\t\t\t\t 754,\n\t\t\t\t \"assets/images/books/text-106.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogromming1\n\t\t);\n\t\tBook kotlin = new Book(\n\t\t\t\t(long) 2,\"text-101\",\"Kotlin Programming Language\",\n\t\t\t\t \"Learn Kotlin Programming Language\",\n\t\t\t\t 829,\n\t\t\t\t \"assets/images/books/text-102.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming2\n\t\t);\n\t\tBook python = new Book(\n\t\t\t\t(long) 3,\"text-102\",\"Python 9\",\n\t\t\t\t \"Learn Python Language\",\n\t\t\t\t 240,\n\t\t\t\t \"assets/images/books/text-103.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming3\n\t\t);\n\t\tBook cShap = new Book(\n\t\t\t\t(long) 4,\"text-103\",\"C#\",\n\t\t\t\t \"Learn C# Programming Language\",\n\t\t\t\t 490,\n\t\t\t\t \"assets/images/books/text-101.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming4\n\t\t);\n\t\tBook cpp = new Book(\n\t\t\t\t(long) 5,\"text-104\",\"C++\",\n\t\t\t\t \"Learn C++ Language\",\n\t\t\t\t 830,\n\t\t\t\t \"assets/images/books/text-110.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming5\n\t\t);\n\t\tBook dataStru = new Book(\n\t\t\t\t(long) 6,\"text-105\",\"Data Structure 3\",\n\t\t\t\t \"Learn Data Structures\",\n\t\t\t\t 560,\n\t\t\t\t \"assets/images/books/text-106.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming6\n\t\t);\n\t\tBook cprog = new Book(\n\t\t\t\t(long) 7,\"text-106\",\"C Programming\",\n\t\t\t\t \"Learn C Language\",\n\t\t\t\t 695,\n\t\t\t\t \"assets/images/books/text-100.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming7\n\t\t);\n\t\tBook crushInterview = new Book(\n\t\t\t\t(long) 3,\"text-102\",\"Coding Interview\",\n\t\t\t\t \"Crushing the Coding interview\",\n\t\t\t\t 600,\n\t\t\t\t \"assets/images/books/text-103.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming8\n\t\t);\n\t\tBook desing = new Book(\n\t\t\t\t(long) 859,\"text-102\",\"Design Parttens\",\n\t\t\t\t \"Learn Python Language\",\n\t\t\t\t 690,\n\t\t\t\t \"assets/images/books/text-105.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming9\n\t\t);\n\t\tBook machineLearn = new Book(\n\t\t\t\t(long) 9,\"text-102\",\"Python 3\",\n\t\t\t\t \"Learn Python Machine Learning with Python\",\n\t\t\t\t 416,\n\t\t\t\t \"assets/images/books/text-107.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming10\n\t\t);\n\t\tBook apiJava = new Book(\n\t\t\t\t(long) 10,\"text-102\",\"Practical API Design\",\n\t\t\t\t \"Java Framework Architect\",\n\t\t\t\t 540,\n\t\t\t\t \"assets/images/books/text-108.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming8\n\t\t);\n\tbookRepository.save(java);\n\tbookRepository.save(kotlin);\n\tbookRepository.save(python);\n\tbookRepository.save(cpp);\n\tbookRepository.save(cprog);\n\tbookRepository.save(crushInterview);\n\tbookRepository.save(cShap);\n\tbookRepository.save(dataStru);\n\tbookRepository.save(desing);\n\tbookRepository.save(machineLearn);\n\tbookRepository.save(apiJava);\n\n\t}", "public static void clean(Context context) {\n try (SQLiteDatabase db = new DatabaseFactory(context, null).getWritableDatabase()) {\n UploadingFilesRepository uploadRepo = new UploadingFilesRepository(db);\n Response response = uploadRepo.deleteAll();\n\n SyncQueueRepository syncRepo = new SyncQueueRepository(db);\n List<SyncQueueEntryModel> syncEntries = syncRepo.getAll();\n\n for (SyncQueueEntryModel syncEntry : syncEntries) {\n\n boolean isProcessing = syncEntry.getStatus() == SyncStateEnum.PROCESSING.getValue();\n boolean isQued = syncEntry.getStatus() == SyncStateEnum.QUEUED.getValue();\n\n if (isProcessing || isQued) {\n\n SyncQueueEntryDbo dbo = new SyncQueueEntryDbo(syncEntry);\n dbo.setProp(SynchronizationQueueContract._STATUS, SyncStateEnum.IDLE.getValue());\n\n Response updateResponse = syncRepo.update(dbo.toModel());\n }\n }\n } catch (Exception e) {\n\n }\n }", "private void saveOrupdateExceptionRecordCounts(Session session, GapData gapData) {\n\t\tchar currentLevel = gapData.getWaring();\r\n\r\n\t\tif (currentLevel != 'N') {\r\n\r\n\t\t\t// 添加一条新的记录,同时把设备标记改成当前级别\r\n\t\t\tExceptionTimesBean execeptionTimesBean = new ExceptionTimesBean();\r\n\t\t\texeceptionTimesBean.setBegTime(gapData.getCreateTime());\r\n\t\t\texeceptionTimesBean.setEndTime(gapData.getCreateTime());\r\n\t\t\texeceptionTimesBean.setDeviceId(gapData.getGap().getId());\r\n\t\t\tif (gapData.getNext()) {\r\n\t\t\t\texeceptionTimesBean.setTrain('N');\r\n\t\t\t} else {\r\n\t\t\t\texeceptionTimesBean.setTrain('Y');\r\n\t\t\t}\r\n\t\t\texeceptionTimesBean.setExceptionCounts(1);\r\n\t\t\texeceptionTimesBean.setDeviceName(gapData.getGap().getName());\r\n\t\t\texeceptionTimesBean.setLevel(currentLevel);\r\n\t\t\texeceptionTimesBean.setGongquId(gapData.getGap().getGongqu().getId());\r\n\t\t\texeceptionTimesBean.setType(\"GAP\");\r\n\t\t\t// gapData.getGap().setDataLevel(currentLevel);\r\n\t\t\tsession.save(execeptionTimesBean);\r\n\t\t\t// session.saveOrUpdate(gapData.getGap());\r\n\r\n\t\t\t/*\r\n\t\t\t * 取消连续报警记录统计 if(gapLevel=='N'||gapLevel!=currentLevel){\r\n\t\t\t * //添加一条新的记录,同时把设备标记改成当前级别 ExceptionTimesBean execeptionTimesBean =\r\n\t\t\t * new ExceptionTimesBean();\r\n\t\t\t * execeptionTimesBean.setBegTime(gapData.getCreateTime());\r\n\t\t\t * execeptionTimesBean.setEndTime(gapData.getCreateTime());\r\n\t\t\t * execeptionTimesBean.setDeviceId(gapData.getGap().getId());\r\n\t\t\t * if(gapData.getNext()){ execeptionTimesBean.setTrain('N'); }else{\r\n\t\t\t * execeptionTimesBean.setTrain('Y'); }\r\n\t\t\t * execeptionTimesBean.setExceptionCounts(1);\r\n\t\t\t * execeptionTimesBean.setDeviceName(gapData.getGap().getName());\r\n\t\t\t * execeptionTimesBean.setLevel(currentLevel);\r\n\t\t\t * execeptionTimesBean.setGongquId\r\n\t\t\t * (gapData.getGap().getGongqu().getId());\r\n\t\t\t * execeptionTimesBean.setType(\"GAP\");\r\n\t\t\t * gapData.getGap().setDataLevel(currentLevel);\r\n\t\t\t * session.save(execeptionTimesBean);\r\n\t\t\t * session.saveOrUpdate(gapData.getGap()); } else{\r\n\t\t\t * //更新原有的记录,同时把设备标记改成当前级别\r\n\t\t\t * \r\n\t\t\t * String sql =\r\n\t\t\t * \"from ExceptionTimesBean as etb where etb.type=:type and etb.level=:level and etb.deviceId=:deviceId and etb.train=:train order by etb.begTime DESC\"\r\n\t\t\t * ; Query query = session.createQuery(sql);\r\n\t\t\t * query.setParameter(\"type\", \"GAP\");\r\n\t\t\t * query.setParameter(\"level\",currentLevel); char train = 'N';\r\n\t\t\t * if(!gapData.getNext()){ train = 'Y'; }\r\n\t\t\t * query.setParameter(\"train\",train);\r\n\t\t\t * query.setParameter(\"deviceId\",gapData.getGap().getId());\r\n\t\t\t * query.setFirstResult(0); query.setMaxResults(1);\r\n\t\t\t * List<ExceptionTimesBean> etbs = query.list();\r\n\t\t\t * if(etbs!=null&&etbs.size()>0){ ExceptionTimesBean etb =\r\n\t\t\t * etbs.get(0); etb.setExceptionCounts(etb.getExceptionCounts()+1);\r\n\t\t\t * etb.setEndTime(gapData.getCreateTime()); }else{\r\n\t\t\t * ExceptionTimesBean execeptionTimesBean = new\r\n\t\t\t * ExceptionTimesBean();\r\n\t\t\t * execeptionTimesBean.setBegTime(gapData.getCreateTime());\r\n\t\t\t * execeptionTimesBean.setEndTime(gapData.getCreateTime());\r\n\t\t\t * execeptionTimesBean.setDeviceId(gapData.getGap().getId());\r\n\t\t\t * execeptionTimesBean.setExceptionCounts(1);\r\n\t\t\t * execeptionTimesBean.setLevel(currentLevel);\r\n\t\t\t * if(gapData.getNext()){ execeptionTimesBean.setTrain('N'); }else{\r\n\t\t\t * execeptionTimesBean.setTrain('Y'); }\r\n\t\t\t * execeptionTimesBean.setGongquId\r\n\t\t\t * (gapData.getGap().getGongqu().getId());\r\n\t\t\t * execeptionTimesBean.setDeviceName(gapData.getGap().getName());\r\n\t\t\t * execeptionTimesBean.setType(\"GAP\");\r\n\t\t\t * gapData.getGap().setDataLevel(currentLevel);\r\n\t\t\t * session.save(execeptionTimesBean);\r\n\t\t\t * session.saveOrUpdate(gapData.getGap()); } }\r\n\t\t\t */\r\n\r\n\t\t}/*\r\n\t\t * else{ gapData.getGap().setDataLevel('N');\r\n\t\t * session.saveOrUpdate(gapData.getGap()); }\r\n\t\t */\r\n\r\n\t}", "public void updateProfiles(List<ProfileInfo> list)\r\n\t{\r\n\t\tremoveProfiles();\r\n\t\t\r\n\t\tfor (ProfileInfo info : list)\r\n\t\t{\r\n\t\t\taddProfile(info);\r\n\t\t\t\r\n\t\t\t// add one to count\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tps.setValue(PROFILE_COUNT, count);\r\n\t}", "private void flushDirtyLogs() {\n logger.debug(\"Checking for dirty logs to flush...\");\n Utils.foreach(logs, new Callable1<Map.Entry<TopicAndPartition, Log>>() {\n @Override\n public void apply(Map.Entry<TopicAndPartition, Log> _) {\n TopicAndPartition topicAndPartition = _.getKey();\n Log log = _.getValue();\n\n try {\n long timeSinceLastFlush = time.milliseconds() - log.lastFlushTime();\n logger.debug(\"Checking if flush is needed on \" + topicAndPartition.topic + \" flush interval \" + log.config.flushMs + \" last flushed \" + log.lastFlushTime() + \" time since last flush: \" + timeSinceLastFlush);\n if (timeSinceLastFlush >= log.config.flushMs)\n log.flush();\n } catch (Throwable e) {\n logger.error(\"Error flushing topic \" + topicAndPartition.topic, e);\n if (e instanceof IOException) {\n logger.error(\"Halting due to unrecoverable I/O error while flushing logs: \" + e.getMessage(), e);\n System.exit(1);\n }\n }\n }\n });\n }", "private void updateStidsWithUserDefined(ArrayList<Tupla<Integer, ArrayList<Integer>>> stids, ArrayList<ArrayList<Boolean>> totalBlocks) {\n int contador = 0;\r\n for (int i = 0; i < totalBlocks.size(); i++) {\r\n if (!totalBlocks.get(i).isEmpty()) {\r\n for (int j = 0; j < totalBlocks.get(i).size(); j++) {\r\n if (!totalBlocks.get(i).get(j)) {\r\n deleteInStids(stids, contador);\r\n }\r\n contador++;\r\n }\r\n }\r\n }\r\n }", "public void setProdPainel(List<Tb_Prod_Painel_PromoBeans> lpb) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"insert into tb_prod_painel_promo(codigo,descricao,unid,valor1,valor2,oferta,terminal,painel) values \"; \r\n String sql2 = null;\r\n for (Tb_Prod_Painel_PromoBeans pb : lpb) { \r\n String sql3 = \"('\" +pb.getCodigo()+ \"','\" +pb.getDescricao() + \"','\" + pb.getUnid() + \"','\" + pb.getValor1() + \"','\" + pb.getValor2() + \"',\"\r\n + \"\" + pb.getOferta() + \",\" + pb.getTerminal() + \",\" + pb.getPainel() + \") \"; \r\n if (sql2==null) { \r\n sql2=sql+sql3;\r\n }else{ \r\n sql2=sql2+\",\"+sql3;\r\n }\r\n } \r\n PreparedStatement pstm = conexao.prepareStatement(sql2);\r\n pstm.execute();\r\n pstm.close();\r\n conexao.close();\r\n }\r\n }", "public boolean alterarInformacoes(Prova prova) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"UPDATE prova SET codDisciplina=?, titulo=?, valorTotal=?, valorQuestoes=?, tempo=?, data=?, allowAfterDate=?, allowMultipleAttempts=? WHERE codigo=?\");\n\t\t\tps.setInt (1, prova.getCodDisciplina());\n\t\t\tps.setString (2, prova.getTitulo());\n\t\t\tps.setFloat (3, prova.getValorTotal());\n\t\t\tps.setFloat (4, prova.getValorQuestoes());\n\t\t\tps.setInt (5, prova.getTempo());\n\t\t\tps.setString (6, prova.getData()); \n\t\t\tps.setBoolean(7, prova.isAllowAfterDate()); \n\t\t\tps.setBoolean(8, prova.isAllowMultipleAttempts()); \n\t\t\tps.setInt (9, prova.getCodigo());\n\t\t\n\t\t\treturn (ps.executeUpdate() > 0) ? true : false;\n\t\t});\t\n\t}", "public void save()throws Exception{\n if(!pname1.getText().isEmpty() && !qty1.getText().isEmpty() && !prc1.getText().isEmpty() && !rsp1.getText().isEmpty() ){\r\n s_notif1.setId(\"hide\");\r\n ArrayList<Product> ar = new ArrayList<>();\r\n com.mysql.jdbc.Connection conn = db.getConnection();\r\n Statement stm = conn.createStatement();\r\n int rs = stm.executeUpdate(\"UPDATE products SET \"\r\n + \"name='\"+pname1.getText()+\"', \"\r\n + \"qty='\"+qty1.getText()+\"', \"\r\n + \"price='\"+prc1.getText()+\"',\"\r\n + \"re_stock_point='\"+rsp1.getText()+\"' WHERE ID ='\"+S_ID+\"';\");\r\n if(rs > 0){\r\n s_notif1.setId(\"show\");\r\n }\r\n }\r\n loadData();\r\n }", "public void fullSync() {\n if (checkboxRepository.findOne(1).isCheckboxState()) {\n now = LocalDateTime.now();\n\n logger.info(\"De sync start\");\n long startTime = System.nanoTime();\n try {\n fillLocalDB.fillDb();\n smartschoolSync.ssSync();\n } catch (IOException e) {\n e.getStackTrace();\n logger.error(\"Error bij het uitvoeren van de sync\");\n } catch (MessagingException e) {\n logger.error(\"Error bij het verzenden van een mail tijdens de sync\");\n }\n logger.info(\"De sync is voltooid\");\n Statistic statistic = statisticRepository.findOne(1);\n statistic.setAantal(informatService.getTotaalAantalServerErrors());\n statisticRepository.save(statistic);\n informatService.setTotaalAantalServerErrors(0L);\n long endTime = System.nanoTime();\n long duration = (endTime - startTime) / 1000000; //milliseconds\n Statistic statisticDuration = statisticRepository.findOne(3);\n statisticDuration.setAantal(duration);\n statisticRepository.save(statisticDuration);\n Statistic statisticLastSync = statisticRepository.findOne(4);\n statisticLastSync.setError(String.valueOf(now));\n statisticRepository.save(statisticLastSync);\n }\n }", "private void updateProductQnt(List<Product> productList) {\n if (productList != null) {\n productList.forEach(product -> {\n Product productToSave = productService.findOne(product.getId());\n productToSave.setQuantity(productToSave.getQuantity() - product.getQuantity());\n productService.save(productToSave);\n });\n }\n }", "@Override\n\tprotected void onPause() {\n\t\tlist_lanmu = getChangeA(list);\n \tdbmanager.deleteDataTable(\"lanmu\"); \n \t//将变更后的A列表存放到lanmu表中\n \tif(list_lanmu.size()>0 && list_lanmu != null){\n \t\tfor(Lanmu lanmu : list_lanmu){\n \t\t\tdbmanager.addProduct(lanmu);\n \t\t}\n \t}\n \t//将整体变化的栏目列表更新到数据库中\n \tif(list != null && list.size() > 0){\n \t\tdbmanager.deleteDataTable(\"totle_lanmu\");\n \tfor(String a :list){\n \t\tdbmanager.addTotle_lanmu(a);\n \t}\n \t}\n \tSystem.out.println(\"do finish!\");\n\t\tsuper.onPause();\n\t}", "private void syncProfileSelection() {\r\n\t\tfor (int i = 0; i < selectedProfiles.size(); i++) {\r\n\t\t\tselectedProfiles.set(i, tableSelectionPD.isProfileSelected(i));\r\n\t\t}\r\n\t}", "private void actualizarInventarios() {\r\n\t\tfor (InventarioProducto inventarioProducto : inventariosEditar) {\r\n\t\t\tproductoEJB.editarInventarioProducto(inventarioProducto);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tConnection conexion = BddConexion.newConexion(\"horario\");\n\t\tString select = \"select p.codProf, nombre, FechaDeNacimiento, c.codoe, c.codcurso, count(*) from reparto r, profesor p Left Join curso c on tutor = p.codprof where p.CodProf = r.codprof group by r.codprof;\";\n\t\tPreparedStatement sentencia; ResultSet result;\n\t\tString codProf, nombre, fechaNacimiento, codOe, codCurso;\n\t\tint numAsignaturas;\n\t\t\n\t\tFileWriter escritor;\n\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\tListaProfesores listaProf = new ListaProfesores();\n\t\t\n\t\ttry {\n\t\t\tsentencia = conexion.prepareStatement(select);\n\t\t\tresult = sentencia.executeQuery();\n\t\t\twhile (result.next()){\n\t\t\t\tcodProf = result.getString(1);\n\t\t\t\tnombre = result.getString(2);\n\t\t\t\tfechaNacimiento = result.getString(3);\n\t\t\t\tcodOe = result.getString(4);\n\t\t\t\tcodCurso = result.getString(5);\n\t\t\t\tnumAsignaturas = result.getInt(6);\n\t\t\t\tlistaProf.agregarProfesor(new Profesor(codProf, nombre, fechaNacimiento, codOe, codCurso, numAsignaturas));\n\t\t\t}\n\t\t\t\n\t\t\tsentencia.close();\n\t\t\tresult.close();\n\t\t\t\n\t\t\tescritor = new FileWriter(\"Ejercicio1JSON.json\");\n\t\t\tescritor.write(gson.toJson(listaProf.getLista()));\n\t\t\tescritor.close(); \n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tBddConexion.closeConexion(conexion);\n\t\t\n\t\t// Segunda parte. Solicitar los datos de un profesor cuyo código nos indique el usuario haciendo una búsqueda en el fichero json. \n\t\tString codProfConsultar, resultadoBusqueda, curso; LinkedList<String> listaResultados;\n\t\tString[] datosProf;\n\t\t\n\t\tSystem.out.print(\"- Indique el código de profesor que desea consultar: \");\n\t\tcodProfConsultar = Teclado.leerPalabra();\n\t\tHashMap<String, String> mapa = new HashMap<String, String>();\n\t\tmapa.put(\"codProf\", codProfConsultar);\n\t\tlistaResultados = ConsultJSON.buscarEnJSON(mapa, \"Ejercicio1JSON.json\");\n\t\tif (listaResultados.size() > 0){\n\t\t\tresultadoBusqueda = listaResultados.getFirst();\n\t\t\tdatosProf = resultadoBusqueda.split(\",\");\n\t\t\tSystem.out.println(\"\\n- Código de profesor: \" + datosProf[0]);\n\t\t\tSystem.out.println(\"- Nombre: \" + datosProf[1]);\n\t\t\tSystem.out.println(\"- Fecha de nacimiento \" + datosProf[2]);\n\t\t\tSystem.out.println(\"- Número de asignaturas que imparte \" + datosProf[5]);\n\t\t\tcurso = datosProf[3] + \" \" + datosProf[4];\n\t\t\tif (curso.equals(\" \"))\n\t\t\t\tSystem.out.println(\"- No es tutor/a\");\n\t\t\telse \n\t\t\t\tSystem.out.printf(\"- Es tutor de: %s\", curso);\n\t\t} else \n\t\t\tSystem.out.println(\"- No existe ningún profesor con ese código.\");\n\t}", "private void maybeFlush() {\n final long batchCount = this.batchCount.get();\n if (batchCount <= 0) {\n return;\n }\n\n if (outstandingCount.get() != 0\n && batchSerializedSize.get() < 65536\n && (batchCount < 16 || !requestObserver.isReady())) {\n return;\n }\n\n flush();\n }", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "public void flushUserList()\n {\n users = null;\n }", "private void listarProfesores(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n Connection con = null;//Objeto para la conexion\r\n Statement sentencia = null;//Objeto para definir y ejecutar las consultas sql\r\n ResultSet resultado = null;//Objeto para obtener los resultados de las consultas sql\r\n String sql = \"\";\r\n try {\r\n con = conBD.getCConexion();\r\n //Definición de Sentencia SQL\r\n //sql = \"SELECT semail,sclave,nestado,snombre,sapellido,stelefono,sgenero,nidPerfil FROM usuarios\";\r\n sql = \"SELECT semail,sclave,nestado,usuarios.snombre,sapellido,stelefono,sgenero,nidPerfil,\"\r\n + \"(case WHEN nestado=0 THEN 'Inactivo' ELSE 'Activo' END) AS sestado,\"\r\n + \"(case WHEN sgenero=0 THEN 'Femenino' ELSE 'Masculino' END) AS desgenero,\"\r\n + \"perfiles.snombre \"\r\n + \"FROM usuarios,perfiles \"\r\n + \"where usuarios.nidPerfil=perfiles.idPerfil and usuarios.nidPerfil=3 \"\r\n + \"order by usuarios.snombre\";\r\n\r\n //Ejecutar sentencia\r\n sentencia = con.createStatement();\r\n resultado = sentencia.executeQuery(sql);\r\n\r\n //arreglo donde se gurdaran los usuarios encontrados en la BD\r\n ArrayList Usuarios = new ArrayList();\r\n while (resultado.next()) //si el resultado tiene datos empezar a guardarlos.\r\n {\r\n Usuario e = new Usuario(resultado.getString(1), resultado.getString(2),\r\n resultado.getString(4), resultado.getString(5), resultado.getString(6), resultado.getString(7),\r\n resultado.getInt(8), resultado.getInt(3));\r\n //agregamos las descripciones al objeto.\r\n e.setDescripcionEstado(resultado.getString(9));\r\n e.setDescripcionGenero(resultado.getString(10));\r\n e.setDescripcionPerfil(resultado.getString(11));\r\n //Agregamos el profesor al arrelo\r\n Usuarios.add(e);\r\n }\r\n // Agregar el arreglo de profesores a la solicitud\r\n request.setAttribute(\"Profesores\", Usuarios);\r\n //redirigir la solicitu a la página JSP\r\n request.getRequestDispatcher(\"/EscribirMensaje.jsp\").include(request, response);\r\n //cerrar la conexion\r\n //con.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"No se ha podido establecer la conexión, o el SQL esta mal formado \" + sql);\r\n request.getRequestDispatcher(\"/Error.jsp\").forward(request, response);\r\n }\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch(String tableName, List<Map<String, Object>> list) {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tString tableNameFormated = REGION + \".\" + tableName;\n\t\t/**\n\t\t * table to migrate data.\n\t\t */\n\t\tHTable table = (HTable) pool.getTable(tableNameFormated);\n\t\t\n\t\t/**\n\t\t * set write buffer size.\n\t\t */\n\t\ttry {\n\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\ttable.setAutoFlush(false);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint counter = 0;\n\t\tList<Put> puts = new ArrayList<Put>();\n\t\tint size = list.size();\n\t\tfor (int i = 0; i < size; i++) {\n\n\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\n\t\t\tMap<String, Object> map = list.get(i);\n\t\t\tcounter++;\n\t\t\t/**\n\t\t\t * add one row to be put.\n\t\t\t */\n\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\n\t\t\t\tObject qualifier = m.getKey();\n\t\t\t\tObject value = m.getValue();\n\t\t\t\tif (qualifier != null && value !=null)\n\t\t\t\t\tput.add(FAMILY.getBytes(), qualifier.toString().getBytes(), value.toString().getBytes());\n\t\t\t\telse if (qualifier != null && value ==null)\n\t\t\t\t\tput.add(FAMILY.getBytes(), qualifier.toString().getBytes(), null);\n\t\t\t}\n\t\t\t/**\n\t\t\t * add `put` to list puts.\n\t\t\t */\n\t\t\tputs.add(put);\n\n\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\ttry {\n\t\t\t\t\ttable.put(puts);\n\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\tputs.clear();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tcontinue;\n\t\t}\n\t}", "public void guardarProductosComprados() {\n try {\n //Si hay datos los guardamos...\n if (!productosComprados.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosComprados\n FileOutputStream archivo = new FileOutputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosComprados\n guardar.writeObject(productosComprados);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public boolean flushResultSet(ResultSet rs, boolean flushNoInduk) throws SQLException {\r\n if(flushNoInduk)\r\n rs.updateString(noIndukColName, noInduk);\r\n if(currentLevel != null)\r\n currentLevel.flushResultSet(rs, currentLevelColName);\r\n if (biodata != null)\r\n biodata.flushResultSet(rs);\r\n if(tanggalMasuk != null)\r\n tanggalMasuk.flushResultSet(rs, tanggalMasukColName);\r\n if(tanggalLulus != null)\r\n tanggalLulus.flushResultSet(rs, tanggalLulusColName);\r\n if(gelombang != null)\r\n rs.updateString(gelombangColName, gelombang.toString());\r\n if(totalIuran > 0)\r\n rs.updateFloat(totalIuranColName, totalIuran);\r\n if(statusPendaftaran != null)\r\n rs.updateString(statusPendaftaranColName, statusPendaftaran.toString());\r\n if(lastUpdateDate != null)\r\n lastUpdateDate.flushResultSet(rs, lastUpdateDateColName);\r\n return true;\r\n }", "public boolean update(Service servico){\n \n for (int i = 0; i < Database.servico.size(); i++) {\n if(idSaoIguais(Database.servico.get(i),servico)){\n Database.servico.set(i, servico);\n return true;\n }\n }\n return false; \n\n }", "private void removeProfiles()\r\n\t{\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tps.setValue(i + PROFILE, \"\");\r\n\t\t}\r\n\t\t\r\n\t\tcount = 0;\r\n\t\tps.setValue(PROFILE_COUNT, count);\r\n\t\t\r\n\t}", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "public void clearCheckpoint(int iCnt) {\n CHCKPRIO iObj = new CHCKPRIO(\"\");\n int iStatus = iObj.select(rObj);\n if (iStatus == -1) {\n System.out.println(\"*** FATAL ERROR. CHCKP COULD NOT BE DETERMINED. PROCESS HALTING.\");\n System.exit(0);\n }\n rObj.setUow(iCnt);\n if (rObj.getSdate().contains(\"0000-00-00\")) {\n rObj.setSdate(COMMONdate.getInstance().getDateTime());\n }\n rObj.setFdate(COMMONdate.getInstance().getDateTime());\n rObj.setStatus(1);\n if (iStatus == 0) {\n iObj.insert(rObj);\n } else {\n iObj.update(rObj);\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\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 }", "@Override\r\n\tpublic int updateProductInputList(ProductInputListVO pilVO) {\n\t\treturn getSqlSession().update(productInputNameSpace+\".updateProductInputList\", pilVO);\r\n\t}", "public boolean updateNoInduk(String oldNoInduk) throws SQLException, KasirException{\r\n assert oldNoInduk != null;\r\n\r\n //profil.noInduk is also retrieved to check for noInduk duplication\r\n ResultSet rs = DBSR.takeResultSetByString(tableName, noIndukColName, 1, oldNoInduk, noInduk);\r\n\r\n if(updateResultSetNoInduk(rs, oldNoInduk)){\r\n rs.updateRow();\r\n return true;\r\n }else\r\n return false;\r\n }", "@Override\n\tpublic Iterable<Profesores> listaProfesores() {\n\t\treturn profesoresRepositorio.findAll();\n\t}", "public void actualizar(List<EquipoCompetencia> l) {\n\t\tfor (Iterator i = l.iterator(); i.hasNext();) {\r\n\t\t\tEquipoCompetencia id = (EquipoCompetencia) i.next();\r\n\t\t\tif (id.getCodigoEquipoCompetencia()==0){\r\n\t\t\t\tint codEquipoCompetencia = daoEquipoCompetencia.listar(EquipoCompetencia.class).size() + 1;\r\n\t\t\t\tid.setCodigoEquipoCompetencia(codEquipoCompetencia);\r\n\t\t\t}\r\n\t\t\tdaoEquipoCompetencia.actualizar(id);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}" ]
[ "0.6343067", "0.59872025", "0.51950914", "0.4939079", "0.48989192", "0.4892048", "0.488767", "0.48760957", "0.48713982", "0.4862191", "0.48600942", "0.48427394", "0.48363212", "0.48124495", "0.4805565", "0.4805516", "0.48047337", "0.48008198", "0.47980404", "0.47819078", "0.47754943", "0.4769627", "0.4756383", "0.46709555", "0.46664006", "0.4657919", "0.46518782", "0.46510863", "0.464252", "0.46399632", "0.46350718", "0.46263224", "0.46167612", "0.46067682", "0.4593482", "0.45927015", "0.4580546", "0.45532164", "0.4545664", "0.4533268", "0.45142928", "0.45089698", "0.45057374", "0.45021784", "0.45011586", "0.44953525", "0.44919646", "0.44828656", "0.4480572", "0.44764888", "0.44744805", "0.44725925", "0.44661444", "0.44529665", "0.4450382", "0.44371393", "0.4429894", "0.44094706", "0.44070378", "0.44037998", "0.44012302", "0.4398087", "0.43853956", "0.4382099", "0.43784732", "0.43756318", "0.4374544", "0.43741068", "0.43714333", "0.4371083", "0.4367267", "0.43671963", "0.4363039", "0.43466848", "0.4341156", "0.43340933", "0.43301052", "0.4327016", "0.4321291", "0.43167543", "0.43111596", "0.4308949", "0.43087888", "0.43086478", "0.4306886", "0.43055996", "0.43009004", "0.43005455", "0.42969966", "0.42948472", "0.42905197", "0.4289959", "0.42879665", "0.42850888", "0.42829573", "0.42790267", "0.4278813", "0.42750597", "0.42706615", "0.4267181" ]
0.67722493
0
/ noInduk may be null / "", which in this case del the first found bad record throws KasirException(ROW_NOT_FOUND, noInduk)
public static boolean delete(String noInduk) throws SQLException, KasirException{ return DBSR.deleteKasirO(tableName, noIndukColName, false, noInduk); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hapusdata (String nama){\n return data.delete(nama_table, kolom1+\"=\\\"\"+nama+\"\\\"\",null)>0;\n }", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "public boolean updateNoInduk(String oldNoInduk) throws SQLException, KasirException{\r\n assert oldNoInduk != null;\r\n\r\n //profil.noInduk is also retrieved to check for noInduk duplication\r\n ResultSet rs = DBSR.takeResultSetByString(tableName, noIndukColName, 1, oldNoInduk, noInduk);\r\n\r\n if(updateResultSetNoInduk(rs, oldNoInduk)){\r\n rs.updateRow();\r\n return true;\r\n }else\r\n return false;\r\n }", "public boolean iliskMasaSil(int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"delete ilisk_masa from ilisk_masa where kullanici_no=\" + kullanici_no + \"\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }\r\n }", "public boolean MasaSil(int masa_no) throws SQLException {\n baglanti vb = new baglanti();\r\n\r\n try {\r\n vb.baglan();\r\n } catch (Exception e) {\r\n System.out.println(\"Bağlantı sağlanamadı\" + e);\r\n }\r\n try {\r\n String sorgu3 = \"DELETE m,i FROM masalar m LEFT JOIN ilisk_masa i ON m.masa_no=i.masa_no WHERE m.masa_no=\" + masa_no + \"\";\r\n\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n\r\n return true;\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n return false;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\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 boolean iliskMutfakSil(int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"delete iliski_mutfak from iliski_mutfak where kullanici_no=\" + kullanici_no + \"\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "public static int deleteS(Set<String> noInduks) throws SQLException{\r\n return DBSR.deleteKasirOsByString(tableName, noIndukColName, noInduks);\r\n }", "@Test\r\n public void testDelete() throws Exception {\r\n System.out.println(\"delete\");\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj = instance.create(obj);\r\n instance.delete(obj);\r\n try {\r\n instance.read(obj.getIdbur());\r\n fail(\"exception de record introuvable non générée\");\r\n }\r\n catch(SQLException e){}\r\n //TODO vérifier qu'on a bien une exception en cas de record parent de clé étrangère\r\n }", "public static void hapus() {\n int dump;\n System.out.print(\"Index Ke = \");\n dump = input.nextInt();\n try {\n todolist.remove(dump);\n kembali(\"Data Berhasil Hapus\");\n\n }catch (IndexOutOfBoundsException e){\n kembali(\"Index Yang Anda Input Salah\");\n }\n }", "public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }", "public boolean updateResultSetNoInduk(ResultSet rs, String oldNoInduk) throws SQLException, KasirException {\r\n assert oldNoInduk != null : \"oldNoInduk = null\";\r\n \r\n if(!isDBValid())\r\n throw new KasirException(KasirException.Tipe.DB_INVALID, this);\r\n \r\n if(noInduk.equals(oldNoInduk)){\r\n if(DBSR.searchRow(rs, noIndukColName, false, noInduk) > 0)\r\n return flushResultSet(rs, false);\r\n else\r\n throw new KasirException(KasirException.Tipe.ROW_NOT_FOUND, this);\r\n }else{\r\n if(DBSR.searchRow(rs, noIndukColName, false, noInduk) > 0)\r\n throw new KasirException(KasirException.Tipe.DUPLICATE_PRIMARY_KEY, this);\r\n \r\n if(DBSR.searchRow(rs, noIndukColName, false, oldNoInduk) > 0)\r\n return flushResultSet(rs, true);\r\n else\r\n throw new KasirException(KasirException.Tipe.ROW_NOT_FOUND, oldNoInduk);\r\n }\r\n }", "private static void deleteTest(int no) {\n\t\tboolean result=new CartDao().delete(no);\r\n\t\tif(!result) System.out.println(\"deleteTest fail\");\r\n\t}", "public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }", "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public void hapusDataMahasiswa(Uang uang) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, COLUMN_ID + \" = ?\",\n new String[]{String.valueOf(uang.getId())});\n db.close();\n }", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public static void livroEntregue(String barcode) {\r\n\t\tString sql = \"delete from reserva where `codigo_de_barras` =\\\"\"+ barcode + \"\\\";\";\r\n\t\ttry (Connection conn = singleton.getConnector().getConnection();\r\n\t\t\t\tPreparedStatement stat = conn.prepareStatement(sql)) {\r\n\t\t\tstat.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void deleteSoruDogruYanlis(int soruBankasiNo, String soruMetni) {\n\t\tSoruBankasi sb = soruBankasiList.get(soruBankasiNo - 1);\r\n\t\tList<SoruTipiDogruYanlis> addNewList = sb.getDogruYanlislist1();\r\n\t\tboolean isFound = false;\r\n\t\tint soruNo = -1;\r\n\t\tfor (SoruTipiDogruYanlis d : addNewList) {\r\n\t\t\tisFound = d.getSoruMetni().toString().contains(soruMetni);\r\n\t\t\tif (isFound) {\r\n\t\t\t\tsoruNo = d.getSoruNo();\r\n\t\t\t}\r\n\t\t}\r\n\t\taddNewList.remove(soruNo - 1);\r\n\t\tsb.setDogruYanlislist1(addNewList);\r\n\r\n\t}", "@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }", "@Override\r\n\tpublic void delete(String kodeDetail) {\n\t\tString query = \"delete from TR_DETAIL_PENJUALAN where kode_detail=?\";\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement ps = null;\r\n\t\ttry {\r\n\t\t\tcon = dataSource.getConnection();\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\tps.setString(1, kodeDetail);\r\n\r\n\t\t\tint out = ps.executeUpdate();\r\n\t\t\tif (out != 0) {\r\n\t\t\t\tSystem.out.println(\"delete berhasil\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"not found\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test \n public void testReperimentoNumeroInesistente() {\n Response rDelete = rubrica.path(nome+cognome).path(nome+cognome).request().delete();\n \n // Verifica che la risposta sia 404 Not Found\n assertEquals(Response.Status.NOT_FOUND.getStatusCode(),rDelete.getStatus());\n }", "public void test00200Cancel_Retrieval_NonExistingRecord() throws Exception\n\t{\n\t\tSystem.out.println(\"test00200Cancel_Retrieval_NonExistingRecord()\");\n\t\tEquationStandardTransaction transaction = getTransaction();\n\t\ttransaction.setMode(IEquationStandardObject.FCT_DEL);\n\t\tsetupNonExistKeyFields(transaction);\n\t\tapplyRetrieval(transaction, false);\n\t}", "@Test\r\n public void testSearch() throws Exception {\r\n System.out.println(\"rechNom\");\r\n Bureau obj1 = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau obj2 = new Bureau(0,\"Test2\",\"000000001\",\"\");\r\n String nomrech = \"Test\";\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj1=instance.create(obj1);\r\n obj2=instance.create(obj2);\r\n \r\n \r\n String result = instance.search(nomrech);\r\n if(result.contains(obj1.getSigle())) fail(\"record introuvable \"+obj1);\r\n if(result.contains(obj2.getSigle())) fail(\"record introuvable \"+obj2);\r\n instance.delete(obj1);\r\n instance.delete(obj2);\r\n }", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void eliminar(Long id) throws AppException;", "public boolean BorrarMedico(String nif) { // metodo BORRAR medico\n\t\tboolean borrar = false;\n\t\tString sql = \"DELETE FROM medico WHERE medico.nifMedico='\"+nif+\"' \";\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // en todos los metodos\n\t\t\tst = (Statement) conn.createStatement();\n\t\t\tif(medico.controlDNI(nif)) {\n\t\t\t\tint confirmar = st.executeUpdate(sql);\n\t\t\t\tif(confirmar ==1) {\n\t\t\t\t\tborrar=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"NIF incorrecto, por favor, revise la numeracion y la leta\");\n\t\t\t}\n\t\t\tst.close();\n\t\t\tconn.close();\n\t\t}// fin try\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"no creado\");\n\t\t}\n\t\t\n\t\treturn borrar;\n\t}", "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "@Test\n @Prepare(autoImport = true, autoClearExistsData = true)\n public void testdeleteById() throws Exception {\n\n int[] ids = { 111123456, 111123457, 111123458, 111123459 };\n for (int id : ids) {\n inventoryOutDao.deleteById(id);\n }\n for (int id : ids) {\n assertNull(inventoryOutDao.getById(id));\n }\n\n // List<InventoryOutDO> list = inventoryOutDao.list(new\n // InventoryOutDO());\n // assertResultListSorted(list, \"id\");\n }", "@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}", "void deleteMataKuliah (int id);", "@Override\r\n\tprotected boolean beforeDelete() {\r\n\t\t\r\n\t\tString valida = DB.getSQLValueString(null,\"SELECT DocStatus FROM C_Hes WHERE C_Hes_ID=\" + getC_Hes_ID());\r\n if (!valida.contains(\"DR\")){\r\n \t\r\n \tthrow new AdempiereException(\"No se puede Eliminar este documento por motivos de Auditoria\");\r\n\r\n }\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }", "private void btnhapusActionPerformed(java.awt.event.ActionEvent evt) {\n int ok=JOptionPane.showConfirmDialog(null,\"Apakah Yakin Mendelete record ini???\", \"Confirmation\",JOptionPane.YES_NO_CANCEL_OPTION);\n if (ok==0)\n {\n try\n {\n String sql=\"delete from toko where nama='\"+jnama.getText()+\"'\";\n PreparedStatement st=con.prepareStatement(sql);\n st.executeUpdate();\n JOptionPane.showMessageDialog(null, \"Delete Data Sukses\");\n \n // kosong();\n tampilkan();\n }\n catch (Exception e)\n {\n JOptionPane.showMessageDialog(null, \"Delete Data Gagal\");\n }\n }\n }", "@Override\n public com.lycenway.chr.backbone.model.MuQuxianQujian deleteMuQuxianQujian(\n com.lycenway.chr.backbone.model.MuQuxianQujian muQuxianQujian)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _muQuxianQujianLocalService.deleteMuQuxianQujian(muQuxianQujian);\n }", "public void deleteByName(String nume) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tString query = deleteQuery(\"nume\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setString(1, nume);\n\t\t\tst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:deleteByName\" + e.getMessage());\n\t\t}\n\t}", "public void eliminaBD() {\r\n CBD.openConexion();\r\n //------Reune los datos de producto con id--------------//\r\n String A = CBD.getInveID(II.lblid.getText());\r\n String B[] = A.split(\",\");\r\n //------Reune los datos de producto con id--------------//\r\n //------Verifica si la cantidad es 0--------------//\r\n if (Integer.parseInt(B[5]) == 0) {\r\n //------Elimina--------------//\r\n if(CBD.deleteDBProd(\"[ID PRODUCTO]\", B[7])){\r\n JOptionPane.showMessageDialog(II, \"Producto eliminado\");\r\n }else{\r\n JOptionPane.showMessageDialog(II, \"Error producto no pudo ser eliminado\");\r\n }\r\n //------Elimina--------------//\r\n } else {\r\n JOptionPane.showMessageDialog(II, \"No puedes eliminar un producto si su existencia es mayor a 0\");\r\n }\r\n CBD.closeConexion();\r\n }", "@Override\r\n\tpublic int elimina(int id) throws Exception {\n\t\treturn 0;\r\n\t}", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "@Override\n public int delete( J34SiscomexOrigemDi j34SiscomexOrigemDi ) {\n return super.doDelete(j34SiscomexOrigemDi);\n }", "public void eliminar(Producto producto) throws IWDaoException;", "public void delete(DatiBancariPk pk) throws DatiBancariDaoException;", "public void deleteMedRec(Scanner scanner, Pets currentPet) {\n try {\n\n Statement statement = conn.createStatement();\n String sqlStatement = \"DELETE FROM medicine \" +\n \"WHERE medicine.pet_id = \" + currentPet.getId() + \" AND medicine.type_of_meds LIKE '%\" + scanner.next() + \"%' \";\n\n int rowsAffected = statement.executeUpdate(sqlStatement);\n\n if (rowsAffected != 0) {\n System.out.println(\"Medical record has been successfully deleted!\");\n } else {\n System.out.println(\"Error. Selected medical record not found!\");\n }\n\n } catch (SQLException exception) {\n System.out.println(\"Error deleting medicine : \" + exception);\n }\n }", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "@Test\n\tpublic void testDeleteMedicine() {\n\t\tMedicine medicine=new Medicine();\n\t\tmedicine.setMedicineName(\"neorin\");\n\t\tmedicine.setstocks(0);\n\t\tmedicineService.addMedicine(medicine.getMedicineName(),medicine.getStocks());\n\t\tString medicineName=medicine.getMedicineName();\n\t\tint medicineId=medicine.getMedicineId();\n\t\tmedicineService.deleteMedicineDetails(medicineId);\n\t\tassertEquals(0, medicineService.searchMedicine(medicineName).size());\n\t}", "public static int delete(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from periode where id=?\"); \n ps.setInt(1,p.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "public static Profil select(String noInduk) throws SQLException, KasirException{\r\n assert noInduk != null && !noInduk.isEmpty() : \"selectProfil(String, String, String noInduk = null)\";\r\n\r\n return select(noIndukColName, false, noInduk);\r\n }", "public void delete() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n int safeCheck = BusinessFacade.getInstance().checkIDinDB(this.goodID,\n \"orders\", \"goods_id\");\n if (safeCheck == -1) {\n stmtIn.executeUpdate(\"DELETE FROM ngaccount.goods WHERE goods.goods_id = \" +\n this.goodID + \" LIMIT 1;\");\n }\n }", "public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }", "@Test\n\tpublic void deleteBook_Nonexistent() {\n\t\tsystem.deleteBook(\"asdfasdfasdfaslkjdfasd\");\n\t}", "public String eliminar()\r\n/* 88: */ {\r\n/* 89: */ try\r\n/* 90: */ {\r\n/* 91:101 */ this.servicioMotivoLlamadoAtencion.eliminar(this.motivoLlamadoAtencion);\r\n/* 92:102 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 93: */ }\r\n/* 94: */ catch (Exception e)\r\n/* 95: */ {\r\n/* 96:104 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 97:105 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 98: */ }\r\n/* 99:107 */ return \"\";\r\n/* 100: */ }", "public void deleteaccItem(String acc_no, String library_id, String sub_library_id) {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n //Object acqdocentry = null;\n\n try {\n tx = session.beginTransaction();\n \n Query query = session.createQuery(\"DELETE FROM AccessionRegister WHERE accessionNo = :accessionNo and id.libraryId = :libraryId and id.sublibraryId = :subLibraryId\");\n\n query.setString(\"accessionNo\", acc_no);\n query.setString(\"libraryId\", library_id);\n query.setString(\"subLibraryId\", sub_library_id);\n query.executeUpdate();\n tx.commit();\n \n }catch (RuntimeException e) {\n\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "public void test00300Cancel_NonExistingRecord() throws Exception\n\t{\n\t\tSystem.out.println(\"test00300Cancel_NonExistingRecord()\");\n\t\tEquationStandardTransaction transaction = getTransaction();\n\t\ttransaction.setMode(IEquationStandardObject.FCT_DEL);\n\t\tsetupNonExistKeyFields(transaction);\n\t\tapplyTransaction(transaction, false);\n\t}", "@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public boolean eliminarLoteria(int codigo) {\n\n String instruccion = \"delete from loteria where codigo =\" + codigo;\n boolean val = false;\n PreparedStatement pre;\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n pre = con.prepareStatement(instruccion);\n pre.execute();\n val = true;\n } catch (SQLException ex) {\n ex.printStackTrace();\n\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return val;\n }\n\n }", "public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }", "@Test\n public void testDeleteNegativeBillIsNull() throws Exception{\n String name = null;\n itemDao.delete(name);\n }", "public void eliminar(Maquina maquina)\r\n/* 24: */ {\r\n/* 25: 52 */ this.maquinaDao.eliminar(maquina);\r\n/* 26: */ }", "@Override\n\tpublic void excluirIngresso(Ingresso ingresso) throws DBException {\n\t\t\n\t}", "@Test\n public void testRemoveNegativeNonExistingId() throws Exception{\n Assert.assertFalse(itemDao.delete(\"non existing item\"));\n }", "@PostMapping(\"/remover1\")\r\nString remover1(@RequestParam(\"ava_0\") String ava_0,\r\n@RequestParam(\"ava_log\") String ava_log,\r\nModel model) {\n\r\n try (Connection connection = dataSource.getConnection()) {\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM avaliacao WHERE id=\"+ava_0);\r\n\r\n ArrayList<String> output = new ArrayList<String>();\r\n //Se achou a ficha\r\n if (rs.next()) {\r\n\r\n\r\n stmt.executeUpdate(\"DELETE FROM goniometria WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM preensao WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM composicao WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM goniometria WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM avaliacaodor WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM evolucaodor WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM gural WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM qualidade WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM forca WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM pressao WHERE id=\"+ava_0);\r\n stmt.executeUpdate(\"DELETE FROM avaliacao WHERE id=\"+ava_0);//chave primaria\r\n\r\n model.addAttribute(\"ava_log\", \"Ficha excluída com sucesso!\");\r\n } else\r\n model.addAttribute(\"ava_log\", \"Ficha não encontrada.\");\r\n return \"dashboard_ficha\";\r\n } catch (Exception e) {\r\n //model.put(\"message\", e.getMessage());\r\n model.addAttribute(\"ava_log\", e.getMessage());\r\n return \"dashboard_ficha\";\r\n }\r\n}", "int deleteByExample(cskaoyan_mall_order_goodsExample example);", "@Test\r\n public void deleteCarritoDeComprasTest() {\r\n System.out.println(\"d entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n carritoDeComprasPersistence.delete(entity.getId());\r\n CarritoDeComprasEntity deleted = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n System.out.println(\"d voy\"+data);\r\n }", "public void hapusSemuaDataMahasiswa(){\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.execSQL(\"DELETE FROM \" + TABLE_NAME);\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "public void exclui(long codigo)throws SQLException{\n\n\t\tString sql = \"delete from \" + TABELA + \" where codigo=?\";\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\t//setar parametros da query sql\n\t\tstmt.setLong(1, codigo);\n\n\t\tstmt.execute();\n\t\tstmt.close();\n\n\t}", "public void eliminarEnIndice(int indice){\n if(irAIndice(indice)){\n eliminarBodegaActual();\n }\n }", "@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}", "public int deleteItem(Connection conn, int item_no) {\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(\"delete item_XXXX where item_no=?\");\r\n\t\t\tpstmt.setInt(1, item_no);\r\n\t\t\tint count = pstmt.executeUpdate();\r\n\t\t\treturn count;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "public void deleteIscrizione() throws SQLException {\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tpstmt = con.prepareStatement(STATEMENTDEL);\r\n\t\t\t\r\n\t\t\tpstmt.setString(1, i.getGiocatore());\r\n\t\t\tpstmt.setInt(2, i.getTorneo());\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tpstmt.execute();\r\n\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\tpstmt.close();\r\n\t\t\t}\r\n\r\n\t\t\tcon.close();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n public void testRead() throws Exception {\r\n System.out.println(\"read\");\r\n int idbureau = 0;\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau expResult = instance.create(obj);\r\n idbureau=expResult.getIdbur();\r\n Bureau result = instance.read(idbureau);\r\n assertEquals(\"sigles différents\",expResult.getSigle(), result.getSigle());\r\n assertEquals(\"tel différents\",expResult.getTel(), result.getTel());\r\n //etc\r\n assertEquals(\"id différents\",expResult.getIdbur(),result.getIdbur());\r\n try{\r\n result=instance.read(0);\r\n fail(\"exception d'id inconnu non générée\");\r\n }\r\n catch(SQLException e){}\r\n instance.delete(result);\r\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}", "@Override\n public boolean delete(String idTransaksi) {\n try {\n String query = \"DELETE FROM transaksi WHERE id = ?\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ps.setString(1, idTransaksi);\n\n if (ps.executeUpdate() > 0) {\n return true;\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }", "@Test(expected = NoSuchElementException.class)\r\n\tpublic void testFindByIdAndDeleted_NonExistent() {\r\n\t\tOptional<Sector> found = sectorRepository.findByIdAndDeleted(SECTOR_ID_NON_EXISTENT, false);\r\n\t\tassertNull(found.get());\r\n\t}", "public void eliminarEmpleado(String nroDocEmpleado) throws Exception {\n if (this.empleados.containsKey(nroDocEmpleado)) {\r\n this.generarAuditoria(\"BAJA\", \"EMPLEADO\", nroDocEmpleado, \"\", GuiIngresar.getUsuario());\r\n this.empleados.remove(nroDocEmpleado);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El cajero no Existe\");\r\n }\r\n //return retorno;\r\n }", "public void Excepti() throws Exception{ \n throw new Exception(\"El dato especificado NO existe en la lista!!!\"); \n }", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "@Override\n\tpublic int deleteGoods(Goods goods) {\n\n\t\tGoods gd2 =goodsMapper.selectGoodsBygdName(goods.getGdName());\n\t\t\n\t\tint i=-1;\n\t\tif(gd2 != null) {\n\t\t\ti=goodsMapper.deleteGoods(goods);\n\t\t}else {\n\t\t\ti=-1;\n\t\t}\n\t\t\t\n\t\t\treturn i;\n\t\t\n\t\t\n\t}", "public String delete1() throws Exception {\r\n\t\tString code[] = request.getParameterValues(\"hdeleteCode\");\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.deletecheckedRecords(vendorMaster, code);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"delMessage\", \"\"));\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"One or more records can't be deleted \\n as they are associated with some other records. \");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\treset();\r\n\t\tgetNavigationPanel(1);\r\n\t\treturn \"success\";\r\n\r\n\t}", "@org.junit.jupiter.api.Test\n void drop1elementoColisionNoExiste() {\n String key = \"0\";\n String value =\"David\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.drop(\"11\");\n String esperado = \"bucket[0] = [0, David]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 1;\n Assertions.assertEquals(count,hashTable.count());\n }", "public void deldrumentry(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE, Drum_RowID + \"=\" +idi, null);\n\t\t\t\n\t}", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "public void EliminarPrestamo(Integer idPrestamo) {\n this.conexion.ConectarBD();\n String consulta = \"delete from prestamos where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del delete\n this.pstm.setInt(1, idPrestamo);\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al eliminar un Prestamo.\\n\"+e.toString());\n //System.out.println(\"Error al eliminar un Libro.\");\n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n //e.printStackTrace();\n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n }", "void checkItemForDelete(Object item, java.sql.Statement stmt) throws PrismsRecordException;", "@Override\n\tpublic void delete(Iscrizioni o)\n\t\t\tthrows ClassNotFoundException, SQLException, NotHandledTypeException, NamingException, ParseException {\n\t\tIscrizioni i = em.find(Iscrizioni.class, o.getIdIscrizione());\n\t\tem.remove(i);\n//\t\tObject[] campi = { o.getIdIscrizione() };\n//\t\tString sql = \"DELETE FROM `iscrizioni` WHERE `idIscrizione` = ? \";\n//\t\tDBHandler dbHandler = new DBHandler();\n//\t\tdbHandler.sql(sql, campi);\n\t}", "public void testFinditemByIdWithInvalidValues() throws Exception {\n\t\ttry {\r\n\t\t\titemService.findItem(-1);\r\n\t\t\tfail(\"Object with unknonw id should not be found\");\r\n\t\t} catch (ItemNotFoundException e) {\r\n\t\t}\r\n\r\n\t\t// Finds an object with an empty identifier\r\n\t\ttry {\r\n\t\t\titemService.findItem(Long.parseLong(\"0\"));\r\n\t\t\tfail(\"Object with empty id should not be found\");\r\n\t\t} catch (ItemNotFoundException e) {\r\n\t\t}\r\n\r\n\t}", "private boolean delete(Object data)throws Exception{\n String query = \"DELETE FROM \" + tableName + \" WHERE phone=?\";\n PreparedStatement pstm = this.con.prepareStatement(query);\n pstm.setObject(1, data);\n\n int result = pstm.executeUpdate();\n return (result > 0);\n }", "public void eliminarArticulo(String codBarra) throws Exception {\n if (this.articulos.containsKey(codBarra)) {\r\n this.generarAuditoria(\"BAJA\", \"ARTICULO\", codBarra, \"\", GuiIngresar.getUsuario());\r\n Articulo unArticulo = (Articulo) articulos.get(codBarra);\r\n this.articulos.remove(unArticulo.getCodBarra());\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El Articulo no Existe\");\r\n }\r\n //return retorno;\r\n }", "@Test\n public void deleteComentarioTest(){\n ComentarioEntity entity = data.get(0);\n comentarioPersistence.delete(entity.getId());\n ComentarioEntity eliminado = em.find(ComentarioEntity.class,entity.getId());\n Assert.assertNull(eliminado);\n }", "@PageEvent(\"deleteRow\")\n\t@Transaction\n\t@Synchronous(true)\n\t@NoRequiredValidate\n\tpublic int deleteRow(String st00) throws RadowException, AppException {\n\t\tString a0000=this.getPageElement(\"subWinIdBussessId\").getValue();\n\t\tHBSession sess = null;\n\t\ttry {\n\t\t\tsess = HBUtil.getHBSession();\n\t\t\tAssociation association = (Association) sess.get(Association.class, st00);\n\t\t\tassociation.setA0000(a0000);\n\t\t\tA01 a01 = (A01) sess.get(A01.class, association.getA0000());\n\t\t\t\n\t\t\t//applog.createLogNew(\"3A05\",\"现职务层次删除\",\"现职务层次\",a0000,a01.getA0101(), new ArrayList<Object[]>());\n\t\t\t\n\t\t\t//记录删除哪个\n\n\t\t\tsess.delete(association);\n\t\t\tsess.flush();\t\n\t\t\tupdateA01(association.getA0000());\n\t\t\tthis.getExecuteSG().addExecuteCode(\"radow.doEvent('TrainingInfoGrid.dogridquery')\");\n\t\t\tassociation = new Association();\n\t\t\tPMPropertyCopyUtil.copyObjValueToElement(association, this);\n\t\t\t\n\t\t\t//CustomQueryBS.setA01(a01.getA0000());\n\t \tA01 a01F = (A01)sess.get(A01.class, a01.getA0000());\n\t\t\tthis.getExecuteSG().addExecuteCode(AddRmbPageModel.setTitle(a01F));\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tthis.getExecuteSG().addExecuteCode(\"window.$h.alert('系统提示','删除失败!',null,'220')\");\n\t\t\treturn EventRtnType.FAILD;\n\t\t}\n\t\treturn EventRtnType.NORMAL_SUCCESS;\n\t}", "public void updateCantByName(int nr, String nume) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tString query = updateQuery(\"cantitate\", \"nume\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, nr);\n\t\t\tst.setString(2, nume);\n\t\t\tst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:deleteByName\" + e.getMessage());\n\t\t}\n\t}", "@Override\r\n\tpublic boolean deleteInvigilate(Integer no) {\n\t\tif(invigilateMapper.deleteByPrimaryKey(no)>0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void deleteRecord() {\n try {\n System.out.println(\"Please enter the name of the company you wish to delete\");\n String companyName = HelperFunctions.getInputDataString();\n RandomAccessFile rafData = new RandomAccessFile(this.databaseName + \".data\", \"rws\");\n int deleteLocation = binarySearch(rafData, companyName);\n\n if (deleteLocation != -1) {\n\n deleteLocation = binarySearchToFindClosest(companyName, 0, Integer.parseInt(getNumberOfRecords(\"normal\")));\n rafData.getChannel().position(Constants.NUM_BYTES_LINUX_RECORD * deleteLocation + Constants.NUM_BYTES_RANK);\n\n rafData.write(HelperFunctions.addWhitespacesToEnd(\"MISSING-RECORD\", Constants.NUM_BYTES_COMPANY_NAME).getBytes(), 0, Constants.NUM_BYTES_COMPANY_NAME);\n rafData.close();\n\n System.out.println(\"Deleting Record...\");\n\n // Have to remove the record entirely on a delete, otherwise it will mess up binary search by not being sorted with the rest \n removeDeletedRecord();\n updateNumRecords(\"normal\", Integer.parseInt(getNumberOfRecords(\"normal\")) - 1);\n\n // Check overflow file if not found in normal data file\n } else {\n RandomAccessFile rafOverflow = new RandomAccessFile(this.databaseName + \".overflow\", \"rws\");\n boolean recordInOverflow = false;\n int numOverflowRecords = Integer.parseInt(getNumberOfRecords(\"overflow\"));\n int recordPosition = -1;\n\n for (int i = 0; i < numOverflowRecords; i++) {\n String record = getRecord(\"overflow\", rafOverflow, i);\n String recordName = record.substring(5,45);\n recordName = recordName.trim();\n\n if (companyName.equals(recordName)) {\n recordInOverflow = true;\n recordPosition = i;\n break;\n }\n }\n\n // If found in overflow file, set that company name to MISSING-RECORD\n if (recordInOverflow == true) {\n rafOverflow.getChannel().position(Constants.NUM_BYTES_LINUX_RECORD * recordPosition + Constants.NUM_BYTES_RANK);\n rafOverflow.write(HelperFunctions.addWhitespacesToEnd(\"MISSING-RECORD\", Constants.NUM_BYTES_COMPANY_NAME).getBytes(), 0, Constants.NUM_BYTES_COMPANY_NAME);\n rafOverflow.close();\n System.out.println(\"Deleting Record...\");\n } else {\n System.out.println(\"That record does not exist in this database\");\n }\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "public boolean EliminarProducto(int id) {\n boolean status=false;\n int res =0;\n try {\n conectar();\n res=state.executeUpdate(\"delete from producto where idproducto=\"+id+\";\");\n \n if(res>=1){\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }", "int deleteByExample(KaiwaExample example);", "void deleteAveria(Long idAveria) throws BusinessException;" ]
[ "0.6215364", "0.61933345", "0.6190195", "0.6173666", "0.6159608", "0.5964568", "0.5914715", "0.5816257", "0.58052236", "0.57402647", "0.57225084", "0.5711547", "0.57105356", "0.56403416", "0.5634166", "0.56225264", "0.558316", "0.5561411", "0.5558883", "0.5548719", "0.5543709", "0.55414265", "0.5504967", "0.55009556", "0.5497796", "0.5493739", "0.5479172", "0.54733104", "0.54690486", "0.546227", "0.5458929", "0.54492414", "0.5447257", "0.5410959", "0.54088706", "0.5406803", "0.5405707", "0.5392924", "0.5390488", "0.53872657", "0.53792995", "0.5373479", "0.5371226", "0.5369972", "0.5362921", "0.5360859", "0.5357061", "0.53532815", "0.53523713", "0.53433454", "0.5342661", "0.53364813", "0.5334925", "0.5326347", "0.5323751", "0.53217554", "0.5318602", "0.53170234", "0.5315967", "0.53132313", "0.53091615", "0.53068614", "0.5301363", "0.5297359", "0.52936757", "0.5289877", "0.5287912", "0.52790296", "0.5277323", "0.52749854", "0.52742237", "0.5272335", "0.5270674", "0.52644247", "0.5260248", "0.5259788", "0.52531546", "0.5245866", "0.52429694", "0.5234561", "0.5224152", "0.5223376", "0.52229923", "0.52209574", "0.52195036", "0.5216994", "0.5207377", "0.5201591", "0.5198196", "0.51901746", "0.5180881", "0.51773024", "0.5176725", "0.51736397", "0.5173569", "0.51673186", "0.5166692", "0.51666814", "0.5166109", "0.5164485" ]
0.7635772
0
/ del all rows having any elt of noInduks on colName, including null/empty (ie. del all bad records) del all rows if noInduks = null
public static int deleteS(Set<String> noInduks) throws SQLException{ return DBSR.deleteKasirOsByString(tableName, noIndukColName, noInduks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "private boolean noRepeatedNumbersInColumns() {\n return !this.hasAnyRepeatedInColumn();\n }", "public void removeExprColumnInOIFitsCollection(final String name) {\n modifyExprColumnInOIFitsCollection(name, null, true);\n }", "@Test\n public void selectAllDeletedColumns() {\n String[] retArray = {\n \"3,30000.0,null,30000\", \"4,4.0,4,null\",\n };\n\n String[] columnNames = {\"root.sg1.d1.s1\", \"root.sg1.d1.s2\", \"root.sg1.d1.s3\"};\n\n try (Connection connection = EnvFactory.getEnv().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet =\n statement.executeQuery(\"select s1, s2, s3 from root.sg1.d1 where time <= 4\")) {\n\n ResultSetMetaData resultSetMetaData = resultSet.getMetaData();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {\n map.put(resultSetMetaData.getColumnName(i), i);\n }\n assertEquals(columnNames.length + 1, resultSetMetaData.getColumnCount());\n int cnt = 0;\n while (resultSet.next()) {\n StringBuilder builder = new StringBuilder();\n builder.append(resultSet.getString(1));\n for (String columnName : columnNames) {\n int index = map.get(columnName);\n builder.append(\",\").append(resultSet.getString(index));\n }\n assertEquals(retArray[cnt], builder.toString());\n cnt++;\n }\n assertEquals(retArray.length, cnt);\n } catch (SQLException e) {\n e.printStackTrace();\n fail(e.getMessage());\n }\n }", "int deleteAllComponents(RecordSet inputRecords);", "public void deleteCertainRow(String itemname, String tableName, String columnName) throws SQLException\n {\n\n String deletetStr=\"DELETE FROM \"+tableName+\" WHERE \"+columnName+\" = \"+quotate(itemname);\n stmt.executeUpdate(deletetStr);\n return;\n\n }", "public void clear()\n\t{\n\t\tfor(DBColumn col : _RowData.values())\n\t\t\tcol.clear();\n\t\t\t\n\t\t_MetaData = null;\n\t\t_Parent = null;\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "public void deleteData(int id, String tablename, String colName, Object obj) {\n\t\tString sql = \"delete from \" + tablename + \" where \" + colName + \"=\" + id;\n\t\ttry {\n\t\t\tstat.execute(\"BEGIN TRANSACTION\");\n\t\t\tint row = stat.executeUpdate(sql);\n\t\t\tstat.execute(\"COMMIT\");\n\t\t\trow = row + 1;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (tablename.equals(\"def4_meth\") || tablename.equals(\"def3_attr\")) {\n\t\t\tList<Map> l = Util698.getFiledsInfo(obj);\n\t\t\tint colNum = l.size();\n\t\t\t// 对象属性转存在数组中\n\t\t\tObject[] data = new Object[colNum];\n\t\t\tint i = 1;\n\t\t\tfor (Map<String, Object> info : l) {\n\t\t\t\tString name = info.get(\"name\").toString();\n\t\t\t\tObject val = Util698.getFieldValueByName(name, obj);\n\t\t\t\t// 对象属性转存在数组中\n\t\t\t\tdata[i - 1] = val;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tint object_id = (int) data[2], idx = (int) data[3];\n\t\t\tdataSync(object_id, idx, tablename);\n\t\t}\n\t}", "public Integer deleteData(String name) {\n SQLiteDatabase db = this.getWritableDatabase();\n int i = db.delete(TABLE_NAME, col1 + \" =?\", new String[]{name});\n return i;\n }", "@Test\n\tpublic void testEliminationByColumn(){\n\t\tsetBoardUp();\n\t\tColumn col = new Column(board, 1);\n\t\tint[] toBeRemoved = {1, 3, 4};\n\t\tint[] fromCesll = {1, 2, 3, 5, 6, 8};\n\t\talgorithm.applyEliminationInColumn(col);\n\t\tboolean condition = true;\n\t\tfor(int i = 0; i < toBeRemoved.length; i++)\n\t\t\tfor(int j = 0; j < fromCesll.length; j++)\n\t\t\t\tcondition &= !col.cell[fromCesll[j]].possibilities.contains(toBeRemoved[i]);\t\t\n\t\tassertTrue(condition);\n\t}", "final void deleteAll(int elt) {\n if (contents != null && n >= 0 && n <= contents.length){\n int n_old = n;\n //@ loop_invariant (i <= n+1);\n for (int i = 0; i < n; i++) { \n if (contents[i] == elt ) {\n if (n == 1){\n n--;\n contents = new int[contents.length];\n return;\n } else {\n n--;\n contents[i] = contents[n];\n i--;\n }\n }\n }\n if (n_old != n) {\n int[] new_contents = new int[contents.length];\n arraycopy(new_contents, 0, contents, 0, n);\n contents = new_contents;\n }\n }\n }", "public void deleteCertainRow(String itemname1,String itemname2, String tableName, String columnName1,String columnName2) throws SQLException\n {\n\n String deletetStr = \"DELETE FROM \"+tableName+\" WHERE \"+columnName1+\" = \"+quotate(itemname1)+\"AND \"+columnName2+\" = \"+quotate(itemname2);\n stmt.executeUpdate(deletetStr);\n return;\n\n }", "public void removeRow(String rowName);", "public int deleteAll() throws SQLException\n {\n return deleteByWhere(\"\");\n }", "public int deleteAll() throws SQLException\n {\n return deleteByWhere(\"\");\n }", "public int deleteAll() throws SQLException\n {\n return deleteByWhere(\"\");\n }", "public abstract boolean isMissing(int columnIndex);", "public void deleteAll(String tableName) {\n Cursor c = getAllRows(tableName.replaceAll(\"\\\\s\", \"_\"));\n long rowId = c.getColumnIndexOrThrow(KEY_ROWID);\n if (c.moveToFirst()) {\n do {\n deleteRow(c.getLong((int) rowId), tableName.replaceAll(\"\\\\s\",\"_\"));\n } while (c.moveToNext());\n }\n c.close();\n //db.execSQL(\"TRUNCATE TABLE '\" + tableName.replaceAll(\"\\\\s\",\"_\") + \"';\");\n }", "@Test\n public void testDeleteColumn() throws Exception {\n RowKeyFormat2 format = makeHashPrefixedRowKeyFormat();\n // Reference layout with a single column : \"family_name:column_name\"\n final TableLayoutDesc refDesc = TableLayoutDesc.newBuilder()\n .setName(\"table_name\")\n .setKeysFormat(format)\n .setVersion(TABLE_LAYOUT_VERSION)\n .setLocalityGroups(Lists.newArrayList(\n makeMinimalLocalityGroup()))\n .build();\n final FijiTableLayout refLayout = FijiTableLayout.newLayout(refDesc);\n\n {\n // Target layout deleting the column\n final TableLayoutDesc desc = TableLayoutDesc.newBuilder()\n .setName(\"table_name\")\n .setKeysFormat(format)\n .setVersion(TABLE_LAYOUT_VERSION)\n .setLocalityGroups(Lists.newArrayList(\n LocalityGroupDesc.newBuilder()\n .setName(\"locality_group_name\")\n .setInMemory(false)\n .setTtlSeconds(84600)\n .setMaxVersions(1)\n .setCompressionType(CompressionType.GZ)\n .setFamilies(Lists.newArrayList(\n FamilyDesc.newBuilder()\n .setName(\"family_name\")\n .setColumns(Lists.newArrayList(\n ColumnDesc.newBuilder()\n .setName(\"column_name\")\n .setColumnSchema(CellSchema.newBuilder()\n .setStorage(SchemaStorage.UID)\n .setType(SchemaType.INLINE)\n .setValue(\"\\\"string\\\"\")\n .build())\n .setDelete(true)\n .build()))\n .build()))\n .build()))\n .build();\n final FijiTableLayout layout = FijiTableLayout.createUpdatedLayout(desc, refLayout);\n final FijiTableLayout.LocalityGroupLayout.FamilyLayout fLayout =\n layout.getFamilyMap().get(\"family_name\");\n assertNotNull(fLayout);\n assertTrue(fLayout.getColumns().isEmpty());\n assertTrue(fLayout.getColumnMap().isEmpty());\n }\n\n {\n // Target layout with an invalid column deletion\n final TableLayoutDesc desc = TableLayoutDesc.newBuilder()\n .setName(\"table_name\")\n .setKeysFormat(format)\n .setVersion(TABLE_LAYOUT_VERSION)\n .setLocalityGroups(Lists.newArrayList(\n LocalityGroupDesc.newBuilder()\n .setName(\"locality_group_name\")\n .setInMemory(false)\n .setTtlSeconds(84600)\n .setMaxVersions(1)\n .setCompressionType(CompressionType.GZ)\n .setFamilies(Lists.newArrayList(\n FamilyDesc.newBuilder()\n .setName(\"family_name\")\n .build()))\n .build()))\n .build();\n try {\n FijiTableLayout.createUpdatedLayout(desc, refLayout);\n Assert.fail(\"Layout update with missing column did not fail.\");\n } catch (InvalidLayoutException ile) {\n // Exception is expected!\n }\n }\n\n {\n // Target layout with an invalid column rename\n final TableLayoutDesc desc = TableLayoutDesc.newBuilder()\n .setName(\"table_name\")\n .setKeysFormat(format)\n .setVersion(TABLE_LAYOUT_VERSION)\n .setLocalityGroups(Lists.newArrayList(\n LocalityGroupDesc.newBuilder()\n .setName(\"locality_group_name\")\n .setInMemory(false)\n .setTtlSeconds(84600)\n .setMaxVersions(1)\n .setCompressionType(CompressionType.GZ)\n .setFamilies(Lists.newArrayList(\n FamilyDesc.newBuilder()\n .setName(\"family_name\")\n .setColumns(Lists.newArrayList(\n ColumnDesc.newBuilder()\n .setName(\"column-renamed\")\n .setColumnSchema(CellSchema.newBuilder()\n .setStorage(SchemaStorage.UID)\n .setType(SchemaType.INLINE)\n .setValue(\"\\\"string\\\"\")\n .build())\n .build()))\n .build()))\n .build()))\n .build();\n try {\n FijiTableLayout.createUpdatedLayout(desc, refLayout);\n Assert.fail(\"Invalid layout update with bad column renaming did not throw.\");\n } catch (InvalidLayoutException ile) {\n // Expected\n }\n }\n }", "@Override\r\n public boolean deleteAll(String strTable)\r\n { try\r\n { String strSQL = \"DELETE * FROM \" + strTable;\r\n status(strSQL);\r\n dbCmdText.executeUpdate(strSQL);\r\n\r\n // dbRecordset.close();\r\n } catch (SQLException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n return false;\r\n }", "public int deleteBatchByPK(String[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \tLong[] arrs = new Long[pkArray.length];\n\t\tfor(int i=0;i<pkArray.length;i++){\n\t\t\tif(pkArray[i]!=null)\n\t\t\t\tarrs[i] = new Long(Long.parseLong(pkArray[i]));\n\t\t}\n\t\trows = this.deleteBatchByPK(arrs);\n\t\treturn rows;\n }", "public int deleteBatchByPK(String[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \tLong[] arrs = new Long[pkArray.length];\n\t\tfor(int i=0;i<pkArray.length;i++){\n\t\t\tif(pkArray[i]!=null)\n\t\t\t\tarrs[i] = new Long(Long.parseLong(pkArray[i]));\n\t\t}\n\t\trows = this.deleteBatchByPK(arrs);\n\t\treturn rows;\n }", "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }", "public int deleteBatchByPK(Long[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.deleteBatch(\"Resourcesvalue.deleteByPK\", pkArray);\n \treturn rows;\n }", "public void deleteEmptyHoards() {\n String where = KEY_GOLD_HOARDED_COLUMN + \"=\" + 0;\n String whereArgs[] = null;\n \n // Delete the rows that match the where clause.\n SQLiteDatabase db = hoardDBOpenHelper.getWritableDatabase();\n db.delete(HoardDBOpenHelper.DATABASE_TABLE, where, whereArgs);\n }", "public void removeData(double[][] data) {\n for (int i = 0; i < data.length && n > 0; i++) {\n removeData(data[i][0], data[i][1]);\n }\n }", "public void removeAll(MyCollection col) {\n\t\tMyIterator it = col.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tremove(it.next());\n\t\t}\n\t}", "public int clearRows() {\n\t\tint rowsCleared = 0;\n\t\tcommitted = false;\n\t\tint toRow =0;\n\t\tfor(int fromRow = 0;fromRow < height;fromRow++){\n\t\t\tif(widths[fromRow] == width){\n\t\t\t\trowsCleared++;\n\t\t\t\tcontinue;\n\t\t\t}else if(rowsCleared > 0){\n\t\t\t\twidths[toRow] = widths[fromRow];\n\t\t\t\tfor(int i = 0; i < width; i++){\n\t\t\t\t\tgrid[i][toRow] = grid[i][fromRow];\n\t\t\t\t}\n\t\t\t\ttoRow++;\n\t\t\t}else{\n\t\t\t\ttoRow++;\n\t\t\t}\n\t\t}\n\t\twhile(toRow<height){\n\t\t\twidths[toRow]=0;\n\t\t\tfor(int i=0;i<width;i++){\n\t\t\t\tgrid[i][toRow]=false;\n\t\t\t\theights[i]--;\n\t\t\t}\n\t\t\ttoRow++;\n\t\t\tmaxColumnHeight--;\n\t\t}\n\t\tfor(int i=0;i<width;i++){\n\t\t\tboolean exist = false;\n\t\t\tfor(int j=0;j<height;j++){\n\t\t\t\tif(grid[i][j]){\n\t\t\t\t\theights[i]=j+1;\n\t\t\t\t\texist = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!exist) {\n\t\t\t\theights[i] = 0;\n\t\t\t}\n\t\t}\n\t\tsanityCheck();\n\t\treturn rowsCleared;\n\t}", "public void deleteAll(MDSKey id, @Nullable Predicate<MDSKey> filter) {\n byte[] prefix = id.getKey();\n byte[] stopKey = Bytes.stopKeyForPrefix(prefix);\n\n try {\n try (Scanner scan = table.scan(prefix, stopKey)) {\n Row next;\n while ((next = scan.next()) != null) {\n String columnValue = next.getString(COLUMN);\n if (columnValue == null) {\n continue;\n }\n\n MDSKey key = new MDSKey(next.getRow());\n if (filter != null && !filter.test(key)) {\n continue;\n }\n table.delete(new Delete(next.getRow()).add(COLUMN));\n }\n }\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "public void clearBatch() throws SQLException {\n\r\n }", "@Override\n\tpublic boolean deleteAll(int bno) {\n\t\treturn false;\n\t}", "void deleteColumns(String columnFamily, String key, String... columns);", "public void removeRows(int pos, int cnt) {\n\t\t//\t\tANCA: rows need not be removed from the columns if they are removed from the subset\n\t\t//for (int i = 0; i < getNumColumns(); i++) {\n\t\t//\tgetColumn(i).removeRows(pos, cnt);\n\t\t//}\n\t\tint[] newsubset = new int[subset.length - cnt];\n\t\tSystem.arraycopy(subset, 0, newsubset, 0, pos);\n\t\tSystem.arraycopy(\n\t\t\tsubset,\n\t\t\tpos + cnt,\n\t\t\tnewsubset,\n\t\t\tpos,\n\t\t\tsubset.length - pos - cnt);\n\n\t\tsubset = newsubset;\n\t}", "public void removeAllRecords(String tableName)\r\n {\r\n try {\r\n stmt = con.createStatement();\r\n stmt.execute(\"DELETE FROM \"+tableName);\r\n } \r\n catch (SQLException ex) \r\n {\r\n JOptionPane.showMessageDialog(null,\"Invalid Entry\\n(\" + ex + \")\");\r\n }\r\n }", "public void removeFromRowCounts(entity.LoadRowCount element);", "private void deletes() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Delete delete: deletes) {\n \tdelete.init();\n }\n \n //DBPeer.updateTableIndexes(); //Set min max of indexes not implemented yet\n }", "public int deleteAllFromTable(String tableName) {\n int rows = 0;\n if (checkTableRowCount(tableName, null, null)) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n rows = db.delete(tableName, \"1\", null);\n db.setTransactionSuccessful();\n db.endTransaction();\n }\n return rows;\n }", "public void DeleteAllRecordsInTable() {\n\n final List<Address> gndPlan = GetAllRecordsFromTable();\n for (int i = 0; i < gndPlan.size(); i++) {\n\n gndPlan.get(i).delete();\n //delete all item in table House\n }\n\n }", "boolean unUsedInCol(int j,int num)\n {\n for (int i = 0; i < N; i++)\n if (mat[i][j] == num)\n return false;\n return true;\n }", "public boolean deleteRowData(long rowId) {\n String where = KEY_ROWID + \"=\" + rowId;\n return db.delete(DATA_TABLE, where, null) != 0;\n }", "public Builder clearIncludesAllColumns() {\n\n includesAllColumns_ = false;\n onChanged();\n return this;\n }", "public native void deselectAllCells() /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectAllCells();\r\n }-*/;", "public int removeAll (Section[] sectionArr) throws DataAccessException;", "private static void removeAllElementsInContainer()\n {\n DefaultTableModel dm = (DefaultTableModel) JSoundsMainWindowViewController.table.getModel();\n for (int i = dm.getRowCount() - 1; i >= 0; i--) {\n dm.removeRow(i);\n } \n }", "@Override\n public void clearBatch() throws SQLException {\n throw new SQLException(\"tinySQL does not support clearBatch.\");\n }", "public void clearTable() {\n\t\tfor (int i = modelCondTable.getRowCount() - 1; i >= 0; i--) {\n\t\t\tmodelCondTable.removeRow(i);\n\t\t}\n\t}", "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }", "public void RemoveRowsIfStackedTooHigh() {\n \t\t\n while (rowHasBlocks(Parameters.RemoveBiggestPartialRowIfBlockInRow)) {\n int NoOfPiecesRemoved = \n eraseBiggestRowGreaterThan(Parameters.RemoveBiggestPartialRowIfBlockInRow);\n //remove points for each empty square\n ComputeScoreAndDelay(-(COLUMNS - NoOfPiecesRemoved) * Parameters.PointsSubtractedPerEmptySpaceFromPartialRow);\n \n }\n game_grid.repaint();\n LogEvent(\"row_removed\");\n }", "@ContextCheck(compile = true)\n\tpublic static void checkDeleteAll(OperatorContextChecker checker) {\n\t\tHBASEPutDelete.compileTimeChecks(checker, \"HBASEDelete\");\n\t\tOperatorContext context = checker.getOperatorContext();\n\t\tSet<String> params = context.getParameterNames();\n\t\tif (params.contains(DELETE_ALL_PARAM_NAME)) {\n\t\t\tif (params.contains(HBASEOperator.STATIC_COLQ_NAME)\n\t\t\t\t\t|| params.contains(HBASEPutDelete.COL_QUAL_PARAM_NAME)) {\n\t\t\t\t// we're okay--\n\t\t\t} else {\n\t\t\t\tchecker.setInvalidContext(\"Parameter \" + DELETE_ALL_PARAM_NAME\n\t\t\t\t\t\t+ \" requires that either \"\n\t\t\t\t\t\t+ HBASEOperator.STATIC_COLQ_NAME + \" or \"\n\t\t\t\t\t\t+ HBASEPutDelete.COL_QUAL_PARAM_NAME + \" be set.\", null);\n\t\t\t}\n\t\t}\n\t}", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}", "public abstract void rowsDeleted(int firstRow, int endRow);", "private Dataset<Row> takeRowsFirstWay(Dataset<Row> input) {\n\n\t\tString[] colulmsString = input.columns();\n\t\t\n\t\tfor( int i = 0; i < colulmsString.length; i++) {\n\t\t\t\n\t\t\t// Determinate if the current colum is to drop or not\n\t\t\tboolean drop = false;\n\t\t\tfor(SingleTakeColumn single: this.columsTarget) {\n\t\t\t\tif(!single.value.equals(colulmsString[i])) \n\t\t\t\t\tdrop = true;\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(drop) // drop column\n\t\t\t\tinput = input.drop(input.col(colulmsString[i]));\n\t\t\n\t\t}\n\t\treturn input;\n\t}", "private boolean check_Colum_In_Row(ResultSet rs) {\n\t\ttry {\n\t\t\tString tmp;\n\t\t\tint count = 0;\n\t\t\tfor (int i = 1; i < number_colum; i++) {\n\t\t\t\ttmp = rs.getString(i);\n\t\t\t\tif (tmp == null || tmp.equals(\"\")) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif (count >= 4) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "void clearDeletedItemsTable();", "private void jButton_ClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ClearActionPerformed\n //Clear all user entered inputs from the grid.\n myTable.clear(START_EDITABLE_ROW, END_EDITABLE_ROW, START_EDITABLE_COL, END_EDITABLE_COL);\n }", "@FXML\n public void deleteColumn() {\n try {\n foreignCarCompareController.getMainHbox().getChildren().remove(nextGridPane);\n //nextGridPane.getChildren().clear();\n foreignMainController.getListOfGridPaneColumns().remove(nextGridPane);\n //System.out.println(\"size after removing: \" + foreignMainController.getListOfGridPaneColumns().size());\n setIdentifyColumnForDelete(1);\n } catch (Exception e) {\n DialogWindows.errorDialog(e.getMessage());\n }\n }", "public void deleteAll(UUID accId) {\n txMgr.doInTransaction(() -> {\n Set<UUID> notebooksIds = datasourcesIdx.delete(accId);\n\n datasourceTbl.deleteAll(notebooksIds);\n });\n }", "public boolean removeK(int row, int col) {\n if (grid[row][col] != -1) {\n return false;\n } else {\n int count = 0;\n for (int i = 0; i < OPTIONS.length; i += 2) {\n int newRow = row + OPTIONS[i];\n int newCol = col + OPTIONS[i + 1];\n if (newRow >= 0 && newRow < rows && newCol >= 0 && newCol < cols) {\n if (grid[newRow][newCol] != -1) {\n grid[newRow][newCol]++;\n count++;\n }\n }\n }\n grid[row][col] = count;\n return true;\n }\n }", "@Test\n public void testDeleteForSureClearsAllTableRowsFromMeta() throws IOException, InterruptedException {\n final TableName tableName = TableName.valueOf(name.getMethodName());\n final Admin admin = TestEnableTable.TEST_UTIL.getAdmin();\n final HTableDescriptor desc = new HTableDescriptor(tableName);\n desc.addFamily(new HColumnDescriptor(TestEnableTable.FAMILYNAME));\n try {\n TestEnableTable.createTable(TestEnableTable.TEST_UTIL, desc, HBaseTestingUtility.KEYS_FOR_HBA_CREATE_TABLE);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail((\"Got an exception while creating \" + tableName));\n }\n // Now I have a nice table, mangle it by removing the HConstants.REGIONINFO_QUALIFIER_STR\n // content from a few of the rows.\n try (Table metaTable = TestEnableTable.TEST_UTIL.getConnection().getTable(META_TABLE_NAME)) {\n try (ResultScanner scanner = metaTable.getScanner(MetaTableAccessor.getScanForTableName(TestEnableTable.TEST_UTIL.getConnection(), tableName))) {\n for (Result result : scanner) {\n // Just delete one row.\n Delete d = new Delete(result.getRow());\n d.addColumn(CATALOG_FAMILY, REGIONINFO_QUALIFIER);\n TestEnableTable.LOG.info((\"Mangled: \" + d));\n metaTable.delete(d);\n break;\n }\n }\n admin.disableTable(tableName);\n TestEnableTable.TEST_UTIL.waitTableDisabled(tableName.getName());\n // Rely on the coprocessor based latch to make the operation synchronous.\n try {\n TestEnableTable.deleteTable(TestEnableTable.TEST_UTIL, tableName);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail((\"Got an exception while deleting \" + tableName));\n }\n int rowCount = 0;\n try (ResultScanner scanner = metaTable.getScanner(MetaTableAccessor.getScanForTableName(TestEnableTable.TEST_UTIL.getConnection(), tableName))) {\n for (Result result : scanner) {\n TestEnableTable.LOG.info((\"Found when none expected: \" + result));\n rowCount++;\n }\n }\n Assert.assertEquals(0, rowCount);\n }\n }", "public void unsetFirstCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FIRSTCOL$14, 0);\n }\n }", "final void deleteFirst(int elt) {\n if (contents != null && n >= 0 && n <= contents.length){\n int[] new_contents;\n //@ loop_invariant (i <= n);\n for (int i = 0; i < n; i++) {\n if (contents[i] == elt) {\n n--;\n new_contents = new int[contents.length];\n arraycopy(contents, 0, new_contents, 0, i);\n arraycopy(contents, i+1, new_contents, i, n-i);\n contents = new_contents;\n return;\n }\n }\n }\n }", "public boolean isEmpty(int row, int column);", "public int deleteBatchByPK(Long[] pkArray){\n \tif(pkArray==null||pkArray.length<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.deleteBatch(\"Rolesvalue.deleteByPK\", pkArray);\n \treturn rows;\n }", "boolean hasCol();", "public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }", "public static void delete_rows(String table_name, int[] indexes) throws SQLException{\n\t\t\n\t\tPreparedStatement pstmt=null;\n\t\tConnection conn = Connection_pooling.cpds.getConnection();\n\t\tString pstmt_query=\"\";\n\t\t\n\t\tString query_var = \"\";\n\t\t\n\t\tif(table_name.compareTo(\"Actors\")==0){\n\t\t\tquery_var=\"cinema_actors\";\n\t\t}\n\t\tif(table_name.compareTo(\"Movies\")==0){\n\t\t\tquery_var=\"cinema_movies\";\n\t\t}\n\t\tif(table_name.compareTo(\"Categories\")==0){\n\t\t\tquery_var=\"cinema_tags\";\n\t\t}\n\t\tif(table_name.compareTo(\"Artists\")==0){\n\t\t\tquery_var=\"music_artists\";\n\t\t}\n\t\tif(table_name.compareTo(\"Creations\")==0){\n\t\t\tquery_var=\"music_creations\";\n\t\t}\n\t\tif(table_name.compareTo(\"Countries\")==0){\n\t\t\tquery_var=\"places_countries\";\n\t\t}\n\t\tif(table_name.compareTo(\"Locations\")==0){\n\t\t\tquery_var=\"places_locations\";\n\t\t}\n\t\tif(table_name.compareTo(\"NBA players\")==0){\n\t\t\tquery_var=\"nba_players\";\n\t\t}\n\t\tif(table_name.compareTo(\"NBA teams\")==0){\n\t\t\tquery_var=\"nba_teams\";\n\t\t}\n\t\tif(table_name.compareTo(\"Israeli soccer players\")==0){\n\t\t\tquery_var=\"israeli_soccer_players\";\n\t\t}\n\t\tif(table_name.compareTo(\"Israeli soccer teams\")==0){\n\t\t\tquery_var=\"israeli_soccer_teams\";\n\t\t}\n\t\tif(table_name.compareTo(\"World soccer players\")==0){\n\t\t\tquery_var=\"world_soccer_players\";\n\t\t}\n\t\tif(table_name.compareTo(\"World soccer teams\")==0){\n\t\t\tquery_var=\"world_soccer_teams\";\n\t\t}\n\t\t\n\t\tpstmt_query = \" delete from curr_\"+query_var+\" where id = ? \";\n\t\t\n\t\t\n\t\tconn.setAutoCommit(false);\n\t\tpstmt = conn.prepareStatement(pstmt_query);\n\t\texecute_delete_stmt(pstmt, indexes);\n\t\tconn.commit();\n\t\tconn.setAutoCommit(true);\n\t\t\n\t\tpstmt.close();\n\t\tconn.close();\n\t}", "void insertEmptyColumns() {\n List<DateTime> starts = new ArrayList<>();\n for (Long startMillis : mColumnsByStartMillis.keySet()) {\n starts.add(new DateTime(startMillis));\n }\n int maxEmptyColumns = 3 / getSegmentStartTimes().length;\n DateTime prev = starts.get(0);\n for (DateTime next : starts) {\n if (!next.isAfter(prev.plusDays(maxEmptyColumns))) {\n for (DateTime dt = prev.plusDays(1); dt.isBefore(next); dt = dt.plusDays(1)) {\n getColumnContainingTime(dt); // creates a column if it doesn't exist yet\n }\n }\n prev = next;\n }\n }", "private void deleteHierarchyData(TreePath[] selRows) {\r\n SponsorHierarchyBean delBean;\r\n CoeusVector delData = new CoeusVector();\r\n TreePath treePath=selRows[selRows.length-1];\r\n DefaultMutableTreeNode selNode = (DefaultMutableTreeNode)treePath.getLastPathComponent();\r\n int selRow=sponsorHierarchyTree.getRowForPath(treePath);\r\n String optionPaneMsg=EMPTY_STRING;\r\n if(selNode.isRoot()) return;\r\n if(!selNode.getAllowsChildren()) {\r\n if(selRows.length > 1) {\r\n optionPaneMsg = coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1252\");\r\n }else {\r\n optionPaneMsg = \"Do you want to remove the sponsor \"+selNode.toString()+\" from the hierarchy?\";\r\n }\r\n int optionSelected = CoeusOptionPane.showQuestionDialog(optionPaneMsg,CoeusOptionPane.OPTION_YES_NO,CoeusOptionPane.DEFAULT_NO);\r\n if(optionSelected == CoeusOptionPane.SELECTION_YES) {\r\n for (int index=selRows.length-1; index>=0; index--) {\r\n treePath = selRows[index];\r\n selRow = sponsorHierarchyTree.getRowForPath(treePath);\r\n selNode = (DefaultMutableTreeNode)treePath.getLastPathComponent();\r\n int endIndex = selNode.toString().indexOf(\":\");\r\n Equals getRowData = new Equals(\"sponsorCode\",selNode.toString().substring(0,endIndex == -1 ? selNode.toString().length():endIndex));\r\n CoeusVector cvFilteredData = getDeleteData(cvHierarchyData.filter(getRowData));\r\n delBean = (SponsorHierarchyBean)cvFilteredData.get(0);\r\n delBean.setAcType(TypeConstants.DELETE_RECORD);\r\n flushBean(delBean);//Added for bug fix Start #1830\r\n model.removeNodeFromParent(selNode);\r\n delData.addAll(cvFilteredData);\r\n saveRequired = true;\r\n }\r\n }\r\n } else {\r\n \r\n// int optionSelected = CoeusOptionPane.showQuestionDialog(\"Do you want to remove the Group \"+selNode.toString()+\" all its children from the hierarchy.\",CoeusOptionPane.OPTION_YES_NO,CoeusOptionPane.DEFAULT_YES);\r\n int optionSelected = -1;\r\n try{\r\n if(selNode != null && selNode.getLevel() == 1 && isPrintingHierarchy && isFormsExistInGroup(selNode.toString())){\r\n optionSelected = CoeusOptionPane.showQuestionDialog(\"Do you want to remove the group \"+selNode.toString()+\" , all its children and associated sponsor forms from the hierarchy?\",CoeusOptionPane.OPTION_YES_NO,CoeusOptionPane.DEFAULT_NO);\r\n }else{\r\n optionSelected = CoeusOptionPane.showQuestionDialog(\"Do you want to remove the Group \"+selNode.toString()+\" , all its children from the hierarchy.\",CoeusOptionPane.OPTION_YES_NO,CoeusOptionPane.DEFAULT_NO);\r\n }\r\n }catch(CoeusUIException coeusUIException){\r\n CoeusOptionPane.showDialog(coeusUIException);\r\n return ;\r\n }\r\n if(optionSelected == CoeusOptionPane.SELECTION_YES) {\r\n //Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy - Start\r\n if(isPrintingHierarchy && selectedNode.getLevel() == 1){\r\n TreeNode root = (TreeNode)sponsorHierarchyTree.getModel().getRoot();\r\n TreePath result = findEmptyGroup(sponsorHierarchyTree, new TreePath(root));\r\n if( result == null){\r\n try{\r\n deleteForms(selNode.toString());\r\n }catch(CoeusUIException coeusUIException){\r\n CoeusOptionPane.showDialog(coeusUIException);\r\n return ;\r\n }\r\n }\r\n }\r\n Equals getRowData = new Equals(fieldName[selNode.getLevel()],selNode.toString());\r\n CoeusVector cvFilteredData = getDeleteData(cvHierarchyData.filter(getRowData));//Modified for bug fix Start #1830\r\n model.removeNodeFromParent(selNode);\r\n for (int i=0; i<cvFilteredData.size(); i++) {\r\n delBean = (SponsorHierarchyBean)cvFilteredData.get(i);\r\n delBean.setAcType(TypeConstants.DELETE_RECORD);\r\n flushBean(delBean);//Added for bug fix Start #1830\r\n saveRequired = true;\r\n }\r\n delData.addAll(cvFilteredData);\r\n }\r\n }\r\n if(selRow < sponsorHierarchyTree.getRowCount() && \r\n ((DefaultMutableTreeNode)sponsorHierarchyTree.getPathForRow(selRow).getLastPathComponent()).getAllowsChildren() && !selNode.getAllowsChildren())\r\n sponsorHierarchyTree.setSelectionPath(treePath.getParentPath());\r\n else\r\n if(selRow >= sponsorHierarchyTree.getRowCount())\r\n selRow = 0;\r\n sponsorHierarchyTree.setSelectionRow(selRow);\r\n \r\n groupsController.refreshTableData(delData);\r\n }", "void clearAllItemsTable();", "public void removeAll() {\r\n\r\n\t\tint size = getRowCount();\r\n\r\n\t\tthis.dataObjects = new Vector(0);\r\n\t\tdataVector = new Vector(0);\r\n\r\n\t\t// Generate notification\r\n\t\tfireTableRowsDeleted(0, size);\r\n\r\n\t}", "private void deleteRow(int n){\n\t\tint lastCol = grid[0].length - 1;\n\t\tfor(int i = n; i < lastCol; ++i) {\n\t\t\tfor(int j = 0; j < grid.length; ++j){\n\t\t\t\tgrid[j][i] = grid[j][i + 1];\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < grid.length; ++i){\n\t\t\tgrid[i][lastCol] = false;\n\t\t}\n\t}", "private boolean limpiarTablaDocs(Table t)\n\t{\n\t\tt.removeAll(); //borra todo?\n\t\treturn true;\n\t}", "public void removeColumn(String columnName);", "protected void clearColumnData(final BaseColumn column) {\n final int columnIndex = this.model.getExpandedColumns().indexOf(column);\n for (List<DTCellValue52> row : this.model.getData()) {\n final DTCellValue52 dcv = row.get(columnIndex);\n dcv.clearValues();\n }\n }", "int nnzInColumnSum(int[] colIds) {\n // Give a guess to the size of the union\n int totalSize = 0;\n for (int colId : colIds) {\n totalSize += this.getColumn(colId).size();\n }\n // Take union\n IntSet colIdUnion = new IntOpenHashSet(totalSize, 0.99F);\n for (int colId : colIds) {\n synchronized (this.getColumn(colId)) {\n colIdUnion.addAll(this.getColumn(colId));\n }\n }\n return colIdUnion.size();\n }", "public String[] delDupl(String[] arr) {\n int count = 0;\n\n for (int i = 0; i < arr.length - 1; i++) {\n if (arr[i] == null) {\n continue;\n }\n if (count == arr.length - 1) {\n break;\n }\n for (int j = i + 1; j < arr.length; j++) {\n if (arr[i].equals(arr[j])) {\n arr[j] = null;\n count++;\n }\n }\n }\n\n expectArray = new String[arr.length - count];\n\n return reqArray(arr, expectArray);\n }", "public boolean deleteAllHighScoreRows(){\n db = helper.getWritableDatabase();\n int ifSuccess = db.delete(SQLHelper.DB_TABLE_SCORES, null, null); // Clear table\n db.close();\n return (ifSuccess != 0);\n }", "protected void deleteEmptyMetaRows(HRegionInterface s, \n byte [] metaRegionName,\n List<byte []> emptyRows) {\n for (byte [] regionName: emptyRows) {\n try {\n HRegion.removeRegionFromMETA(s, metaRegionName, regionName);\n LOG.warn(\"Removed region: \" + Bytes.toString(regionName) +\n \" from meta region: \" +\n Bytes.toString(metaRegionName) + \" because HRegionInfo was empty\");\n } catch (IOException e) {\n LOG.error(\"deleting region: \" + regionName + \" from meta region: \" +\n metaRegionName, e);\n }\n }\n }", "public static boolean delete(String noInduk) throws SQLException, KasirException{\r\n return DBSR.deleteKasirO(tableName, noIndukColName, false, noInduk);\r\n }", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "@Override\r\n\tpublic void deleteByNumber(String no) {\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array[i].size(); j++) {\r\n\t\t\t\tif (array[i].get(j).getNumber() == no) {\r\n\t\t\t\t\tarray[i].remove(j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public DResult delete(byte[] row, long startId) throws IOException;", "public void deleteRowforNull(String row, String qty) {\n database.delete(ORDER_DETAILS, ORDER_ID + \" = ? AND \" + ORDER_QTY + \" = ?\", new String[]{row, qty});\n }", "@Override\r\n\tpublic void deleteByName(String name) {\n\t\tint del = name.toUpperCase().charAt(0) - 'A';\r\n\t\tfor (int i = 0; i < array[del].size(); i++) {\r\n\t\t\tif (array[del].get(i).name == name) {\r\n\t\t\t\tarray[del].remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public synchronized boolean ffree( FileTableEntry e )\n {\n\n if(table.removeElement(e))\n {\n e.inode.count--;\n e.inode.toDisk(e.iNumber);\n e = null;\n return true;\n\n } else return false;\n }", "public void clearExistingColumnMap()\n {\n synchronized (this.existingFieldLock) {\n this.existingField = null;\n this.existingFieldMap = null;\n }\n }", "private boolean checkColNameSet() {\n return (null != colNames && colNames.size() > 0);\n }", "private void verifyIndividualBatchColumns() {\n for (final String element : BATCH_COLUMNS) {\n Log.altVerify(true, lblBatchColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }", "public void deleteOptsetByName(String name) {\n int index = findIndexOfOptset(name);\n if (index != -1) {\n this.optionSet.remove(index);\n } else {\n System.out.println(\"The optionset named \" + name + \" no exists !!!\");\n }\n }", "public void prepareDeleteAll() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareDeleteAll();\n }", "private synchronized Object[] removeValues(RowMetaInterface rowMeta, Object[] rowData)\n\t{\n\t\tif (data.firstdeselect)\n\t\t{\n\t\t\tdata.firstdeselect=false;\n\n\t\t\tdata.removenrs=new int[meta.getDeleteName().length];\n\t\t\tfor (int i=0;i<data.removenrs.length;i++)\n\t\t\t{\n\t\t\t\tdata.removenrs[i]=rowMeta.indexOfValue(meta.getDeleteName()[i]);\n\t\t\t\tif (data.removenrs[i]<0)\n\t\t\t\t{\n\t\t\t\t\tlogError(BaseMessages.getString(PKG, \"SelectValues.Log.CouldNotFindField\",meta.getDeleteName()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\tsetErrors(1);\n\t\t\t\t\tstopAll();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check for doubles in the selected fields...\n\t\t\tint cnt[] = new int[meta.getDeleteName().length];\n\t\t\tfor (int i=0;i<meta.getDeleteName().length;i++)\n\t\t\t{\n\t\t\t\tcnt[i]=0;\n\t\t\t\tfor (int j=0;j<meta.getDeleteName().length;j++)\n\t\t\t\t{\n\t\t\t\t\tif (meta.getDeleteName()[i].equals(meta.getDeleteName()[j])) cnt[i]++;\n\n\t\t\t\t\tif (cnt[i]>1)\n\t\t\t\t\t{\n\t\t\t\t\t\tlogError(BaseMessages.getString(PKG, \"SelectValues.Log.FieldCouldNotSpecifiedMoreThanTwice2\",meta.getDeleteName()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\tsetErrors(1);\n\t\t\t\t\t\tstopAll();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Sort removenrs descending. So that we can delete in ascending order...\n\t\t\tArrays.sort(data.removenrs);\n\t\t}\n\n\t\t/*\n\t\t * Remove the field values\n\t\t * Take into account that field indexes change once you remove them!!!\n\t\t * Therefore removenrs is sorted in reverse on index...\n\t\t */\n\t\treturn RowDataUtil.removeItems(rowData, data.removenrs);\n\t}", "public static boolean testTableRemove(int size) {\r\n for (int i = 0; i < 6; i++) {\r\n if (table.remove(testList[i].getName()) == null)\r\n return false;\r\n if (table.size() != size - 1 - i) {\r\n return false;\r\n }\r\n try {\r\n table.get(testList[i].getName());\r\n } catch (NoSuchElementException e) {\r\n continue;\r\n }\r\n return false;\r\n }\r\n return true;\r\n }", "private int deleteRecordParam(String name) {\n println(\"deleting records using parameters.\");\n\n String[] whereArgs = {\"Rice\"};\n\n int rowAffected = db.delete(name,\n \"name = ?\",\n whereArgs);\n\n return rowAffected;\n }", "public int countEmptyCells() {\n int result = 0;\n for (int[] row : field)\n for (int cell : row)\n if (cell == EMPTY_MARK)\n result++;\n return result;\n }", "@Test\n public void testMetricDeletion() throws Exception {\n Aggregation agg1 = new DefaultAggregation(ImmutableList.of(\"dim1\", \"dim2\", \"dim3\"),\n ImmutableList.of(\"dim1\"));\n Aggregation agg2 = new DefaultAggregation(ImmutableList.of(\"dim1\", \"dim3\"),\n ImmutableList.of(\"dim3\"));\n\n int resolution = 1;\n Cube cube = getCube(\"testDeletion\", new int[] {resolution},\n ImmutableMap.of(\"agg1\", agg1, \"agg2\", agg2));\n\n Map<String, String> agg1Dims = new LinkedHashMap<>();\n agg1Dims.put(\"dim1\", \"1\");\n agg1Dims.put(\"dim2\", \"1\");\n agg1Dims.put(\"dim3\", \"1\");\n\n Map<String, String> agg2Dims = new LinkedHashMap<>();\n agg2Dims.put(\"dim1\", \"1\");\n agg2Dims.put(\"dim3\", \"1\");\n\n\n // write some data\n writeInc(cube, \"metric1\", 1, 1, agg1Dims);\n writeInc(cube, \"metric2\", 3, 3, agg2Dims);\n\n // verify data is there\n verifyCountQuery(cube, 0, 15, resolution, \"metric1\", AggregationFunction.SUM,\n agg1Dims, ImmutableList.of(),\n ImmutableList.of(\n new TimeSeries(\"metric1\", new HashMap<>(), timeValues(1, 1))));\n verifyCountQuery(cube, 0, 15, resolution, \"metric2\", AggregationFunction.SUM,\n agg2Dims, ImmutableList.of(),\n ImmutableList.of(\n new TimeSeries(\"metric2\", new HashMap<>(), timeValues(3, 3))));\n\n // delete metrics from agg2\n Predicate<List<String>> predicate =\n aggregates -> Collections.indexOfSubList(aggregates, new ArrayList<>(agg2Dims.keySet())) == 0;\n CubeDeleteQuery query =\n new CubeDeleteQuery(0, 15, resolution, agg2Dims, Collections.emptySet(), predicate);\n cube.delete(query);\n\n // agg1 data should still be there\n verifyCountQuery(cube, 0, 15, resolution, \"metric1\", AggregationFunction.SUM,\n agg1Dims, ImmutableList.of(),\n ImmutableList.of(\n new TimeSeries(\"metric1\", new HashMap<>(), timeValues(1, 1))));\n // agg2 data should get deleted\n verifyCountQuery(cube, 0, 15, resolution, \"metric2\", AggregationFunction.SUM,\n agg2Dims, ImmutableList.of(), ImmutableList.of());\n\n // delete metrics remain for agg1\n predicate = aggregates -> Collections.indexOfSubList(aggregates, new ArrayList<>(agg1Dims.keySet())) == 0;\n query = new CubeDeleteQuery(0, 15, resolution, agg1Dims, Collections.emptySet(), predicate);\n cube.delete(query);\n verifyCountQuery(cube, 0, 15, resolution, \"metric1\", AggregationFunction.SUM,\n agg1Dims, ImmutableList.of(), ImmutableList.of());\n }", "public void clearRows()\n\t{\n\t\tif(this.Rows != null)\n\t\t{\n\t\t\tsynchronizeInversesRemoveRows(this.Rows);\n\t\t\tthis.Rows.clear();\n\t\t\tfireChangeEvent();\n\t\t}\n\t}", "private boolean deleteAllData(Bike bike){\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(DELETE_DATA)){\n \n ps.setInt(1, bike.getBikeId());\n ps.executeUpdate();\n return true;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return false;\n }" ]
[ "0.53503823", "0.5062247", "0.50253403", "0.50050664", "0.49758998", "0.49735552", "0.49686682", "0.49658293", "0.49497122", "0.4934264", "0.49269703", "0.49043205", "0.48427108", "0.48372242", "0.48372242", "0.48372242", "0.48259938", "0.48075327", "0.47830445", "0.47763684", "0.47685334", "0.47685334", "0.47652963", "0.47509885", "0.47495282", "0.47478124", "0.474483", "0.4736256", "0.47359627", "0.47257823", "0.47122434", "0.4709819", "0.47015157", "0.46888584", "0.46864247", "0.46853188", "0.4683237", "0.4681332", "0.46754104", "0.46730605", "0.46659824", "0.4661932", "0.46550447", "0.46526772", "0.46470088", "0.46432504", "0.46412042", "0.46363083", "0.46341476", "0.46314755", "0.46282834", "0.46235514", "0.46218562", "0.46202648", "0.46189722", "0.4613599", "0.45979607", "0.45914674", "0.45848542", "0.4581124", "0.4580747", "0.45755094", "0.45745766", "0.45689952", "0.4567108", "0.45620885", "0.4560443", "0.45531112", "0.45523235", "0.45441723", "0.45439097", "0.45344195", "0.4525546", "0.45243102", "0.4521441", "0.451787", "0.45140055", "0.45079583", "0.45055476", "0.45016325", "0.45013878", "0.4496616", "0.44939512", "0.4489989", "0.44868863", "0.4483589", "0.44729793", "0.4471414", "0.4468325", "0.44672495", "0.44669923", "0.44657612", "0.44621658", "0.44574144", "0.44551882", "0.44538903", "0.4451341", "0.44510382", "0.44473267", "0.44465795" ]
0.5258314
1
/ profils may not be null this is equal to deleteProfils(user, pass, Set) where Set contains noInduks of all profils, including bad noInduk
public static int deleteS(ArrayList<Profil> profils) throws SQLException{ //arraylist because name clash Set<String> noInduks = new HashSet<>(profils.size()); for(Profil p : profils) noInduks.add(p.noInduk); return deleteS(noInduks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }", "public static int updateS(ArrayList<Profil> profils) throws SQLException, KasirException{\r\n return DBSR.updateKasirOs(tableName, noIndukColName, profils); \r\n }", "public synchronized static void borrarProduccion(String usuario){\n if(!produccion.isEmpty())\n for(Construcciones construccion : produccion){\n if(construccion.usuario.equalsIgnoreCase(usuario))\n produccion.remove(construccion);\n }\n}", "@Before\n\tpublic void insertProfils(){\n\t\tProfil profil = null;\n\t\ttry {\n\t\t\tList<Profil> listProfil = profilService.findAll();\n\t\t\t//delete profils\n\t\t\tif (!listProfil.isEmpty()){\n\t\t\t\tIterator<Profil> iter = listProfil.iterator();\n\t\t\t\twhile(iter.hasNext()){\n\t\t\t\t\tprofil = iter.next();\n\t\t\t\t\tprofilService.delete(profil);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//insert profils\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tprofil = new Profil();\n\t\t\t\tprofil.setProfilDescription(\"profil of administrataion\" + i);\n\t\t\t\tprofil.setProfilName(\"administrator\" + i);\n\t\t\t\tprofilService.create(profil);\n\t\t\t}\n\t\t\t//Check insertion \n\t\t\tlistProfil = profilService.findAll();\n\t\t\tassertThat(listProfil.size(), equalTo(10));\n\t\t} catch (final HibernateException he) {\n\t\t\the.printStackTrace();\n\t\t\tfail();\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}", "public void eliminarNovedadesRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;", "public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }", "private void removeProfiles()\r\n\t{\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tps.setValue(i + PROFILE, \"\");\r\n\t\t}\r\n\t\t\r\n\t\tcount = 0;\r\n\t\tps.setValue(PROFILE_COUNT, count);\r\n\t\t\r\n\t}", "public boolean deleteAllOfUser(Integer idu);", "@Before\n\tpublic void excluiGrupos() throws Exception{\n\t\tdao.apagaGrupos();\n\t}", "public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Profil)) {\r\n return false;\r\n }\r\n Profil other = (Profil) object;\r\n if ((this.idprofil == null && other.idprofil != null) || (this.idprofil != null && !this.idprofil.equals(other.idprofil))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "public void deleteBeneficioDeuda(Map parametros);", "@Query(\"DELETE FROM MessProviderProfile\")\n void deleteAll();", "public void eliminarDiferenciasRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;", "public void eliminarProfesor(ProfesorAsignatura profesor){\n profesores.remove(profesor);\n }", "public void cleanProposition();", "@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\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 }", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "public boolean removeProfessor(String codProf) {\n\n\t\tBoolean testa = false;\n\n\t\tJOptionPane.showMessageDialog(null, codProf);\n\t\tfor (int i = 0; i < PROFESSORES.size(); i++) {\n\n\t\t\tif (PROFESSORES.get(i).getCodProfessor().equals(codProf) == true) {\n\n\t\t\t\tif (getBASE().removeProf(codProf) == true) {\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"REMOVIDO DA BASE\");\n\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FALHA REMOVIDO DA BASE\");\n\t\t\t\t}\n\n\t\t\t\tPROFESSORES.remove(i);\n\n\t\t\t\ttesta = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (testa == true) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "@Test\n public void testRemoveUser_User04() {\n System.out.println(\"removeUser\");\n User user = new User(\"nick10\", \"mail_10_@sapo.pt\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n sn10.removeUser(user);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "@Test\r\n\tpublic void testPLFM_1978_deleteObjectsById(){\n\t\tList<Long> list = new LinkedList<Long>();\r\n\t\t// pass the empty list should return an empty result\r\n\t\tint result = migratableTableDAO.deleteObjectsById(MigrationType.ACCESS_APPROVAL, list);\r\n\t\tassertEquals(0, result);\r\n\t}", "public static int deleteS(Set<String> noInduks) throws SQLException{\r\n return DBSR.deleteKasirOsByString(tableName, noIndukColName, noInduks);\r\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}", "@Test\n public void testDeleteAccountFromUser() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n accs.add(acc2);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n bank.deleteAccountFromUser(user.getPassport(), acc);\n accs.remove(acc);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }", "@Test\n void deleteUserBatchesRemainSuccess() {\n GenericDao anotherDao = new GenericDao( Batch.class );\n /* user id 2 in the test database has two associated batches */\n User userWithBatch = (User) genericDao.getById(2);\n /* store the associated batches for this user */\n Set<Batch> batches = (Set<Batch>) userWithBatch.getBatches();\n logger.debug(\"The user's batches: \" + batches);\n\n /*\n * -disassociate the batches (this is the only way I can see to not delete the orphan records)\n * -delete the user\n * -confirm deletion\n */\n userWithBatch.setBatches(null);\n\n genericDao.delete(userWithBatch);\n\n assertNull(genericDao.getById(2));\n\n /*\n * try to retrieve the batches based on id\n * confirm they have not been removed from the database\n */\n for (Batch batch : batches) {\n logger.debug(\"test batch id: \" + batch.getId());\n Batch testBatch = (Batch) anotherDao.getById(batch.getId());\n logger.debug(\"Test batch retrieved from db: \" + testBatch);\n assertNotNull(testBatch);\n }\n }", "@Override\n\t@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)\n\tpublic void delDevPlan(Map<String, Object> map) throws AppException {\n\t\tString deveids = map.get(\"deveids\")==null?\"\":map.get(\"deveids\").toString();\n\t\t\n\t\tif(\"\".equals(deveids)){\n\t\t\tthrow new AppException(\"信息主键没找到!\");\n\t\t}\n\t\tString[] devs = deveids.split(\",\"); \n\t\tfor(int i=0;i<devs.length;i++){\n\t\t\tint id = Integer.parseInt(devs[i]);\n\t\t\tproDevelopDao.delete(id);\n\t\t}\n\t}", "public boolean deleteAllOfUserAndNote(Integer idu, Integer idn);", "@Override\n\tpublic int deletUsers(String[] arr) {\n\t\treturn userDao.deletUsers(arr);\n\t}", "public void excluirContaImopostosDeduzidos(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException;", "@Headers({\"Content-Type: application/json\", \"Cache-Control: no-cache\"})\n @DELETE(\"/userpreference/delete\")\n Call<Void> deleteAllUserPreference();", "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}", "public void prodottiDellaLista(int LID, HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n ProductListDAO productListDAO = new MySQLProductListDAOImpl();\n ProductDAO productDAO = new MySQLProductDAOImpl();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n UserDAO userDAO = new MySQLUserDAOImpl();\n \n List productList = productListDAO.getPIDsByLID(LID);\n Product product = null;\n String [][] prodotto = new String [productList.size()][10];\n \n SharingProductDAO sharingProductDAO = new MySQLSharingProductDAOImpl();\n List userSharedProduct = null;\n \n for(int i=0; i<productList.size(); i++){\n product = productDAO.getProduct(((ProductList)(productList.get(i))).getPID(), (String)session.getAttribute(\"emailSession\"));\n prodotto[i][0] = product.getName();\n prodotto[i][1] = product.getNote();\n prodotto[i][2] = product.getLogo();\n prodotto[i][3] = product.getPhoto();\n prodotto[i][4] = productCategoryDAO.getProductCategory(product.getPCID()).getName();\n prodotto[i][5] = userDAO.getUser(product.getEmail()).getName();\n prodotto[i][6] = Integer.toString(((ProductList)(productList.get(i))).getQuantity());\n prodotto[i][7] = Integer.toString(product.getPID());\n prodotto[i][8] = userDAO.getUser(product.getEmail()).getSurname();\n \n if (!userDAO.getUser(product.getEmail()).getAdmin()) {\n userSharedProduct = sharingProductDAO.getAllEmailsbyPID(Integer.parseInt(prodotto[i][7]));\n if (userSharedProduct.isEmpty() || userSharedProduct.size()>1){\n prodotto[i][9] = String.valueOf(userSharedProduct.size()) + \" utenti\";\n } else {\n prodotto[i][9] = String.valueOf(userSharedProduct.size()) + \" utente\";\n }\n } else {\n prodotto[i][9] = \"Tutti gli utenti\";\n }\n }\n \n session.setAttribute(\"Prodotto\", prodotto);\n \n }", "@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 static void deletePlayers() throws Exception {\n String id = executeQuery(\"SELECT * FROM players WHERE us_login LIKE '\" + \"PLogin\" + \"%';\", \"us_person_id\");\n while (!id.equals(\"\")) {\n\n executeQuery(\"DELETE FROM transactions WHERE debit_account_id in (select account_id FROM accounts WHERE person_id =\"\n + id + \" )\" + \"OR credit_account_id in (select account_id from accounts where person_id =\" + id + \" );\", \"\");\n\n executeQuery(\"DELETE FROM accounts WHERE person_id = \" + id + \";\", \"\");\n\n executeQuery(\"DELETE FROM persons WHERE person_id = \" + id + \";\", \"\");\n executeQuery(\"DELETE FROM players WHERE us_person_id = \" + id + \";\", \"\");\n\n id = executeQuery(\"SELECT * FROM players WHERE us_login LIKE '\" + \"PLogin\" + \"%';\", \"us_person_id\");\n }\n executeQuery(\"DELETE FROM audit_events WHERE object_name LIKE '\" + \"PLogin\" + \"%';\", \"\");\n }", "public void deleteDataInUserTable() throws SQLException {\n\t\tdeleteData(\"login_register\",idCondition);\n\t\tdeleteData(\"user_period\",\"APPLICANT_\"+idCondition);\n\t\tdeleteData(\"user_period\",\"APPLICANT_\"+idCondition);\n\t\tdeleteData(\"message\",idCondition);\n\t\tdeleteData(\"jp_user\",\"CI != 123\");\n\t}", "public String eliminarProgramaPeriodoDesarrollo_action()throws SQLException\n {\n mensaje=\"\";\n for(ProgramaProduccionPeriodo bean:programaProduccionPeriodoDesarrolloList)\n {\n if(bean.getChecked())\n {\n try\n {\n con = Util.openConnection(con);\n con.setAutoCommit(false);\n String consulta = \"select count(*) as contLotes\"+\n \" from PROGRAMA_PRODUCCION p where p.COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta verificar que el programa no tenga registrado lotes \"+consulta);\n Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n ResultSet res=st.executeQuery(consulta);\n res.next();\n PreparedStatement pst=null;\n if(res.getInt(\"contLotes\")>0)\n {\n mensaje=\"No se puede eliminar el Programa de Produccion porque tiene registrado \"+res.getInt(\"contLotes\")+\" lotes\";\n }\n else\n {\n consulta=\"delete PROGRAMA_PRODUCCION_PERIODO where COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta delete programa produccion periodo \"+consulta);\n pst=con.prepareStatement(consulta);\n if(pst.executeUpdate()>0)LOGGER.info(\"se elimino el programa de produccion periodo\");\n mensaje=\"1\";\n }\n con.commit();\n\n if(pst!=null)pst.close();\n con.close();\n }\n catch (SQLException ex)\n {\n con.rollback();\n con.close();\n mensaje=\"Ocurrio un error al momento de eliminar el programa periodo, intente de nuevo\";\n LOGGER.warn(\"error\", ex);\n }\n }\n }\n if(mensaje.equals(\"1\"))\n {\n this.cargarProgramaProduccionPeriodoDesarrollo_action();\n }\n return null;\n }", "@Override\n\tpublic boolean supprimer(List<EmploieType> entites) {\n\t\treturn false;\n\t}", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public boolean deletePalvelupisteet();", "void deleteAllChallenges();", "public synchronized void flushUserProfileAssignment(String login)\n {\n profileAssignments.remove(login);\n }", "public void removeUserCountedOfCensus(List<String> idCensus,String idProfile)\n\t{\n\t\topen();\n\t\ttry\n\t\t{\n\t\t\tfor(String current:idCensus)\n\t\t\t{\n\t\t\t\tCensus old=getCensusById(current);\n\t\t\t\tCensus updated=new Census(old);\n\t\t\t\tupdated.removeIdOfUsersCounted(idProfile);\n\t\t\t\tDB.delete(old);\n\t\t\t\tDB.store(updated);\n\t\t\t}\n\t\t\tSystem.out.println(\"[DB4O] Census was updated\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"[DB4]ERROR:Census could not be updated\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t}", "@Test\r\n\tpublic void testDeleteAll() throws Exception {\n\t\tArrayList<Calificacion> calificaciones = modelo.getAll();\r\n\t\tfor (Calificacion calificacion : calificaciones) {\r\n\t\t\tassertTrue(modelo.delete(calificacion.getId()));\r\n\t\t}\r\n\t\tassertNull(modelo.getAll());\r\n\t}", "private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }", "public void nukeUsers() {\n userRepository.deleteAll();\n }", "@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}", "@Override\r\n\tpublic int deleteProduitPanier(Produit p, Panier pan) {\n\t\treturn 0;\r\n\t}", "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\r\n\tpublic boolean deleteAllUser() {\n\t\treturn false;\r\n\t}", "@Test\r\n\t\tpublic void testDeleteAll() {\n\t\t\ttestingSet = new IntegerSet(); \r\n\t\t\ttestingSet.insertAll(list1); \r\n\t\t\ttestingSet.deleteAll();\r\n\t\t\t// after data is deleted set should be empty \r\n\t\t\tassertTrue(testingSet.isEmpty());\r\n\t\t}", "@When(\"^Очистить список просмотренных товаров$\")\n public void clearGoodsInViewedGoods() {\n PersonalPage personalPage = new PersonalPage(driver);\n personalPage.searchAndOpenByProfileList(\"Просмотренные товары\");\n //check Viewed Products\n //push button DeleteAll in Viewed Goods\n if (personalPage.confirmationOpenProfile(\"recent-goods-header\")) {\n personalPage.clearAll();\n personalPage.confirmationOpenProfile(\"recent-goods-header\");\n }\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profiles)) {\n return false;\n }\n Profiles other = (Profiles) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic int deleteByPrimaryKey(Integer permisId) {\n\t\treturn 0;\n\t}", "private void deleteGifts(List<Gift> gifts)\n {\n for(Gift gift:gifts)\n {\n OrmFetcher.deleteGift(gift);\n }\n saved.removeAll(gifts);\n adapter.notifyDataSetChanged();\n updateHeader();\n }", "@Override\n\tpublic void deleteAllUsers() {\n\t\t\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Perfiles)) {\n return false;\n }\n Perfiles other = (Perfiles) object;\n if ((this.idPerfil == null && other.idPerfil != null) || (this.idPerfil != null && !this.idPerfil.equals(other.idPerfil))) {\n return false;\n }\n return true;\n }", "@Override\n public void deleteAllPrivies() {\n }", "public void DeleteAllActivityUser(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id_user=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }", "public boolean excluir(String _cpfProfessor) throws BDException {\n\t\tint idx = this.busca(_cpfProfessor);\r\n\t\tboolean result = false;\r\n\t\tif (idx != -1) {\r\n\t\t\tthis.professores.remove(idx);\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "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 }", "int deleteByExample(ParUsuariosExample example);", "public boolean iliskMutfakSil(int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"delete iliski_mutfak from iliski_mutfak where kullanici_no=\" + kullanici_no + \"\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "@Override\n public void eliminarPropiedad(String pIdPropiedad) {\n try {\n bdPropiedad.manipulationQuery(\"DELETE FROM PROPIEDAD WHERE ID_PROPIEDAD = '\" + pIdPropiedad + \"'\");\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void removerAllPontosTuristicosFavoritosBD() {\n this.db.delete(TABLE_NAME, null, null);\n }", "@Override\r\n\tpublic void delete(List<MonitoredSupermarket> msList, int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"delete from monitored_supermarket where id_user = ? and id_supermarket = ?\";\r\n\r\n\t\tint insertsNumber = msList.size();\r\n\t\t\r\n\t\ttry{\r\n\t\t\tps = con.prepareStatement(query);\r\n\r\n\t\t\tfor(int i = 0; i < insertsNumber; i++){\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tps.setInt(1, userId);\r\n\t\t\t\t\tps.setInt(2, msList.get(i).getId_supermarket().getId_supermarket());\r\n\t\t\t\t\tps.executeUpdate();\r\n\t\t\t\t}catch (SQLException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} \t\r\n\t\t\t}\r\n\t\t} finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t\t\r\n\t\treturn;\r\n\r\n\t}", "public void deletePrisoners(String pisid){\r\n String q=\"DELETE FROM prisoners WHERE Prisonerid=?\";\r\n try\r\n {\r\n int k=0;\r\n PreparedStatement st=getConnection().prepareStatement(q);\r\n st.setString(1, pisid);\r\n if(st.executeUpdate()>k){\r\n JOptionPane.showMessageDialog(null,pisid+\"deleted successively\");\r\n \r\n }\r\n }\r\n catch(SQLException x){\r\n JOptionPane.showMessageDialog(null, x.getMessage());\r\n }\r\n \r\n //defines how update can be done\r\n }", "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 removeByIdSala(long id_sala) {\n\t\tfor (Approvatore approvatore : findByIdSala(id_sala, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}", "private void permisos(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 289 */ int miGrupo = Integer.parseInt((String)comms.session.getSessionData().get(\"miGrupo\"));\n/* */ \n/* 291 */ Varios oVarios = new Varios();\n/* 292 */ boolean oPermisoAct = oVarios.tienePermiso(miGrupo, \"admPrcRecursoAct\");\n/* 293 */ boolean oPermisoDel = oVarios.tienePermiso(miGrupo, \"admPrcRecursoDel\");\n/* 294 */ if (!oPermisoAct) {\n/* 295 */ HTMLElement elem = this.pagHTML.getElementBtnCrear();\n/* 296 */ elem.getParentNode().removeChild(elem);\n/* 297 */ elem = this.pagHTML.getElementBtnGrabar();\n/* 298 */ elem.getParentNode().removeChild(elem);\n/* 299 */ elem = this.pagHTML.getElementBtnModificar();\n/* 300 */ elem.getParentNode().removeChild(elem);\n/* */ } \n/* 302 */ if (!oPermisoDel) {\n/* 303 */ HTMLElement elem = this.pagHTML.getElementBtnEliminar();\n/* 304 */ elem.getParentNode().removeChild(elem);\n/* */ } \n/* */ }", "@Test\n\t@Category(TesteGetPromovabilitate.class)\n\tpublic void testPromovabilitate() {\n\t\tGrupa grupa=new Grupa(1078);\n\t\tfor(int i=0;i<7;i++) {\n\t\t\tStudent student=new Student(\"Valentin\");\n\t\t\tstudent.adaugaNota(4);\n\t\t\tstudent.adaugaNota(3);\n\t\t\tstudent.adaugaNota(2);\n\t\t\tgrupa.adaugaStudent(student);\n\t\t}\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tStudent student=new Student(\"Ana\");\n\t\t\tstudent.adaugaNota(7);\n\t\t\tstudent.adaugaNota(8);\n\t\t\tstudent.adaugaNota(10);\n\t\t\tgrupa.adaugaStudent(student);\n\t\t}\n\t\tassertEquals(0.41, grupa.getPromovabilitate(),0.02);\n\t}", "public void excluirDeParaSecundarios(List<Long> idsDeParaSecundarios) throws DAOException {\n try {\n\n String qlString = new StringBuilder()\n .append(\"DELETE FROM DeParaSecundario dpp WHERE dpp.id in (:idsDeParaSecundarios)\")\n .toString();\n\n getEntityManager().createQuery(qlString).setParameter(\"idsDeParaSecundarios\", idsDeParaSecundarios).executeUpdate();\n\n } catch (final PersistenceException e) {\n LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e);\n throw new DAOException(e);\n }\n }", "public void cleanUnusedResumeAndProfilePic(String addressBookXmlFilePath) {\n HashSet<String> usedFiles = new HashSet<String>();\n\n for (Person p: model.getAddressBook().getPersonList()) {\n if (p.getResume().value != null) {\n usedFiles.add(p.getResume().value.substring(5)); //\"data\\...\"\n }\n }\n for (Person p: model.getAddressBook().getPersonList()) {\n if (p.getProfileImage().value != null) {\n usedFiles.add(p.getProfileImage().value.substring(5)); //\"data\\...\"\n }\n }\n\n String userDir = System.getProperty(\"user.dir\");\n File dataDir = new File(userDir + File.separator + \"data\");\n File[] dataDirList = dataDir.listFiles();\n\n if (dataDirList == null) {\n return;\n }\n\n for (File child : dataDirList) {\n if (child.getName().lastIndexOf(\".\") == -1 && !usedFiles.contains(child.getName())) {\n child.delete();\n }\n }\n }", "public static void deleteUserData(final Context context) {\n log.info(\"Usuario Eliminado\");\n inicializaPreferencias(context);\n sharedPreferencesEdit.remove(Constantes.USER);\n sharedPreferencesEdit.commit();\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }", "public synchronized void flushProfilePermissions(Long profileId)\n {\n profilePerms.remove(profileId);\n }", "@Test\n\tpublic void testRemovePregunta(){\n\t\tej1.addPregunta(pre);\n\t\tej1.removePregunta(pre);\n\t\tassertFalse(ej1.getPreguntas().contains(pre));\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}", "@Test\n public void testDeleteStudentClassUnpaid() {\n School instance = new School();\n instance.setStudents(students);\n instance.setStudentClass(studentClass);\n instance.setInvoices(invoices);\n instance.setClasses(classes);\n\n instance.deleteStudentClass(sc11);\n\n assertEquals(0, class1.getCurrentNumberOfStudent());\n System.out.println(\"Pass number of current students\");\n\n assertEquals(studentClass.size(), 3);\n assertEquals(student1.getBalance(), 120000);\n assertEquals(invoice1.getTotalFee(), 7000);\n\n System.out.println(\"PASS ALL\");\n }", "public void doDeleteconfirm ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tSet deleteIdSet = new TreeSet();\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tString[] deleteIds = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif (deleteIds == null)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile3\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdeleteIdSet.addAll(Arrays.asList(deleteIds));\n\t\t\tList deleteItems = new Vector();\n\t\t\tList notDeleteItems = new Vector();\n\t\t\tList nonEmptyFolders = new Vector();\n\t\t\tList roots = (List) state.getAttribute(STATE_COLLECTION_ROOTS);\n\t\t\tIterator rootIt = roots.iterator();\n\t\t\twhile(rootIt.hasNext())\n\t\t\t{\n\t\t\t\tBrowseItem root = (BrowseItem) rootIt.next();\n\n\t\t\t\tList members = root.getMembers();\n\t\t\t\tIterator memberIt = members.iterator();\n\t\t\t\twhile(memberIt.hasNext())\n\t\t\t\t{\n\t\t\t\t\tBrowseItem member = (BrowseItem) memberIt.next();\n\t\t\t\t\tif(deleteIdSet.contains(member.getId()))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(member.isFolder())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(ContentHostingService.allowRemoveCollection(member.getId()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdeleteItems.add(member);\n\t\t\t\t\t\t\t\tif(! member.isEmpty())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnonEmptyFolders.add(member);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnotDeleteItems.add(member);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ContentHostingService.allowRemoveResource(member.getId()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdeleteItems.add(member);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnotDeleteItems.add(member);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(! notDeleteItems.isEmpty())\n\t\t\t{\n\t\t\t\tString notDeleteNames = \"\";\n\t\t\t\tboolean first_item = true;\n\t\t\t\tIterator notIt = notDeleteItems.iterator();\n\t\t\t\twhile(notIt.hasNext())\n\t\t\t\t{\n\t\t\t\t\tBrowseItem item = (BrowseItem) notIt.next();\n\t\t\t\t\tif(first_item)\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames = item.getName();\n\t\t\t\t\t\tfirst_item = false;\n\t\t\t\t\t}\n\t\t\t\t\telse if(notIt.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames += \", \" + item.getName();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames += \" and \" + item.getName();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\taddAlert(state, rb.getString(\"notpermis14\") + notDeleteNames);\n\t\t\t}\n\n\n\t\t\t/*\n\t\t\t\t\t//htripath-SAK-1712 - Set new collectionId as resources are not deleted under 'more' requirement.\n\t\t\t\t\tif(state.getAttribute(STATE_MESSAGE) == null){\n\t\t\t\t\t String newCollectionId=ContentHostingService.getContainingCollectionId(currentId);\n\t\t\t\t\t state.setAttribute(STATE_COLLECTION_ID, newCollectionId);\n\t\t\t\t\t}\n\t\t\t*/\n\n\t\t\t// delete item\n\t\t\tstate.setAttribute (STATE_DELETE_ITEMS, deleteItems);\n\t\t\tstate.setAttribute (STATE_DELETE_ITEMS_NOT_EMPTY, nonEmptyFolders);\n\t\t}\t// if-else\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tstate.setAttribute (STATE_MODE, MODE_DELETE_CONFIRM);\n\t\t\tstate.setAttribute(STATE_LIST_SELECTIONS, deleteIdSet);\n\t\t}\n\n\n\t}", "public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }", "public void eliminarNotas(int id ){\n String[] campos = {Integer.toString(id)};\n db.delete(\"nota\",\"_id=?\",campos);\n }", "void unsetProbables();", "@Test\n public void testDeleteAllUserData() {\n storage().deleteAllUserData();\n createSomeUserData();\n Assertions.assertEquals(8, countStorageEntities());\n // ^ TODO Change to 9 after https://github.com/Apicurio/apicurio-registry/issues/1721\n // Delete all\n storage().deleteAllUserData();\n Assertions.assertEquals(0, countStorageEntities());\n }", "public static void deletarProdutos(){\n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n } \n ListaDProduto.clear();\n SaidaDados(\"Todos produto deletado com sucesso\");\n \n \n }", "public void eliminar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.remove(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "@Override\n\tpublic void deleteAllStudents() {\n\t\t\n\t}", "@Override\n\tpublic boolean batchDelFollowers(List<Serializable> ids) {\n\t\treturn false;\n\t}", "void delete(Accessprofile accessprofile);", "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 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 }", "@Test\n public void testEqualsNonIdentical() {\n int userID = 0;\n int[] pref = new int[11];\n int[] health = new int[9];\n int[] diet = new int[5];\n int[] meal = new int[3];\n UserProfile up2 = new UserProfile(userID, pref, health, diet, meal);\n assertEquals(up, up2);\n\n up2 = new UserProfile(userID, pref, health, diet, meal, \"01203\");\n assertNotEquals(up, up2);\n\n int[] pref2 = {-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n up2 = new UserProfile(userID, pref2, health, diet, meal);\n assertNotEquals(up, up2);\n\n int[] health2 = {-2, 0, 0, 0, 0, 0, 0, 0, 0};\n up2 = new UserProfile(userID, pref2, health2, diet, meal);\n assertNotEquals(up, up2);\n\n int[] diet2 = {-3, 0, 0, 0, 0};\n up2 = new UserProfile(userID, pref, health2, diet2, meal);\n assertNotEquals(up, up2);\n\n int[] meal2 = {-4, 0, 0};\n up2 = new UserProfile(userID, pref, health2, diet2, meal2);\n assertNotEquals(up, up2);\n }", "@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 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}", "@Test\n public void testSupprimerPays() {\n System.out.println(\"supprimerPays\");\n d1.ajouterPays(p1);\n d1.ajouterPays(p2);\n d1.supprimerPays(p1);\n assertEquals(1, d1.getMyListePays().size());\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }" ]
[ "0.57897514", "0.56947875", "0.56208944", "0.55960643", "0.5543353", "0.5532043", "0.5502405", "0.5501645", "0.54886436", "0.5449252", "0.5367919", "0.53403145", "0.5321313", "0.529764", "0.52536887", "0.5249464", "0.5243278", "0.5162653", "0.51512027", "0.51409477", "0.5140541", "0.5134642", "0.51167977", "0.5092546", "0.5088781", "0.50741404", "0.50673014", "0.50500953", "0.50364536", "0.50353616", "0.50275135", "0.4992472", "0.4990649", "0.4982372", "0.49236003", "0.49155897", "0.49089435", "0.49047953", "0.49043778", "0.48988384", "0.4897331", "0.48791543", "0.48787367", "0.48720375", "0.48699227", "0.48695615", "0.4855221", "0.48534083", "0.4848999", "0.48467794", "0.4839251", "0.48322", "0.48144427", "0.48099014", "0.480791", "0.47947553", "0.4792654", "0.4787333", "0.4786386", "0.477999", "0.47786993", "0.47780964", "0.4770449", "0.47669652", "0.4764575", "0.4764093", "0.47628194", "0.47610623", "0.47526416", "0.47525513", "0.47509134", "0.4748285", "0.47459197", "0.47421798", "0.47396967", "0.4734868", "0.4732429", "0.47301906", "0.47283873", "0.47239956", "0.4722785", "0.47165394", "0.47165248", "0.4716091", "0.4716025", "0.47142693", "0.47107005", "0.4707048", "0.47018355", "0.46892482", "0.4685698", "0.46850812", "0.46837428", "0.46822137", "0.46812278", "0.46769193", "0.46761638", "0.4671036", "0.4667483", "0.46670923" ]
0.73547417
0
Write your solution here.
public int firstMissing(int[] array) { if (array == null || array.length == 0) { return 1; } int sum = 0; for (int i : array) { if (sum < i - 1) { return i - 1; } sum += i; } return sum + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public void solution() {\n\t\t\n\t}", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution());\r\n\t}", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\ttry{\r\n\t\t\tScanner sc= new Scanner(new File(inpPath));\t//new File(inpPath)\r\n\t\t\tPrintWriter out = new PrintWriter(new File(outPath));\r\n\t\t\tint cases = sc.nextInt();\r\n\t\t\tfor(int t=1;t<=cases;t++){\r\n\t\t\t\tsolve(t,sc,out);\r\n\t\t\t}\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t}catch(Exception ex){ex.printStackTrace();}\r\n\t\t\r\n\t}", "@Override\n public void handleSolution(String solution,long time) {\n \n }", "private static void solve() throws IOException {\n\n OptimizationGame.solve();\n SumOfSumOfDigits.solve();\n CrossTheStreet.solve();\n }", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\tString folderURL = \"C:\\\\Users\\\\Administrator\\\\Google ÔÆ¶ËÓ²ÅÌ\\\\Slides\\\\CS686\\\\A2\\\\SodukoProblem\\\\problems\\\\\";\n\t\tList<String> nameList = Loader.getAllSdURLFromFolder(folderURL);\n\t\tList<Solution> record = new ArrayList<Solution>();\n\t\tfor (String name:nameList)\n\t\t{\n\t\t\t//System.out.println(name);\n\t\t\tBoard board = Loader.loadInitialBoard(name);\n\t\t\tSudokuSolver solver = SudokuSolver.getInstance();\n\t\t\tSolution solution = solver.solve(board);\n\t\t\trecord.add(solution);\n\t\t\tSystem.out.print(solution.initNum+\" \");\n\t\t\tSystem.out.print(solution.cntState+\" \");\n\t\t\t//System.out.println(solution.board);\n\t\t\tSystem.out.println(solution.isFinished?\"Finished\":\"Failed\");\n\t\t\tif (solution.cntState>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(board);\n\t\t\t\tSystem.out.println(solution.board);\n\t\t\t}\n\t\t\t//if (!solution.isFinished) break;\n\t\t}\n\t\t//printStatistics(record);\n\t\t\n\t}", "@Test\n public void testSolution() {\n assertSolution(\"425\", \"input-day01-2018.txt\");\n }", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "@Override\n\tpublic String getSolution() {\n\t\treturn \"Ajouter des composants au circuit\";\n\t}", "@Override\n public void saveSolutions() {save solutions in unfolded format in a separate files for each solution (At this time, we have just one solution)\n // The result will print in 3 rows and each row have 4 columns:\n //\n // row1 --> col2\n // row2 --> col1 clo2 col3 col4\n // row2 --> clo2\n //\n //Example (of red cube):\n //\n // oo o\n // ooo\n // ooooo\n // ooo\n // oo\n // o o oo oo oo o\n //oooo ooooo ooo oooo\n // oooo ooo ooooo oooo\n //oooo ooooo ooo oooo\n // o o o oo o\n // o oo\n // oooo\n // oooo\n // oooo\n // oo oo\n //\n String directory = \"output\";\n File dir = new File(directory);\n if (!dir.exists()) dir.mkdirs();\n AtomicInteger counter = new AtomicInteger(1);\n solutions.forEach((number, solutionPuzzle) -> {\n StringBuilder rowStringValue1 = generateRowStringValue(null, solutionPuzzle.getTopPuzzlePiece(), null, null);\n StringBuilder rowStringValue2 = generateRowStringValue(solutionPuzzle.getLeftPuzzlePiece(), solutionPuzzle.getFrontPuzzlePiece(), solutionPuzzle.getRightPuzzlePiece(), solutionPuzzle.getBackPuzzlePiece());\n StringBuilder rowStringValue3 = generateRowStringValue(null, solutionPuzzle.getBottomPuzzlePiece(), null, null);\n Path path = Paths.get(directory + \"/solution\" + counter.getAndIncrement() + \".txt\");\n try (BufferedWriter writer = Files.newBufferedWriter(path)) {\n writer.write(rowStringValue1.append(rowStringValue2).append(rowStringValue3).toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n }", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(Solution(5, 83));\n\t\t\t\n\t\t}", "public static void main (String args []) throws IOException\r\n\t{\n\t\tScanner in = new Scanner(new File(\"moo.in\"));\r\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"moo.out\")));\r\n\t\tint n = in.nextInt();\r\n//\t\tSystem.out.println(solve(n,0));\r\n\t\tout.println(solve(n,0));\r\n\t\tout.flush();\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution(0));\n\n\t}", "public static void main(String[] args) {\n\t\tString filename = \"src/y20161B/B-small-practice\";\n\t\t//String filename = \"src/y20161B/B-large-practice\";\n\n\t\tFileInputStream file;\n\t\tint T;\n\n\t\ttry {\n\t\t\tfile = new FileInputStream(filename+\".in\");\n\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(file));\n\n\t\t\tT = Integer.parseInt(in.readLine());\n\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(filename+\".out\"));\n\n\t\t\tfor (int i=0; i<T; i++) {\n\t\t\t\tint ind = i+1;\n\t\t\t\t// parser\n\t\t\t\tString buff[] = in.readLine().split(\" \");\n\t\t\t\tString C = buff[0];\n\t\t\t\tString J = buff[1];\n\t\t\t\t\n\t\t\t\t// calcul\n\t\t\t\tString res = solve(C, J);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Result \"+i+\": \"+res);\n\t\t\t\tbw.write(\"Case #\"+ind+\": \"+res+\"\\n\");\n\t\t\t}\n\t\t\tbw.close();\n\n\t\t\tin.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void displaySolution() {\r\n Problem pb = new Problem(sources, destinations, costMatrix);\r\n pb.printProblem();\r\n Solution sol = new Solution(pb);\r\n sol.computeCost();\r\n }", "public static void main(String[] args) throws IOException {\n\t\t String name = \"A-large\";\r\n\t\tScanner sc = new Scanner(new File(name + \".in\"));\r\n\t\tsc.useLocale(Locale.US);\r\n\r\n\t\tFileWriter fstream = new FileWriter(name + \".out\");\r\n\t\tout = new BufferedWriter(fstream);\r\n\r\n\t\tint cases = sc.nextInt();\r\n\r\n\t\tfor (int i = 1; i <= cases; i++) {\r\n\t\t\tSystem.out.format(Locale.US, \"Case #%d: \", i);\r\n\t\t\tout.write(\"Case #\" + i + \": \");\r\n\t\t\tsolve(sc);\r\n\t\t}\r\n\t\tsc.close();\r\n\t\tout.close();\r\n\t}", "public static void solve(){\n try {\r\n Rete env = new Rete();\r\n env.clear();\r\n env.batch(\"sudoku.clp\");\r\n\t\t\tenv.batch(\"solve.clp\");\r\n env.batch(\"output-frills.clp\");\r\n env.batch(\"guess.clp\");\r\n env.batch(\"grid3x3-p1.clp\");\r\n\t env.eval(\"(open \\\"test.txt\\\" output \\\"w\\\")\");\r\n env.reset();\r\n env.eval(\"(assert (try guess))\");\r\n env.run();\r\n env.eval(\"(close output)\");\r\n } catch (JessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n System.out.println(\"ok\");\r\n FileReader fr;\r\n try {\r\n int r = 0,c = 0;\r\n fr = new FileReader(\"test.txt\");\r\n Scanner sc = new Scanner(fr);\r\n \r\n while (sc.hasNextInt()){\r\n int next = sc.nextInt();\r\n int i = id[r][c];\r\n gui.setSudokuValue(i-1, next);\r\n c++;\r\n if (c >= 6){\r\n c = 0; r++;\r\n }\r\n }\r\n } catch (Exception e){\r\n }\r\n \r\n }", "private void persist() {\n \t\ttry {\n \t\t\tproblemFile = File.createTempFile(\"p2Encoding\", \".opb\"); //$NON-NLS-1$//$NON-NLS-2$\n \t\t\tBufferedWriter w = new BufferedWriter(new FileWriter(problemFile));\n \t\t\tint clauseCount = tautologies.size() + dependencies.size() + constraints.size();\n \n \t\t\tint variableCount = variables.size();\n \t\t\tw.write(\"* #variable= \" + variableCount + \" #constraint= \" + clauseCount + \" \"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\tw.newLine();\n \t\t\tw.write(\"*\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \n \t\t\tif (variableCount == 0 && clauseCount == 0) {\n \t\t\t\tw.close();\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tw.write(objective);\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tw.write(explanation + \" ;\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tfor (Iterator iterator = dependencies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = constraints.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = tautologies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tw.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public void output(IvyXmlWriter xw,S6SolutionSet ss)\n{\n xw.begin(\"SOLUTION\");\n String code = formatted_code;\n if (code == null) {\n code = getFragment().getFinalText(ss.getSearchType());\n\n }\n formatted_code = null;\n\n// if (code.contains(\"]]>\") || code.contains(\"<![\")) xw.textElement(\"CODE\",code);\n if (code.contains(\"]]>\")) xw.textElement(\"CODE\",code);\n else xw.cdataElement(\"CODE\",code);\n xw.textElement(\"SOLSRC\",for_source.getName());\n xw.textElement(\"NAME\",for_source.getDisplayName());\n xw.textElement(\"LICENSE\",for_source.getLicenseUid());\n\n xw.begin(\"COMPLEXITY\");\n xw.field(\"LINES\",getCodeLines(code));\n xw.field(\"CODE\",getFragment().getCodeComplexity());\n S6TestResults tr = getFragment().getTestResults();\n if (tr != null) xw.field(\"TESTTIME\",tr.getRequiredTime());\n xw.end(\"COMPLEXITY\");\n\n if (transform_set != null) {\n xw.begin(\"TRANSFORMS\");\n for (S6Transform.Memo m : transform_set) {\n\t xw.textElement(\"TRANSFORM\",m.getTransformName());\n }\n xw.end(\"TRANSFORMS\");\n }\n\n xw.end(\"SOLUTION\");\n}", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "public static void main(String[] args) {\n System.out.println(Arrays.toString(solution(\"\")));\n System.out.println(Arrays.toString(solution(\"abcdef\")));\n System.out.println(Arrays.toString(solution(\"HelloWorld\")));\n System.out.println(Arrays.toString(solution(\"abcde\")));\n System.out.println(Arrays.toString(solution(\"LovePizza\")));\n\n }", "private void testSolution(String input, String output) {\n runs++;\n\n // Load the problem & solution\n ProblemSpec problemSpec = Solution.loadProblem(input);\n Solution solution = new Solution(problemSpec);\n\n // Solve and time the solution\n long startTime = System.currentTimeMillis();\n List<State> states = solution.solve();\n long endTime = System.currentTimeMillis();\n durations.put(input, endTime - startTime);\n\n // Output the solution\n Solution.writeSolution(Formatter.format(states), output);\n\n problemSpec = Solution.loadProblem(input, output);\n if (solutionPasses(problemSpec)) {\n passes++;\n }\n\n successes++;\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "void process() throws Exception {\n\t\n\n\t\t\tFile inputFile=new File(round+\"/\"+exercice+\"-small-attempt1.in\");\n\t\t\tPrintWriter outputFile= new PrintWriter(round+\"/\"+exercice+\"-small-attempt1.out\",\"UTF-8\");\n\n\t\t\n\t//\tFile inputFile=new File(round+\"/\"+exercice+\"-large.in\");\n\t//\tPrintWriter outputFile= new PrintWriter(round+\"/\"+exercice+\"-large.out\",\"UTF-8\");\n\n\n\t\tScanner scanner=new Scanner(inputFile);\n\t\tscanner.useLocale(Locale.US);\n\t\tint T = scanner.nextInt();\n\t\tSystem.out.println(\"Doing \"+T+\" cases\");\n\n\t\t\n\n\t\tfor (int t=1;t<=T;t++) {\n\t\n\t\t\t// do Something\n\t\t\tN=scanner.nextInt();\n\t\t\tS=new String[N];\n\t\t\n\t\t\t\n\t\t\tfor (int i=0;i<N;i++){\n\t\t\t\tS[i]=scanner.next();\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\tString ss=\"\"+solve();\n\t\t\n\t\t\tSystem.out.println(\"Case #\"+t+\": \"+ss);\n\t\t\toutputFile.println(\"Case #\"+t+\": \"+ss);\n\t\t\t\n\t\t}\n\t\tscanner.close();\n\t\toutputFile.close();\n\n\t}", "@Test\n public void testExample() {\n assertSolution(\"16\", \"example-day06-2018.txt\");\n }", "public static void main(String[] args)\n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tStringBuilder answers = new StringBuilder();\n\n\t\tanswers.append(\"PERFECTION OUTPUT\\n\");\n\t\ttry\n\t\t{\n\t\t\tint value;\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\tvalue = in.nextInt();\n\t\t\t\tif (value == 0) break;\n\n\t\t\t\tanswers.append(solve(value));\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tanswers.append(\"END OF OUTPUT\");\n\n\t\tSystem.out.println(answers);\n\t}", "private Solution() { }", "private Solution() { }", "void solve() throws IOException {\n\t\tint n = ni();\n\t\tint[] v = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tv[i] = ni();\n\t\tsolve(v);\n\t\tout.println(result.size());\n\t\tfor (int a : result)\n\t\t\tout.print(a + \" \");\n\t}", "public static void main(String[] args) throws IOException {\n\t\tString task = \"palsquare\"; //XXX change this\n\t\tString path = !TESTING ? task + \".in\"\n\t\t\t\t: System.getProperty(\"user.dir\") + File.separator + \"src\" + File.separator + \"test.in\";\n\t\tInputReader in = new InputReader(new FileInputStream(path));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(task + \".out\")));\n\t\tsolve(in, out);\n\t\tout.close();\n\t}", "public static void main(String[] args) {\n\t\tint [] arr = {4,2,3,5};\r\n\t\tint [] answer = solution(arr);\r\n\t\tfor(int i=0;i<answer.length;i++)\r\n\t\t\tSystem.out.print(answer[i]+\" \");\r\n\t}", "@Test\n public void testExample3() {\n assertSolution(\"-6\", \"example-day01-2018-3.txt\");\n }", "public static void main(String[] args) throws IOException {\n\n String path = \"D:\\\\GitHub\\\\Competetions\\\\CodeJam\\\\Code\\\\src\\\\B12016\\\\\";\n String input = \"bsmall.in\", output = \"bsmall.out\";\n FileInputStream fip = new FileInputStream(path + input);\n FileOutputStream fop = new FileOutputStream(path + output);\n in = fip;\n out = new PrintWriter(fop);\n B a = new B();\n a.solve();\n out.close();\n }", "void run() throws IOException {\n solve(out);\n // out.flush();\n }", "public static void main(String[] args) {\n String problem = \"Herman\";\n\n // Assign string type variable to solution string\n String result = solution(problem);\n\n //Print solution result\n System.out.println(result);\n }", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public static void main(String[] args) {\n\t\tint[][] maps = \n\t\t\t{\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,0,1,0,1},\n\t\t\t\t\t{1,0,1,1,1},\n\t\t\t\t\t{1,1,1,0,1},\n\t\t\t\t\t{0,0,0,0,1}\n\t\t\t};\n\t\tSystem.out.println(solution(maps));\n\t}", "public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tsolve(in, out);\n\t\tout.close();\n\t\tin.close();\t\n\t}", "public void showDisplaySolution(Solution<Position> solution);", "private static Solution go(Formula formula, PardinusBounds bounds, ExtendedOptions options) {\n\t\tReporter rep = options.reporter();\n\t\t\n\t\t// if not decomposed, use the amalgamated if any\n\t\tif (!options.decomposed() && bounds.amalgamated!=null)\n\t\t\tbounds = bounds.amalgamated();\n\n\t\t// create a directory with the specified unique name\n\t\tString temp=System.getProperty(\"java.io.tmpdir\");\n\t\tFile dir = new File(temp+File.separatorChar+options.uniqueName());\n\t\tif (!dir.exists()) dir.mkdir();\n\t\t\n\t\tString file = dir.toString()+File.separatorChar+String.format(\"%05d\", bounds.integration);\n\t\tPrintWriter writer;\n\t\ttry {\n\t\t\tif (!Options.isDebug())\n\t\t\t\tnew File(file+\".elo\").deleteOnExit();\n\t\t\twriter = new PrintWriter(file+\".elo\");\n\t\t\tString electrod = ElectrodPrinter.print(formula, bounds, rep);\n\t\t\twriter.println(electrod);\n\t\t\twriter.close();\n\t\t\trep.debug(\"New Electrod problem at \"+dir+\".\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new AbortedException(\"Electrod problem generation failed.\", e);\n\t\t}\n\t\tProcessBuilder builder;\n\t\tList<String> args = new ArrayList<String>();\n\t\targs.add(((ExternalSolver) options.solver().instance()).executable);\n\t\targs.addAll(Arrays.asList(((ExternalSolver) options.solver().instance()).options));\n\t\targs.add(Options.isDebug()?\"-v\":\"--\");\n\t\targs.add(file+\".elo\");\n\t\t\t\t\n\t\tbuilder = new ProcessBuilder(args);\n\t\t\n\t\tbuilder.environment().put(\"PATH\", builder.environment().get(\"PATH\")+\":/usr/local/bin:.\");\n\t\tbuilder.redirectErrorStream(true);\n\t\tint ret = -1;\n\t\tfinal Process p;\n\t\ttry {\n\t\t\toptions.reporter().solvingCNF(-1, -1, -1);\n\n\t\t\tp = builder.start();\n\t\t\t// stores the pid so that it can be correctly terminated\n\t\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!System.getProperty(\"os.name\").toLowerCase(Locale.US).startsWith(\"windows\"))\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tField f = p.getClass().getDeclaredField(\"pid\");\n\t\t\t\t\t\t\tf.setAccessible(true);\n\t\t\t\t\t\t\tRuntime.getRuntime().exec(\"kill -SIGTERM \" + f.get(p));\n\t\t\t\t\t\t} catch (NoSuchFieldException | SecurityException | IllegalArgumentException\n\t\t\t\t\t\t\t\t| IllegalAccessException | 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\telse\n\t\t\t\t\t\tp.destroy();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\ttry {\n\t\t\t\tBufferedReader output = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tp.getInputStream()));\n\n\t\t\t\tString oline = \"\";\n\t\t\t\twhile ((oline = output.readLine()) != null)\n\t\t\t\t\trep.debug(oline);\n\n\t\t\t\tret = p.waitFor();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tp.destroy();\n\t\t\t\tthrow new AbortedException(\"Electrod problem interrupted.\", e);\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\tthrow new AbortedException(\"Electrod problem failed.\", e1);\n\t\t}\n\t\t\n\t\tif (ret != 0) {\n\t\t\trep.warning(\"Electrod exit code: \"+ret);\n\t\t\tthrow new AbortedException(\"Electrod exit code: \"+ret);\n\t\t}\n\t\telse\n\t\t\trep.debug(\"Electrod ran successfully.\");\n\t\t\n\t\tFile xml = new File(file+\".xml\");\n\t\t\n\t\tif (!Options.isDebug())\n\t\t\txml.deleteOnExit();\n\n\t\tif (!xml.exists())\n\t\t\tthrow new AbortedException(\"XML solution file not found: \"+file+\".xml.\");\n\t\telse {\n\t\t\trep.debug(file);\n\n\t\t\tElectrodReader rd = new ElectrodReader(bounds);\n\t\t\tTemporalInstance res = rd.read(xml);\n\t\t\t\n\t\t\tStatistics st = new Statistics(rd.nbvars, 0,0, rd.ctime, rd.atime);\n\n\t\t\tSolution sol;\n\t\t\t// ElectrodReader#read returns null if unsat\n\t\t\tif (res == null)\n\t\t\t\tsol = Solution.unsatisfiable(st, null);\n\t\t\telse\n\t\t\t\tsol = Solution.satisfiable(st, res);\n\t\t\t\n\t\t\treturn sol;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(Arrays.toString(solution(8, 1)));\r\n\t}", "public static void main(String[] args) throws IOException {\n br = new BufferedReader(new FileReader(\"input.txt\"));\r\n\r\n int T = nextInt();\r\n for (int t = 1; t <= T; t++) {\r\n nextInt();\r\n int X = nextInt();\r\n String lString = nextToken();\r\n\r\n StringBuilder s = new StringBuilder();\r\n for (; X > 0; X--) s.append(lString);\r\n char[] arr = s.toString().toCharArray();\r\n String soln = solve(arr) ? \"YES\" : \"NO\";\r\n\r\n System.out.printf(\"Case #%d: %s%n\", t, soln);\r\n }\r\n }", "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void easy() {\n\t\tGenerator solve = new Generator();\n\t\tsolve.easy();\n\t\tAnswer = solve.getEquationResult();\n\t\tTextView Equation = (TextView) findViewById(R.id.textView3);\n\t\tEquation.setText(solve.getEquation());\n\t}", "public static void main(String[] args) {\n\t\tString[][] relation = {\r\n\t\t\t{\"100\",\"ryan\",\"music\",\"2\"},{\"200\",\"apeach\",\"math\",\"2\"},{\"300\",\"tube\",\"computer\",\"3\"},{\"400\",\"con\",\"computer\",\"4\"},{\"500\",\"muzi\",\"music\",\"3\"},{\"600\",\"apeach\",\"music\",\"2\"}\r\n\t\t};\r\n\r\n\t\tSystem.out.println(solution(relation));\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tin = new Scanner(new File(\"square.in\"));\n\t\tout = new PrintWriter(new File(\"square.out\"));\n\t\t\n\t\tinit();\n\t\tsolve();\n\t\t\n\t\tin.close();\n\t\tout.close();\n\t}", "@Test\n public void testExample2() {\n assertSolution(\"0\", \"example-day01-2018-2.txt\");\n }", "public static void main(String[] args) {\n int lineSize = Integer.parseInt(args[0]);\n String[] input = getInput(args);\n\n WordWrap ww = new WordWrap(lineSize, input);\n Long start = System.currentTimeMillis();\n Integer[] lines = ww.solve();\n Long end = System.currentTimeMillis();\n\n System.out.println(\"solved in \"+((end-start)/1000.0) +\" seconds\");\n printResult(lines, input);\n }", "public static void main(String[] args) throws IOException {\n\t\t\t\r\n\t\t\tint [] numReps= {3,1,2,2,2};\r\n\t\t\tMathModelClass.solveMe(85, 5, 2,numReps, 1);\r\n\t\r\n\t\t}", "@Test\n public void testExample0() {\n assertSolution(\"3\", \"example-day01-2018-0.txt\");\n }", "public static void main(String args[]) {\n\t List<int[][]> result = solveKT();\n\t for(int [][] sol: result){\n\t\t printSolution(sol);\n\t\t System.out.println();\n\t }\n }", "@Test\n public void testExample1() {\n assertSolution(\"3\", \"example-day01-2018-1.txt\");\n }", "@Override\n\tpublic void work() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"We work in TestYantra software solution\");\n\t\t\n\t}", "void run() throws IOException {\n\r\n\t\treader = new BufferedReader(new FileReader(\"input.txt\"));\r\n\r\n\t\tout = new PrintWriter(new FileWriter(\"output.txt\"));\r\n\t\ttokenizer = null;\r\n\t\tsolve();\r\n\t\treader.close();\r\n\t\tout.flush();\r\n\r\n\t}", "public void addSolution() {\n\t\tsolvable=true;\n\t\tbuffer.insert(this.toStringArray());\n\t}", "boolean isNewSolution();", "public static void main(String[] args) {\n SudokuBoard board = null;\n board = new SudokuBoard(9);\n /*try {\n board.read();\n } catch (InvalidNumberInCellException | OutOfRangeException e) {\n e.printStackTrace();\n }*/\n SudokuGenerator gen = null;\n gen = new SudokuGenerator(SudokuGenerator.Difficulty.EASY, 9);\n gen.generate(board);\n gen.removeCells(board, 25);\n board.print();\n SudokuSolver2 solver = new SudokuSolver2();\n int res = solver.uniqueSolution(board);\n if(res == 0 || res == 1) System.out.print(\"No \");\n System.out.print(\"té solució\");\n if(res != 0) System.out.println(\" única\");\n solver.solve(board).print();\n\n\n\n }", "public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n Solution solution = null;\n int testcases = ob.nextInt();\n ob.nextLine();\n for (int i = 0; i < testcases; i++) {\n String numsLine = ob.nextLine();\n String[] numsLineParts = numsLine.trim().split(\" \");\n int dimensions = Integer.valueOf(numsLineParts[0]);\n int numOperations = Integer.valueOf(numsLineParts[1]);\n solution = new Solution(dimensions);\n for (int j = 0; j < numOperations; j++) {\n String line = ob.nextLine();\n String[] lineParts = line.split(\" \");\n if (lineParts[0].equals(\"UPDATE\")) {\n solution.update(Integer.valueOf(lineParts[1])-1, Integer.valueOf(lineParts[2])-1, Integer.valueOf(lineParts[3])-1, Integer.valueOf(lineParts[4]));\n }\n if (lineParts[0].equals(\"QUERY\")) {\n solution.query(Integer.valueOf(lineParts[1])-1, Integer.valueOf(lineParts[2])-1, Integer.valueOf(lineParts[3])-1, Integer.valueOf(lineParts[4])-1, Integer.valueOf(lineParts[5])-1, Integer.valueOf(lineParts[6])-1);\n }\n }\n }\n }", "public static void main(String[] args) throws FileNotFoundException, IOException{\n InputStream inputStream = new FileInputStream(new File(\"./src/B-large.in\"));\n OutputStream outputStream = new FileOutputStream(new File(\"./src/B-large.out\"));\n InputReaderRevengePancakes in = new InputReaderRevengePancakes(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskRevengePancakes solver = new TaskRevengePancakes();\n solver.solve(1, in, out);\n out.close();\n }", "public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\t\tProblemSolver problemSolver = new ProblemSolver();\n\t\tproblemSolver.solveTheProblem(in, out);\t\t\n\t\tout.close();\t\t\n\t}", "public static void main(String[] args) \r\n {\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n \tScanner in = new Scanner(System.in);\r\n \tString problem = in.nextLine();\r\n \tin.close();\r\n \tSystem.out.printf(\"Result: %s\" , produceAnswer(problem));\r\n }", "public interface SASolution extends Solution {\r\n\r\n /**\r\n * Generates a neighbor solution using this solution\r\n *\r\n * @return\r\n */\r\n public SASolution getNeighborSolution();\r\n\r\n /**\r\n * Prints this solution\r\n *\r\n * @return\r\n */\r\n public String getAsString();\r\n\r\n}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor (int i = 0; i < t; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tbw.write(solution(a, b) + \"\\n\");\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t}", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "public static void main(String[] args) throws Exception\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"input6.txt\"));\tSystem.setOut(new PrintStream(new File(\"output.txt\")));\n\t\t\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tfor(int i = 1; i <= t; i++)\n\t\t\tSystem.out.println(\"Case #\"+i+\": \"+solve(br));\n\t}", "public static void printSolutionTable() {\n\t\tIAWorklist.printSolutionTable();\n\n\t}", "public void displayData(Solution solution);", "public static void main(String[] args) throws IOException {\n\t\tin = new BufferedReader(new FileReader(\"cowdance.in\"));\n\t\tout = new PrintWriter(new File(\"cowdance.out\"));\n\t\t\n\t\tinit();\n\t\tsolve();\n\t\t\n\t\tin.close();\n\t\tout.close();\n\t}", "public static void main(String[] args) throws IOException\n {\n \n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));\n \n String output = \"\"; //Write all output to this string\n\n //Code here\n int numLevels = Integer.parseInt(f.readLine());\n int[] nums = new int[numLevels];\n String line = f.readLine();\n StringTokenizer st = new StringTokenizer(line);\n int numLevelsX = Integer.parseInt(st.nextToken());\n for(int i = 0; i < numLevelsX; i++)\n {\n int n = Integer.parseInt(st.nextToken());\n nums[n-1]++;\n }\n line = f.readLine();\n st = new StringTokenizer(line);\n int numLevelsY = Integer.parseInt(st.nextToken());\n for(int i = 0; i < numLevelsY; i++)\n {\n int n = Integer.parseInt(st.nextToken());\n nums[n-1]++;\n }\n boolean isBeatable = true;\n for(int i = 0; i < numLevels; i++)\n {\n if(nums[i]==0)\n isBeatable = false;\n }\n output = isBeatable?\"I become the guy.\":\"Oh, my keyboard!\";\n \n \n //Code here\n\n //out.println(output);\n \n writer.println(output);\n writer.close();\n System.exit(0);\n \n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(solution(\"ACACACA\"));\r\n\t}", "@Override\n\t public String solve() {\n\t if (count == 0) {\n\t answer1 = getVariable2()*getVariable3();\n\t setAnswer(answer1 + \"\");\n\t } else if (count == 1) {\n\t answer1 = getVariable1()/getVariable2();\n\t setAnswer(answer1 + \"\");\n\t }else if (count == 2) {\n\t answer1 = getVariable1()/getVariable3();\n\t setAnswer(answer1 + \"\");\n\t }\n\t return getAnswer();\n\t }", "public void run() {\r\n\t\tvar configs = new Configurations();\r\n\t\ttry {\r\n\t\t\tconfig = configs.properties(new File(PROPERTIES_FILE_NAME));\r\n\t\t\toutputDirPath = config.getString(OUTPUT_DIR_KEY, \"./\");\r\n\t\t\tvar dir = new File(outputDirPath);\r\n\t\t\toutputDirPath = dir.getAbsolutePath();\r\n\t\t\tdir.mkdirs();\r\n\t\t} catch (ConfigurationException cex) {\r\n\t\t\tlogger.severe(\"Initialization failed: unable to load \" + PROPERTIES_FILE_NAME + \"!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsetOutputDirectory();\r\n\t\tlogger.info(\"Synthesizer: started\");\r\n\t\tsynthesisTime.reset();\r\n\t\tplanningTime.reset();\r\n\t\ttry {\r\n\t\t\tvar problem = genProblem();\r\n\t\t\tdebugger = new JminorDebugger(config, logger, problem.name, outputDirPath);\r\n\t\t\tdebugger.addLink(logFile.getName(), \"Events log\");\r\n\t\t\tdebugger.addCodeFile(\"problem.txt\", problem.toString(), \"Specification\");\r\n\t\t\tdebugger.printExamples(problem.examples);\r\n\t\t\tsynthesisTime.start();\r\n\t\t\tvar planner = new AStar<JmStore, Stmt>(new BasicJminorTR(problem.semantics));\r\n\t\t\tvar synthesizer = new PETISynthesizer<JmStore, Stmt, BoolExpr>(planner, config, logger, debugger);\r\n\t\t\tvar synthesisResult = synthesizer.synthesize(problem);\r\n\t\t\tif (synthesisResult.success()) {\r\n\t\t\t\tlogger.info(\"success!\");\r\n\t\t\t\t// We have to structure _after_ testing against the test examples,\r\n\t\t\t\t// since currently a command sequence is counted as an atomic\r\n\t\t\t\t// command, which fails the tests.\r\n\t\t\t\tvar automaton = synthesisResult.get();\r\n\t\t\t\tif (config.getBoolean(\"pexyn.structureResultAutomaton\", false)) {\r\n\t\t\t\t\tnew AutomatonToStructuredCmd<JmStore, Stmt, BoolExpr>(\r\n\t\t\t\t\t\t\t(StructuredSemantics<JmStore, Stmt, BoolExpr>) problem.semantics()).compress(automaton);\r\n\t\t\t\t\tdebugger.printAutomaton(automaton, \"Compressed automaton\");\r\n\t\t\t\t}\r\n\t\t\t\tif (config.getBoolean(\"jminor.generateJavaImplementation\", true)) {\r\n\t\t\t\t\tvar backend = AutomatonCodegen.forJava(automaton, problem, config, debugger, logger);\r\n\t\t\t\t\tbackend.generate();\r\n\t\t\t\t}\r\n\t\t\t\tif (config.getBoolean(\"jminor.generateDafnyImplementation\", true)) {\r\n\t\t\t\t\tvar backend = AutomatonCodegen.forDafny(automaton, problem, config, debugger, logger);\r\n\t\t\t\t\tbackend.generate();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.info(\"fail!\");\r\n\t\t\t}\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.severe(t.toString());\r\n\t\t\tt.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tsynthesisTime.stop();\r\n\t\t\tlogger.info(\"Planning time: \" + planningTime.toSeconds());\r\n\t\t\tlogger.info(\"Synthesizer: done! (\" + synthesisTime.toSeconds() + \")\");\r\n\t\t\tdebugger.refresh();\r\n\t\t}\r\n\t}", "protected void end() {\r\n lang.nextStep();\r\n int total = seen + failed;\r\n\r\n hideAll();\r\n SourceCode end = lang.newSourceCode(new Offset(0, 50, pMap.get(\"hRect\"),\r\n \"SW\"), \"end\", null, sourceCodeProperties);\r\n end.addCodeLine(\r\n \"Das h\\u00F6chste Ergebnis, dass der Spieler bei einem optimal spielenden Gegner erzielen kann, ist \"\r\n + result + \".\", \"end\", 0, null);\r\n if (seen == 1) {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurde \"\r\n + seen + \" nur Knoten untersucht.\", \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Von den insgesamt \" + nodesTotal + \" Knoten wurden \"\r\n + seen + \" verschiedene Knoten untersucht.\", \"end\", 0, null);\r\n }\r\n if (pruned == 1) {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n } else {\r\n end.addCodeLine(\"Es wurde \" + pruned + \" Knoten gepruned.\", \"end\", 0,\r\n null);\r\n }\r\n if (failed == 1) {\r\n end.addCodeLine(\"Allerdings musste auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n } else {\r\n end.addCodeLine(\"Allerdings mussten auch \" + failed\r\n + \" Knoten erneut untersucht werden, weil es zum Fail High kam.\",\r\n \"end\", 0, null);\r\n }\r\n end.addCodeLine(\"Damit wurde der Algorithmus insgesamt \" + total\r\n + \" Mal aufgerufen.\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Im Vergleich dazu h\\u00E4tte der Minimax-Algorithmus alle \"\r\n + nodesTotal + \" Knoten einmal untersucht.\", \"end\", 0, null);\r\n end.addCodeLine(\"\", \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Da der Algorithmus annimmt, dass jeweils der erste Kindknoten der beste ist \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"und danach mit einem Nullwindow arbeitet, ist die Reihenfolge der Knoten sehr wichtig, \",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"damit m\\u00F6glichst viele Knoten gepruned werden und m\\u00F6glichst wenige erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Es kann sich sogar zeitlich lohnen, die Knoten vorzusortieren.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Bei unsortierten Knoten ist der Negascout-Algorithmus langsamer als das Alpha-Beta-Pruning,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"bei dem zwar weniger Knoten nicht untersucht werden, daf\\u00FCr aber auch keine erneut untersucht werden m\\u00FCssen.\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"Die Komplexit\\u00E4t von Negascout betr\\u00E4gt O(b^d) in der Landau-Notation,\",\r\n \"end\", 0, null);\r\n end.addCodeLine(\r\n \"wobei b f\\u00FCr den Verzweigungsfaktor (branching factor) und d f\\u00FCr die Baumtiefe (depth) steht\",\r\n \"end\", 0, null);\r\n lang.nextStep(\"Conclusion\");\r\n }", "@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}", "public static void main(String[] args) throws IOException {\n\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in))) {\n\n try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")))) {\n\n final int t = Integer.parseInt(\n bufferedReader.readLine()\n .trim());\n\n for (int i = 0; i < t; i++) {\n\n final String[] firstMultipleInput = bufferedReader.readLine()\n .replaceAll(REGEX, REPLACEMENT)\n .split(SEPARATOR);\n\n final String a = firstMultipleInput[0];\n final String b = firstMultipleInput[1];\n\n final int result = solve(a, b);\n\n bufferedWriter.write(String.valueOf(result));\n bufferedWriter.newLine();\n }\n }\n }\n }", "public String getSolution() {\n\t\treturn solution;\n\t}", "public static void main(String[] args)throws IOException {\r\n\t\t\r\n\t\t String inputFolder = \"C:/Users/Nekromantik/Desktop/321\";\r\n\t\t String inputfile = \"C:/Users/Nekromantik/Desktop/222/disagreements.txt\";\r\n\t\t \r\n\t\t String outputfile = \"C:/Users/Nekromantik/Desktop/222/result.txt\";\r\n\t\t \r\n\t\t Eva_help2 test = new Eva_help2();\r\n\t\t test.generate(inputfile, inputFolder, outputfile);\r\n\t\t\r\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(fileName))) {\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(outFileName));\r\n\t\t\tString line;\r\n\r\n\t\t\tline = br.readLine();\r\n\t\t\tint testCases = Integer.parseInt(line);\r\n\t\t\tint caseCounter = 1;\r\n\t\t\t\r\n\t\t\t// ---------\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tString[] tmp = line.split(\" \");\r\n\t\t\t\tint buildings = Integer.parseInt(tmp[0]);\r\n\t\t\t\tint ways = Integer.parseInt(tmp[1]);\r\n\t\t\t\tint maxWays = 0;\r\n\t\t\t\tfor(int i = buildings - 2; i > 0; i--) maxWays += i;\r\n\t\t\t\tmaxWays++;\r\n\t\t\t\tif(ways > maxWays){\r\n\t\t\t\t\tSystem.out.println(\"Case #\" + caseCounter + \": IMPOSSIBLE\");\r\n\t\t\t\t\tbw.write(\"Case #\" + caseCounter + \": IMPOSSIBLE\\n\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tString result = solve(buildings, ways);\r\n\t\t\t\t\tSystem.out.println(\"Case #\" + caseCounter + \": \" + result);\r\n\t\t\t\t\tbw.write(\"Case #\" + caseCounter + \": \" + result + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t//int input = Integer.parseInt(line);\r\n\t\t\t\t\r\n\t\t\t\tcaseCounter++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// ---------\r\n\t\t\t\r\n\t\t\tbw.close();\r\n\t\t}\r\n\t}", "@Override\r\n public boolean close() {\r\n\r\n if (clearOutputFolder) {\r\n if (!args.hasValue(LaraiKeys.OUTPUT_FOLDER)) {\r\n KadabraLog.warning(\"No output folder defined, skipping cleaning\");\r\n } else {\r\n try {\r\n FileUtils.cleanDirectory(outputDir);\r\n } catch (final IOException e) {\r\n KadabraLog.warning(\"Output folder could not be cleaned before code generation: \" + e.getMessage());\r\n }\r\n }\r\n\r\n }\r\n\r\n if (args.get(JavaWeaverKeys.WRITE_CODE)) {\r\n if (prettyPrint) {\r\n spoon.prettyprint();\r\n spoon = newSpoon(Arrays.asList(temp), outputDir);\r\n // spoon.getEnvironment().setNoClasspath(true);\r\n // spoon.getEnvironment().setNoClasspath(false);\r\n buildAndProcess();\r\n spoon.prettyprint();\r\n } else {\r\n // System.out.println(\"PRESERVE? \" + spoon.getEnvironment().isPreserveLineNumbers());\r\n spoon.prettyprint();\r\n }\r\n }\r\n\r\n // Write XML files\r\n jApp.getAndroidResources().write(outputDir);\r\n\r\n // writeCode(temp, outputDir, true);\r\n\r\n if (reportGear.isActive()) {\r\n\r\n KadabraLog.info(\"REPORT: \");\r\n KadabraLog.info(\"Advised Join Points: \" + reportGear.getAdvisedJoinPoints().size());\r\n }\r\n return true;\r\n }", "public void showDisplayHalfSolution(Solution<Position> solution);", "public static void main(String[] args) {\n\t// write your code here\n int[][] input = new int[3][3];\n input[1][1] = 1;\n\n Solution sol = new Solution();\n sol.printMatrix(input);\n int[][] output = sol.updateMatrix(input);\n sol.printMatrix(output);\n\n }", "public static void main(String[] args) throws IOException{\n\t\t//Run the loop so that each of the entries forms are calculated.\n\t\tloopProblemSolver(getUserInput());\n\t}", "public static void main(String[] args) {\n String str = \"The one-hour drama series Westworld is a dark odyssey about the dawn of artificial consciousness and the evolution of sin. Set at the intersection of the near future and the reimagined past, it explores a world in which every human appetite, no matter how noble or depraved, can be indulged.\";\n\n System.out.println(solution1(str));\n }", "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 static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }", "@Override\n\tpublic Solution getSolution() {\t\n\t\treturn solution;\n\t}", "private Solution() {\n }", "public static void main(String[] args) {\n // solution for the problem\n int solution;\n // end time of the program\n long endTime;\n // start time of the program\n long startTime;\n\n startTime = System.nanoTime();\n solution = findSpecialPrimesSum();\n endTime = System.nanoTime();\n\n // print answer and time taken\n System.out.println(ANSWER + solution);\n System.out.printf(TIME_TAKEN, (double) (endTime - startTime) / TIME_CONVERSION);\n }", "public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\t//char[][] test = {{'O','O','O'},{'O','X','O'},{'O','O','O'}};\n\t\tchar[][] test = {{'X','O','X','X'},{'O','X','O','X'},{'X','O','X','O'},{'O','X','O','X'},{'X','O','X','O'}};\n\t\tfor(int i = 0;i < test.length;i++){\n\t\t\tfor(int j = 0;j < test[0].length;j++){\n\t\t\t\tSystem.out.print(test[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\ts.solve(test);\n\t\tfor(int i = 0;i < test.length;i++){\n\t\t\tfor(int j = 0;j < test[0].length;j++){\n\t\t\t\tSystem.out.print(test[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void print_solution() {\n System.out.print(\"\\n\");\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n System.out.print(cells[i][j].getValue());\n }\n System.out.print(\"\\n\");\n }\n }", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] arr = new int[4];\n for (int i = 0; i < 4; i++)\n arr[i] = sc.nextInt();\n \n Q1 q1 = new Q1();\n int[] answer = q1.solution(arr);\n \n for (int i = 0; i < answer.length; i++) {\n System.out.println(answer[i]);\n }\n }", "public static void main(String[] args) {\n\t\tSolution s = new Solution();\n\t\ts.solution(2, 4, 2, 1);\n\t}" ]
[ "0.8037806", "0.7603302", "0.6941013", "0.64572173", "0.6352647", "0.6253009", "0.6238112", "0.6234008", "0.62115276", "0.6133971", "0.6109244", "0.6108282", "0.6100399", "0.60993", "0.60886985", "0.6087549", "0.608237", "0.60471874", "0.60441387", "0.6040543", "0.6017895", "0.60101014", "0.6002487", "0.5989426", "0.59627056", "0.59443027", "0.59431833", "0.5940161", "0.59374195", "0.593027", "0.59296155", "0.5916164", "0.5897909", "0.58967525", "0.5884942", "0.5884942", "0.5877138", "0.5865481", "0.5864249", "0.58631724", "0.58614415", "0.5858535", "0.58460516", "0.5845217", "0.5840791", "0.58268714", "0.5824341", "0.58224", "0.5815891", "0.5814248", "0.57987267", "0.57981396", "0.57946473", "0.5792736", "0.5777661", "0.5769474", "0.5765627", "0.5759085", "0.5748844", "0.5733542", "0.5732102", "0.57119846", "0.5704651", "0.57035875", "0.5701214", "0.5696678", "0.5691688", "0.5687583", "0.56836605", "0.56830245", "0.56770426", "0.5670653", "0.56685275", "0.56642586", "0.56554556", "0.56529886", "0.56526464", "0.5650615", "0.56493187", "0.56483656", "0.56428576", "0.56426114", "0.56416523", "0.5634468", "0.5632848", "0.563267", "0.5619341", "0.5618184", "0.561477", "0.5612105", "0.5603797", "0.56021756", "0.5596081", "0.5593988", "0.5593042", "0.55915916", "0.55888563", "0.55803186", "0.55661243", "0.55596215", "0.5557973" ]
0.0
-1
Returns the base URL for block calls
private static String getBaseUrl() { return "https://rapidapi.io/connect"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String blockUrlBuild(String pack, String block)\r\n {\r\n return RapidApiConnect.getBaseUrl() + \"/\" + pack + \"/\" + block;\r\n }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "protected String getBaseUrl() {\n return requestBaseUrl;\n }", "String getServerBaseURL();", "String getRequestURL();", "public String getBaseUrl() {\n return builder.getBaseUrl();\n }", "public String url() {\n return server.baseUri().toString();\n }", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public static String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n StringBuffer buf = new StringBuffer();\n buf.append(getScheme());\n buf.append(\"://\");\n buf.append(getServerName());\n if ((isSecure() && getServerPort() != 443) ||\n getServerPort() != 80) {\n buf.append(\":\");\n buf.append(getServerPort());\n }\n return buf.toString();\n }", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "public String getBaseUrl()\n {\n return baseUrl;\n }", "public String getBaseUrl() {\n return (String) get(\"base_url\");\n }", "public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\n\t}", "public abstract String getBaseURL();", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "public String getHandleServiceBaseUrl();", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String baseUrl() {\n return baseUrl;\n }", "FullUriTemplateString baseUri();", "public java.lang.String getBaseUrl() {\n return bugQuery.getBaseUrl();\n }", "@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }", "protected String getBaseUrl(HttpServletRequest request) {\n\t\tString retVal = \"\";\n\t\tif (request != null && request.getRequestURL() != null) {\n\t\t\tStringBuffer url = request.getRequestURL();\n\t\t\tString uri = request.getRequestURI();\n\t\t\t\n\t\t\tretVal = url.substring(0, url.length() - uri.length());\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}", "public String getBaseUri() {\n\t\treturn baseUri;\n\t}", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseURL() {\n return baseURL;\n }", "public static String getBaseUrl() {\r\n if (baseUrl == null) {\r\n baseUrl = Constants.HTTP_PROTOCOL + \"://\" + getBaseHost() + \":\" + getBasePort();\r\n }\r\n return baseUrl;\r\n }", "String getRootServerBaseUrl();", "public String getBaseLinkUrl() {\n return (String) get(\"base_link_url\");\n }", "private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }", "public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }", "String getBaseUri();", "public String getRequestUrl(){\n return this.requestUrl;\n }", "public static String getBaseURL() {\n\t\t\n\t\treturn (ZmailURI.getBaseURI().toString());\n\t\t\n\t}", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "public static String getModuleBaseUrl(HttpServletRequest request) {\n\t String requestedUri = request.getRequestURI();\n\t int contextEnd = request.getContextPath().length();\n\t int folderEnd = requestedUri.lastIndexOf('/') + 1;\n\t return requestedUri.substring(contextEnd, folderEnd);\n\t }", "private String getBaseUri() {\n\t\treturn null;\n\t}", "private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}", "public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}", "public String getSecureBaseLinkUrl() {\n return (String) get(\"secure_base_link_url\");\n }", "public String appBaseUrl() {\n int amtToTrim = request.getServletPath().length() + request.getPathInfo().length();\n String appBase = requestURL.substring(0, requestURL.length()-amtToTrim);\n return appBase;\n }", "String getRequestedUrl();", "String getServerUrl();", "public String getSecureBaseUrl() {\n return (String) get(\"secure_base_url\");\n }", "public URL getCodeBase() {\n/* 169 */ return this.stub.getCodeBase();\n/* */ }", "public String getOverrideUrl() throws ConfigurationException {\n\t\tConfiguration config = this.currentConfiguration();\n\t\treturn config.getOverrideUrl();\n\t}", "public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}", "private String getUrlBaseForLocalServer() {\n\t HttpServletRequest request = ((ServletRequestAttributes) \n\t\t\t RequestContextHolder.getRequestAttributes()).getRequest();\n\t String base = \"http://\" + request.getServerName() + ( \n\t (request.getServerPort() != 80) \n\t \t\t ? \":\" + request.getServerPort() \n\t\t\t\t : \"\");\n\t return base;\n\t}", "public URL getCveJsonUrlBase() {\n return cveJsonUrlBase;\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "String fallbackBaseUrl() {\n return settings.get(FALLBACK_BASE_URL);\n }", "public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }", "public String getBaseStaticUrl() {\n return (String) get(\"base_static_url\");\n }", "@Override\n public String getBaseUri() {\n return null;\n }", "public URL getAccountUrl() {\n try {\n return new URL(storageAsyncRawClient.azureBlobStorage.url());\n } catch (MalformedURLException e) {\n throw new RuntimeException(String.format(\"Invalid URL on %s: %s\" + getClass().getSimpleName(), storageAsyncRawClient.azureBlobStorage.url()), e);\n }\n }", "public String getApplicationURL()\n\t{\n\t\tString url=pro.getProperty(\"baseURL\");\n\t\treturn url;\n\t}", "public String getRequestUri()\n {\n return requestUri;\n }", "public URL getEndPoint();", "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "public static String getdevBaseUrl(){\n\n return DEV_BASE_URL;\n }", "public URL makeBase(URL startingURL);", "public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }", "public interface UrlBlockHandler {\n\n /**\n * Handle the request when blocked.\n *\n * @param request Servlet request\n * @param response Servlet response\n * @throws IOException some error occurs\n */\n void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;\n}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "String getHubCallbackUri();", "public static String getExabyteResponseURL() {\n return nativeGetExabyteResponseURL();\n }", "BlockChainLink getGenesisLink();", "public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }", "String getRequestUrl() {\n return requestUrl;\n }", "@Override\n\tpublic URL getBaseURL() {\n\t\tURL url = null;\n\t\tString buri = getBaseURI();\n\t\tif (buri != null) {\n\t\t\ttry {\n\t\t\t\turl = new URL(buri);\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\ttry {\n\t\t\t\t\tString docuri = document.getDocumentURI();\n\t\t\t\t\tif (docuri != null) {\n\t\t\t\t\t\tURL context = new URL(docuri);\n\t\t\t\t\t\turl = new URL(context, buri);\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }", "String getQueryRequestUrl();", "RaptureURI getBaseURI();", "static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }", "@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;", "public final String getEndpointOverrideUrl() {\n return properties.get(ENDPOINT_OVERRIDE_URL_PROPERTY);\n }", "public String getCurrUrl() {\n return driver.getCurrentUrl();\n }", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "public URL getBaseHref() {\n return baseHref;\n }", "public String getCurrentUrl() {\n \t\treturn getWebDriver().getCurrentUrl();\n \t}", "public String getSecureBaseStaticUrl() {\n return (String) get(\"secure_base_static_url\");\n }", "public static String getBaseUrl(HttpServletRequest request) {\n\t\tif ((request.getServerPort() == 80) || (request.getServerPort() == 443))\n\t\t{\n\t\t\treturn request.getScheme() + \"://\" + request.getServerName();\t\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\treturn request.getScheme() + \"://\" + request.getServerName() + \":\" + request.getServerPort();\n\t\t}\n\t}", "public abstract RestURL getURL();", "public String getLogCollectionUploadServerUrl();", "public String getUnproxiedFieldDataServerUrl() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tString hostName = prefs.getString(\"serverHostName\", \"\");\n\t\tString context = \"bdrs-core\";//prefs.getString(\"contextName\", \"\");\n\t\tString path = prefs.getString(\"path\", \"\");\n\t\t\n\t\tStringBuilder url = new StringBuilder();\n\t\turl.append(\"http://\").append(hostName).append(\"/\").append(context);\n\t\t\n\t\tif (path.length() > 0) {\n\t\t\turl.append(\"/\").append(path);\n\t\t}\n\t\t\n\t\treturn url.toString();\n\t}", "public CharSequence getCallbackUrl()\n\t{\n\t\treturn getCallbackUrl(true);\n\t}", "public String callbackUrl() {\n return callbackUrl;\n }", "private String getRestUrl() {\n return restUrl;\n }", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public String getHostURL() {\n return getHostURL(PAActiveObject.getActiveObjectNodeUrl(PAActiveObject.getStubOnThis()));\n }", "public String getBlockFileDirectory() {\r\n return blockFileDirectory;\r\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "public String getCurrentURL()\n\t{\n\t\treturn driver.getCurrentUrl();\n\t}", "public String getContextUrl() {\n String currentURL = driver.getCurrentUrl();\n return currentURL.substring(0, currentURL.lastIndexOf(\"/login\"));\n }" ]
[ "0.65425843", "0.63204676", "0.6152848", "0.61364937", "0.6039866", "0.59909713", "0.599095", "0.59862673", "0.5967742", "0.5909119", "0.59079593", "0.59063554", "0.58982855", "0.58974993", "0.58789843", "0.5874019", "0.5837537", "0.582815", "0.5822915", "0.5822915", "0.5797721", "0.5793145", "0.5766743", "0.576473", "0.57579994", "0.57460403", "0.57375646", "0.57375646", "0.5723162", "0.5707946", "0.5690458", "0.56760204", "0.567261", "0.5670463", "0.56636935", "0.5657062", "0.56567985", "0.56499475", "0.5646699", "0.5642621", "0.5630633", "0.5616829", "0.5614345", "0.5590455", "0.55857575", "0.5582829", "0.55790126", "0.55784506", "0.557213", "0.5569022", "0.5566511", "0.54993117", "0.54838973", "0.54705584", "0.54546744", "0.5449279", "0.544619", "0.5428083", "0.5415882", "0.5415784", "0.5415062", "0.54045033", "0.5403826", "0.53961307", "0.5383926", "0.5371646", "0.53706056", "0.53706056", "0.53706056", "0.5359867", "0.5332177", "0.533083", "0.53290564", "0.5321668", "0.5300637", "0.52964705", "0.5285243", "0.5284442", "0.52792144", "0.52584875", "0.52446544", "0.5234378", "0.52329373", "0.5230687", "0.5221517", "0.5215919", "0.52089846", "0.5199938", "0.5199715", "0.5184213", "0.5181816", "0.5176305", "0.5164249", "0.515633", "0.5150572", "0.5147135", "0.5144904", "0.5144904", "0.5135205", "0.51346904" ]
0.5402383
63
Build a URL for a block call
public static String blockUrlBuild(String pack, String block) { return RapidApiConnect.getBaseUrl() + "/" + pack + "/" + block; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;", "Mono<PieceEvent> downloadBlock(Link link, RequestMessage requestMessage);", "String makePlanCommunityUrl();", "private void buildBS60Url() {\n url = \"http://q.lizone.net/index/index/BSline/res/60/label/\" + dataItem.label;//API 2.0\n }", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "public String genLink (String request, Array filters){\n \n }", "private String urlBuilder(){\n String timelineURL = \"curgas/timeline.json\";\n final RequestBuilder.UrlBuilder url = new RequestBuilder.UrlBuilder();\n url.setUrl(timelineURL);\n url.appendUrlQuery(\"apikey\", Constants.API_KEY);\n url.appendUrlQuery(\"sort\", SORT_TYPE);\n url.appendUrlQuery(\"jumlah\",TOTAL_POSTS);\n url.appendUrlQuery(\"page\",Integer.toString(PAGE_LOADED));\n\n String buildURL = url.build();\n\n return buildURL;\n }", "public String generateURL(HashMap<String, String> params) throws java.security.NoSuchAlgorithmException{\n\t\tDBA = params.get(\"merchantName\");\n\t\tRETURN_URL = params.get(\"returnURL\");\n\t\tTRANSACTION_TYPE = params.get(\"transactionType\");\n\t\tDISCOVER_IMAGE = params.get(\"acceptDiscover\").toUpperCase().startsWith(\"Y\") ? \"discvr.gif\" : \"spacer.gif\";\n\t\tAMEX_IMAGE = params.get(\"acceptAmex\").toUpperCase().startsWith(\"Y\") ? \"amex.gif\" : \"spacer.gif\";\n\t\tAMOUNT = params.get(\"amount\");\n\t\tPROTECT_AMOUNT = params.get(\"protectAmount\");\n\t\tREBILLING = params.get(\"rebilling\").toUpperCase().startsWith(\"Y\") ? \"1\" : \"0\";\n\t\tREB_PROTECT = params.get(\"rebProtect\");\n\t\tREB_AMOUNT = params.get(\"rebAmount\");\n\t\tREB_CYCLES = params.get(\"rebCycles\");\n\t\tREB_FIRST_DATE = params.get(\"rebStartDate\");\n\t\tREB_EXPR = params.get(\"rebFrequency\");\n\t\tCUSTOM_ID1 = params.get(\"customID1\");\n\t\tPROTECT_CUSTOM_ID1 = params.get(\"protectCustomID1\");\n\t\tCUSTOM_ID2 = params.get(\"customID2\");\n\t\tPROTECT_CUSTOM_ID2 = params.get(\"protectCustomID2\");\n\t\tSHPF_FORM_ID = params.get(\"paymentTemplate\");\n\t\tRECEIPT_FORM_ID = params.get(\"receiptTemplate\");\n\t\tREMOTE_URL = params.get(\"receiptTempRemoteURL\");\n\t\tCARD_TYPES = setCardTypes();\n\t\tRECEIPT_TPS_DEF = \"SHPF_ACCOUNT_ID SHPF_FORM_ID RETURN_URL DBA AMEX_IMAGE DISCOVER_IMAGE SHPF_TPS_DEF\";\n\t\tRECEIPT_TPS_STRING = setReceiptTpsString();\n\t\tRECEIPT_TAMPER_PROOF_SEAL = calcURLTps(RECEIPT_TPS_STRING);\n\t\tRECEIPT_URL = setReceiptURL();\n\t\tBP10EMU_TPS_DEF = addDefProtectedStatus(\"MERCHANT APPROVED_URL DECLINED_URL MISSING_URL MODE TRANSACTION_TYPE TPS_DEF\");\n\t\tBP10EMU_TPS_STRING = setBp10emuTpsString();\n\t\tBP10EMU_TAMPER_PROOF_SEAL = calcURLTps(BP10EMU_TPS_STRING);\n\t\tSHPF_TPS_DEF = addDefProtectedStatus(\"SHPF_FORM_ID SHPF_ACCOUNT_ID DBA TAMPER_PROOF_SEAL AMEX_IMAGE DISCOVER_IMAGE TPS_DEF SHPF_TPS_DEF\");\n\t\tSHPF_TPS_STRING = setShpfTpsString();\n\t\tSHPF_TAMPER_PROOF_SEAL = calcURLTps(SHPF_TPS_STRING);\n\t\treturn calcURLResponse();\n\t}", "private static String buildUrl(LatLng minPoint, LatLng maxPoint, int page){\n Uri.Builder uriBuilder = END_POINT.buildUpon()\n .appendQueryParameter(\"method\", SEARCH_METHOD)\n .appendQueryParameter(\"bbox\", minPoint.longitude + \",\" + minPoint.latitude + \",\" + maxPoint.longitude + \",\" + maxPoint.latitude) // box in which we are searching\n .appendQueryParameter(\"extras\", \"geo, url_o, url_c, url_m, url_s, description\") // extra additional parameters\n .appendQueryParameter(\"page\", \"\" + page); // page number to return\n return uriBuilder.build().toString();\n }", "public static Uri buildBlockedNumberUri (long id) {\n return ContentUris.withAppendedId(CONTENT_URI, id);\n }", "String getRequestURL();", "FullUriTemplateString baseUri();", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "java.lang.String getBookingURL();", "String requestBlockLocation(final long blockId, final long initialBytes) throws IOException;", "public StringBuilder getDemandSearchURLForDemandId() {\n\t\tStringBuilder url = new StringBuilder(configs.getBillingServiceHost());\n\t\turl.append(configs.getDemandSearchEndPoint());\n\t\turl.append(\"?\");\n\t\turl.append(\"tenantId=\");\n\t\turl.append(\"{1}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"businessService=\");\n\t\turl.append(\"{2}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"consumerCode=\");\n\t\turl.append(\"{3}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"isPaymentCompleted=false\");\n\t\treturn url;\n\t}", "public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public String setReceiptURL()\n\t{\n\t\tString output =\"\";\n\t\tif (RECEIPT_FORM_ID.equals(\"remote_url\"))\n\t\t\toutput = REMOTE_URL;\n\t\telse\n\t\t{\n\t\t\toutput = \"https://secure.bluepay.com/interfaces/shpf?SHPF_FORM_ID=\" + RECEIPT_FORM_ID +\n\t\t\t\t\t\"&SHPF_ACCOUNT_ID=\" + BP_MERCHANT +\n\t\t\t\t\t\"&SHPF_TPS_DEF=\" + encodeURL(RECEIPT_TPS_DEF) +\n\t\t\t\t\t\"&SHPF_TPS=\" + encodeURL(RECEIPT_TAMPER_PROOF_SEAL) +\n\t\t\t\t\t\"&RETURN_URL=\" + encodeURL(RETURN_URL) +\n\t\t\t\t\t\"&DBA=\" + encodeURL(DBA) +\n\t\t\t\t\t\"&AMEX_IMAGE=\" + encodeURL(AMEX_IMAGE) +\n\t\t\t\t\t\"&DISCOVER_IMAGE=\" + encodeURL(DISCOVER_IMAGE);\n\t\t}\n\t\treturn output;\n\t}", "private static String buildGetUserInfodUrl(String userId){\n Uri.Builder uriBuilder = END_POINT.buildUpon()\n .appendQueryParameter(\"method\", GETUSERINFO_METHOD)\n .appendQueryParameter(\"api_key \", API_KEY)\n .appendQueryParameter(\"user_id\", userId);\n return uriBuilder.build().toString();\n }", "private String buildRetrieveStopIdUrl(double latitude, double longitude) {\n String busStopLatLng = TextUtils.concat(String.valueOf(longitude), \",\",\n String.valueOf(latitude)).toString();\n\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(NetworkConstants.SCHEME)\n .authority(NetworkConstants.TRIMET_BASE_URL)\n .path(NetworkConstants.TRIMET_API_PATH)\n .appendPath(NetworkConstants.VERSION_ONE)\n .appendPath(NetworkConstants.STOPS_ENDPOINT)\n .appendQueryParameter(NetworkConstants.JSON, NetworkConstants.TRUE)\n .appendQueryParameter(NetworkConstants.STOPS_LONGITUDE_LATITUDE, busStopLatLng)\n .appendQueryParameter(NetworkConstants.STOPS_SEARCH_METERS,\n NetworkConstants.STOPS_BUS_STOP_SEARCH_RADIUS)\n .appendQueryParameter(NetworkConstants.API_KEY_URL_VARIABLE, NetworkConstants.API_KEY);\n\n String url = builder.build().toString();\n Log.d(TAG, DEBUG_URL_DESCRIPTION + \" for getting bus stop location id: \" + url);\n return url;\n }", "java.lang.String getPaymentUrl();", "public String buildingBlockAction() throws Exception {\n\t\t\t\t\n\t return \"success\";\n\t }", "public Call invite(String url);", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "private String generateURL(Integer instanceID, String key) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/target?targetID=\" + key;\n\t}", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "public abstract String makeReplayURI(final String datespec, final String url);", "private String getURL(int rad) {\n \t\tLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n \n \t\t// Define a listener that responds to location updates\n \t\tLocationListener locationListener = new LocationListener() {\n \t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t\t// Called when a new location is found by the network location provider.\n \t\t\t\tcurrentLocation = String.valueOf(location.getLatitude()) + \"+\" + String.valueOf(location.getLongitude());\n \t\t\t}\n \n \t\t\tpublic void onStatusChanged(String provider, int status, Bundle extras) {}\n \n \t\t\tpublic void onProviderEnabled(String provider) {}\n \n \t\t\tpublic void onProviderDisabled(String provider) {}\n \t\t};\n \n \t\t// Register the listener with the Location Manager to receive location updates\n \t\tlocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \n \t\tfinal String android_id = Secure.getString(getBaseContext().getContentResolver(),\n \t\t\t\tSecure.ANDROID_ID);\n \t\t//final String user = \"aaa\"; //idk how to deal with making users unique right now\n \t\tString url = \"http://18.238.2.68/cuisinestream/phonedata.cgi?user=\"+android_id+\"&location=\"+currentLocation+\"&radius=\"+rad;\n \t\treturn url;\n \t}", "protected abstract String getJobSubmitUrl(JsonObject build)\n throws IOException, UnsupportedEncodingException;", "public interface UrlBlockHandler {\n\n /**\n * Handle the request when blocked.\n *\n * @param request Servlet request\n * @param response Servlet response\n * @throws IOException some error occurs\n */\n void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;\n}", "private String genFeedURL(String startDate, String endDate) {\n\t\treturn String.format(\"%sfeed?start_date=%s&end_date=%s&detailed=false&api_key=%s\", \n\t\t\t\tconfig.getApiBaseURL(), startDate, endDate, config.getAPIKey());\n\t}", "public String calcURLResponse()\n\t{\n\t\treturn\n\t\t\t\t\"https://secure.bluepay.com/interfaces/shpf?\" +\n\t\t\t\t\t\t\"SHPF_FORM_ID=\" + encodeURL(SHPF_FORM_ID) +\n\t\t\t\t\t\t\"&SHPF_ACCOUNT_ID=\" + encodeURL(BP_MERCHANT) +\n\t\t\t\t\t\t\"&SHPF_TPS_DEF=\" + encodeURL(SHPF_TPS_DEF) +\n\t\t\t\t\t\t\"&SHPF_TPS=\" + encodeURL(SHPF_TAMPER_PROOF_SEAL) +\n\t\t\t\t\t\t\"&MODE=\" + encodeURL(BP_MODE) +\n\t\t\t\t\t\t\"&TRANSACTION_TYPE=\" + encodeURL(TRANSACTION_TYPE) +\n\t\t\t\t\t\t\"&DBA=\" + encodeURL(DBA) +\n\t\t\t\t\t\t\"&AMOUNT=\" + encodeURL(AMOUNT) +\n\t\t\t\t\t\t\"&TAMPER_PROOF_SEAL=\" + encodeURL(BP10EMU_TAMPER_PROOF_SEAL) +\n\t\t\t\t\t\t\"&CUSTOM_ID=\" + encodeURL(CUSTOM_ID1) +\n\t\t\t\t\t\t\"&CUSTOM_ID2=\" + encodeURL(CUSTOM_ID2) +\n\t\t\t\t\t\t\"&REBILLING=\" + encodeURL(REBILLING) +\n\t\t\t\t\t\t\"&REB_CYCLES=\" + encodeURL(REB_CYCLES) +\n\t\t\t\t\t\t\"&REB_AMOUNT=\" + encodeURL(REB_AMOUNT) +\n\t\t\t\t\t\t\"&REB_EXPR=\" + encodeURL(REB_EXPR) +\n\t\t\t\t\t\t\"&REB_FIRST_DATE=\" + encodeURL(REB_FIRST_DATE) +\n\t\t\t\t\t\t\"&AMEX_IMAGE=\" + encodeURL(AMEX_IMAGE) +\n\t\t\t\t\t\t\"&DISCOVER_IMAGE=\" + encodeURL(DISCOVER_IMAGE) +\n\t\t\t\t\t\t\"&REDIRECT_URL=\" + encodeURL(RECEIPT_URL) +\n\t\t\t\t\t\t\"&TPS_DEF=\" + encodeURL(BP10EMU_TPS_DEF) +\n\t\t\t\t\t\t\"&CARD_TYPES=\" + encodeURL(CARD_TYPES);\n\t}", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "java.lang.String getClickURL();", "private void getBlockListNetworkCall(final Context context, int offset, int limit) {\n\n HashMap<String, Object> serviceParams = new HashMap<String, Object>();\n HashMap<String, Object> tokenServiceHeaderParams = new HashMap<String, Object>();\n\n tokenServiceHeaderParams.put(Keys.TOKEN, UserSharedPreference.readUserToken());\n serviceParams.put(Keys.LIST_OFFSET, offset);\n serviceParams.put(Keys.LIST_LIMIT, limit);\n\n new WebServicesVolleyTask(context, false, \"\",\n EnumUtils.ServiceName.get_blocked_user,\n EnumUtils.RequestMethod.GET, serviceParams, tokenServiceHeaderParams, new AsyncResponseCallBack() {\n\n @Override\n public void onTaskComplete(TaskItem taskItem) {\n\n if (taskItem != null) {\n\n if (taskItem.isError()) {\n if (getUserVisibleHint())\n showNoResult(true);\n } else {\n try {\n\n if (taskItem.getResponse() != null) {\n\n JSONObject jsonObject = new JSONObject(taskItem.getResponse());\n\n // todo parse actual model\n JSONArray favoritesJsonArray = jsonObject.getJSONArray(\"users\");\n\n Gson gson = new Gson();\n Type listType = new TypeToken<List<BlockUserBO>>() {\n }.getType();\n List<BlockUserBO> newStreams = (List<BlockUserBO>) gson.fromJson(favoritesJsonArray.toString(),\n listType);\n\n totalRecords = jsonObject.getInt(\"total_records\");\n if (totalRecords == 0) {\n showNoResult(true);\n } else {\n if (blockListAdapter != null) {\n if (startIndex != 0) {\n //for the case of load more...\n blockListAdapter.removeLoadingItem();\n } else {\n //for the case of pulltoRefresh...\n blockListAdapter.clearItems();\n }\n }\n\n showNoResult(false);\n setUpBlockListRecycler(newStreams);\n }\n }\n } catch (Exception ex) {\n showNoResult(true);\n ex.printStackTrace();\n }\n }\n }\n }\n });\n }", "String makePlanCommunityParticipationUrl();", "public static URL getUrlForRequestSubCancel()\r\n {\r\n String rop = P.isCountryNop() ? \"rop_\" : \"\";\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/subscription/subscription_and_vehicle/\"+rop+\"cancellation_request\";\r\n return str2url( strUrl );\r\n }", "private String composeUri(String mode, String botName, String kind,\n String fileName) throws URISyntaxException {\n String uri = \"https://\" + host;\n uri += sep(mode);\n uri += sep(appId);\n uri += sep(botName);\n uri += sep(kind);\n uri += sep(fileName);\n return uri;\n }", "URL format(ShortLink shortLink);", "BlockChainLink getLastLink();", "private String gatewayRequestCmd(String url) {\n final ProgressDialog pDialog = new ProgressDialog(mCtx);\n pDialog.setMessage(\"Sending...\");\n pDialog.show();\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,\n url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, \"Response\");\n Log.d(TAG, response.toString());\n pDialog.hide();\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n // hide the progress dialog\n pDialog.hide();\n }\n });\n HttpHandler.getInstance(mCtx).addToRequestQueue(jsonObjReq);\n return \"\";\n\n }", "BlockFor createBlockFor();", "public void generateEnquireLink();", "@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }", "String getQueryRequestUrl();", "String getSpecUrl();", "public static String createBadgerUrl(Map<String, Object> map, String uri, int placeholderCount) {\n String url = getBadgrBaseUrl() + createUri(map, uri, placeholderCount);\n return url;\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "private String setReferralzz(){\n String uid = mAuth.getCurrentUser().getUid();\n String link = INVITE_LINK+uid;\n FIRDynamicLinkComponents referalLink = new FIRDynamicLinkComponents(new NSURL(link) ,\"https://fingertipsandcompany.page.link\");\n\n FIRDynamicLinkIOSParameters iOSParameters = new FIRDynamicLinkIOSParameters(BUNDLE_ID);\n iOSParameters.setMinimumAppVersion(\"1.0.1\");\n iOSParameters.setAppStoreID(\"1496752335\");\n referalLink.setIOSParameters(iOSParameters);\n\n FIRDynamicLinkAndroidParameters androidParameters = new FIRDynamicLinkAndroidParameters(BUNDLE_ID);\n androidParameters.setMinimumVersion(125);\n referalLink.setAndroidParameters(androidParameters);\n\n\n referalLink.shorten(new VoidBlock3<NSURL, NSArray<NSString>, NSError>() {\n @Override\n public void invoke(NSURL shortURL, NSArray<NSString> nsStrings, NSError nsError) {\n if (nsError != null){\n System.out.println(\"Referal Link Shorter Error-------------------->\"+nsError);\n return;\n }\n mInvitationURL = shortURL.getAbsoluteString();\n System.out.println(\"Generated Referral Link \");\n\n }\n });\n\n return mInvitationURL;\n\n }", "@Nonnull protected StringBuilder doBuildURL(@Nonnull final StringBuilder builder) {\n return builder;\n }", "String getJoinUrl();", "private String curlRepresentation() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"curl\");\n switch (getRequestType()) {\n case POST:\n builder.append(\" -X POST\");\n break;\n case PUT:\n builder.append(\" -X PUT\");\n break;\n default:\n break;\n }\n if (getHeaders() != null && !getHeaders().isEmpty()) {\n for (String key : getHeaders().keySet()) {\n builder.append(\" -H\")\n .append(\" \\\"\")\n .append(key).append(\":\").append(getHeaders().get(key))\n .append(\"\\\"\");\n }\n }\n if (getParameters() != null && getRequestType() != HttpRequest.NetworkOperationType.GET) {\n builder.append(\" -d \").append(getParameters());\n }\n builder.append(\" \").append(getUrl().toString());\n return builder.toString();\n }", "protected abstract String getJobSubmitUrl(CloseableHttpClient httpClient,\n File bundle) throws IOException, UnsupportedEncodingException;", "Uri getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "protected String urlOfBitstream(HttpServletRequest request, Bitstream logo) {\n String name = logo.getName();\n return resolveURL(request, null) +\n (uiType.equalsIgnoreCase(UITYPE_XMLUI) ? \"/bitstream/id/\" : \"/retrieve/\") +\n logo.getID() + \"/\" + (name == null ? \"\" : name);\n }", "private static String buildGetPhotoUrl(String pictureId){\n Uri.Builder uriBuilder = END_POINT.buildUpon()\n .appendQueryParameter(\"method\", GETPHOTO_METHOD)\n .appendQueryParameter(\"api_key \", API_KEY)\n .appendQueryParameter(\"photo_id\", pictureId);\n return uriBuilder.build().toString();\n }", "Block getBlock(String congName, String blockName, String blockNumber);", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "private String getOriginUrl() {\n Uri.Builder builder = url.buildUpon();\n for (Param p : queryParams) {\n builder.appendQueryParameter(p.key, p.value);\n }\n return builder.build().toString();\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\thandlHttpRequest(url, trackerinfo.get_info_hash(), Settings.PEER_DEFAULT_ID);\n\t\t\t\t\t}", "private String buildBusArrivalUrl(int locationId) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(NetworkConstants.SCHEME)\n .authority(NetworkConstants.TRIMET_BASE_URL)\n .path(NetworkConstants.TRIMET_API_PATH)\n .appendPath(NetworkConstants.VERSION_TWO)\n .appendPath(NetworkConstants.ARRIVALS_ENDPOINT)\n .appendQueryParameter(NetworkConstants.JSON, NetworkConstants.TRUE)\n .appendQueryParameter(NetworkConstants.ARRIVALS_MINUTES, NetworkConstants.ARRIVALS_MINUTES_VALUE)\n .appendQueryParameter(NetworkConstants.ARRIVALS_LOCATION_IDS, String.valueOf(locationId))\n .appendQueryParameter(NetworkConstants.API_KEY_URL_VARIABLE, NetworkConstants.API_KEY);\n\n String url = builder.build().toString();\n Log.d(TAG, DEBUG_URL_DESCRIPTION + \" for getting bus id: \" + url);\n return url;\n }", "BlockChainLink getGenesisLink();", "private void buildKLineUrl(String cycle) {\n url = \"http://q.lizone.net/index/index/Kline/label/\" + dataItem.label + \"/res/\" + cycle;//api 2.0\n }", "private String buildSearchURL(String companyTicker) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"finance.google.com\")\n .appendPath(\"finance\")\n .appendPath(\"info\")\n .appendQueryParameter(\"client\", \"iq\")\n .appendQueryParameter(\"q\", companyTicker);\n String myUrl = builder.build().toString();\n return myUrl; // return a url\n }", "public String getDownloadRequestUrl()\r\n {\r\n String requestUrl;\r\n if ( downloadURI != null )\r\n {\r\n try\r\n {\r\n // dont use whole uri.. only file and query part..!?\r\n requestUrl = URLUtil.getPathQueryFromUri( downloadURI );\r\n return requestUrl;\r\n }\r\n catch (URIException e)\r\n {// failed to use uri.. try other request urls..\r\n NLogger.warn( NLoggerNames.Download_Candidate, e, e );\r\n }\r\n }\r\n \r\n if ( resourceURN != null )\r\n {\r\n requestUrl = URLUtil.buildName2ResourceURL( resourceURN );\r\n }\r\n else\r\n {\r\n // build standard old style gnutella request.\r\n String fileIndexStr = String.valueOf( fileIndex );\r\n StringBuffer urlBuffer = new StringBuffer( 6 + fileIndexStr.length()\r\n + fileName.length() );\r\n urlBuffer.append( \"/get/\" );\r\n urlBuffer.append( fileIndexStr );\r\n urlBuffer.append( '/' ); \r\n urlBuffer.append( URLCodecUtils.encodeURL( fileName ) );\r\n requestUrl = urlBuffer.toString();\r\n }\r\n return requestUrl;\r\n }", "private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}", "private Uri computeUri(Context param1) {\n }", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public static String getExabyteResponseURL() {\n return nativeGetExabyteResponseURL();\n }", "@Override\n\tpublic void generateMigsPunchUrl() {\n\n\t}", "private URLConnection urlConnBuilder(URI base, URI resource) throws IOException {\n if (!resource.isAbsolute() && base != null) {\n resource = base.resolve(resource);\n }\n URL specURL = resource.toURL();\n URLConnection connection = specURL.openConnection();\n connection.setRequestProperty(\"Accept\", \"application/json\");\n connection.setRequestProperty(\"user-agent\", \"spymemcached vbucket client\");\n connection.setRequestProperty(\"X-memcachekv-Store-Client-Specification-Version\", CLIENT_SPEC_VER);\n\tif (restUsr != null) {\n\t try {\n\t\tconnection.setRequestProperty(\"Authorization\", buildAuthHeader(restUsr, restPwd));\n\t } catch (UnsupportedEncodingException ex) {\n\t\tthrow new IOException(\"Could not encode specified credentials for HTTP request.\", ex);\n\t }\n\t}\n\n return connection;\n\n }", "public String postBlock(String userid , String token) {\n\t\tString resultantObject = \"\";\n\t\tSystem.setProperty(\"http.keepAlive\", \"false\");\n\t\tString url = \"http://api.hkgalden.com/f/bi\";\n\t\tHttpParams httpParameters = new BasicHttpParams();\n\t\tint timeoutConnection = 60000;\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\n\t\tint timeoutSocket = 60000;\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\t\tHttpProtocolParams.setVersion(httpParameters, HttpVersion.HTTP_1_1);\n\t\tHttpConnectionParams.setSocketBufferSize(httpParameters, 8*1024);\n\t\tHttpClientParams.setRedirecting(httpParameters, true);\n\t\tDefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);\n\t\tHttpPost httppost = new HttpPost(url);\n\n\t\thttppost.addHeader(\"X-GALAPI-KEY\", GaldenUtils.apiKey);\n\t\thttppost.addHeader(\"X-GALUSER-KEY\", token);\t\n\t\t//httppost.addHeader(\"bid\", userid);\t\n\n\t\ttry {\t\n\t\t\tSystem.out.println(\"Response:\"+ \"start execute\");\n\n\t\t\tJSONObject json = new JSONObject();\n\t\t\tjson.put(\"bid\",userid);\n\t\t\thttppost.setEntity((HttpEntity) new ByteArrayEntity(json.toString().getBytes(\"UTF8\")));\n\t\t\thttppost.setHeader( \"Content-Type\", \"application/json\" );\n\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\tint status = response.getStatusLine().getStatusCode();\n\t\t\tSystem.out.println(\"Response:\"+ status);\t\t\t\t\t\t\t\t\n\t\t\tresultantObject = slurp(response.getEntity().getContent() , 8192);\n\t\t} catch (ClientProtocolException e) {\n\t\t\te.printStackTrace();\t\t\t\n\t\t\treturn e.getMessage();\n\t\t} catch (ConnectTimeoutException e){ \n\t\t\te.printStackTrace();\t\t\t\n\t\t\treturn e.getMessage();\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn e.getMessage();\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\treturn resultantObject; \t\n\t}", "public void requestDeleteBlock(String foreignID, final IRequestListener iRequestListener, FragmentBasic fragmentBasic) {\r\n int loginBravoViaType = BravoSharePrefs.getInstance(mContext).getIntValue(BravoConstant.PREF_KEY_SESSION_LOGIN_BRAVO_VIA_TYPE);\r\n SessionLogin sessionLogin = BravoUtils.getSession(mContext, loginBravoViaType);\r\n String userId = sessionLogin.userID;\r\n String accessToken = sessionLogin.accessToken;\r\n String url = BravoWebServiceConfig.URL_DELETE_BLOCKING.replace(\"{User_ID}\", userId).replace(\"{Access_Token}\", accessToken)\r\n .replace(\"{User_ID_Other}\", foreignID);\r\n AsyncHttpDelete deleteBlock = new AsyncHttpDelete(mContext, new AsyncHttpResponseProcess(mContext, fragmentBasic) {\r\n @Override\r\n public void processIfResponseSuccess(String response) {\r\n AIOLog.d(\"response putFollow :===>\" + response);\r\n JSONObject jsonObject = null;\r\n\r\n try {\r\n jsonObject = new JSONObject(response);\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (jsonObject == null)\r\n return;\r\n\r\n String status = null;\r\n try {\r\n status = jsonObject.getString(\"status\");\r\n } catch (JSONException e1) {\r\n e1.printStackTrace();\r\n }\r\n if (status == String.valueOf(BravoWebServiceConfig.STATUS_RESPONSE_DATA_SUCCESS)) {\r\n iRequestListener.onResponse(response);\r\n } else {\r\n iRequestListener.onErrorResponse(\"Cannot delete block\");\r\n }\r\n }\r\n\r\n @Override\r\n public void processIfResponseFail() {\r\n AIOLog.d(\"response error\");\r\n iRequestListener.onErrorResponse(\"Cannot delete block\");\r\n }\r\n }, null, true);\r\n AIOLog.d(url);\r\n deleteBlock.execute(url);\r\n }", "public abstract RestURL getURL();", "public Call inviteWithParams(String url, CallParams params);", "Uri mo1686a();", "private String buildGetUrl(final String job, final String securityToken) {\n\n final RemoteJenkinsServer remoteServer = this.findRemoteHost(this.getRemoteJenkinsName());\n String urlString = remoteServer.getAddress()\n .toString();\n\n urlString += \"/job/\";\n urlString += this.encodeValue(job);\n\n // don't try to include a security token in the URL if none is provided\n if (!securityToken.equals(\"\")) {\n this.addToQueryString(\"token=\" + encodeValue(securityToken));\n }\n return urlString;\n }", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "public URI buildUri(String name) {\n return URI.create(String.format(\"%s/%s\",\n config.getSftpListingDirectoryPath(),\n name));\n }", "String getUri( );", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "private String generateUrl(List<String> codes) {\n StringBuilder builder = new StringBuilder();\n for (String code : codes) {\n builder.append(\",\");\n builder.append(recognizeType(code));\n builder.append(code);\n }\n builder = builder.delete(0, 1);\n return prefix + builder.toString();\n }", "private GenericUrl generateAPIURL(Vital vitalToSync, OAuth oAuth) {\n GenericUrl url = null;\n switch (vitalToSync.getWearableType()) {\n case FITBIT:\n url = generateFitbitVitalConnectUrl(vitalToSync, oAuth);\n break;\n case WITHINGS:\n //TODO: Create withings URL\n url = new GenericUrl(withingsBaseURL);\n logger.warn(\"WITHINGS CONNECTION NOT IMPLEMENTED\");\n break;\n }\n return url;\n }", "@Test\n public void doRequestURL() throws IOException, NoSuchAlgorithmException, KeyManagementException {\n doRequest(\"https://login.cloud.huawei.com/oauth2/v2/token\");\n\n\n //doRequestWithOutHttps(\"https://124.74.46.118:7012/business/service\");\n //doRequestWithOutHttpsPool(\"https://124.74.46.118:7012/business/service\");\n }", "protected abstract String getUrl();", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }", "private String generateUrl(String code) {\n return prefix + recognizeType(code) + code;\n }", "public static String getAbsoluteBillingURL (String path)\n {\n return BASE + path + ((path.indexOf(\"?\") == -1) ? \"?\" : \"&\") +\n \"initUsername=\" + URL.encodeComponent(CShell.creds.accountName);\n }", "Builder addUrl(String value);" ]
[ "0.5552498", "0.54068494", "0.5308549", "0.53059995", "0.527467", "0.5264807", "0.5261211", "0.5182557", "0.5177337", "0.5166055", "0.5152351", "0.51517725", "0.51346517", "0.5131232", "0.50928605", "0.50110906", "0.49978602", "0.4968883", "0.49549556", "0.49438578", "0.49345642", "0.4929472", "0.49236858", "0.48855826", "0.4866439", "0.486169", "0.48436463", "0.4843641", "0.4821117", "0.48089045", "0.48073292", "0.47928214", "0.47802955", "0.47793663", "0.4762216", "0.47568905", "0.47522637", "0.4748293", "0.47477043", "0.47399646", "0.47385895", "0.47326452", "0.47261626", "0.47252002", "0.47220427", "0.47171575", "0.4709875", "0.47065747", "0.47051042", "0.47024354", "0.47011018", "0.46937564", "0.46872908", "0.4686548", "0.46837795", "0.46831352", "0.46798983", "0.46798983", "0.46798983", "0.46798983", "0.46798983", "0.46798983", "0.46735215", "0.46731776", "0.46704462", "0.46623105", "0.46602815", "0.46566063", "0.46525037", "0.46510178", "0.46479446", "0.4645957", "0.46363065", "0.46342257", "0.4633216", "0.46301612", "0.4629833", "0.46227866", "0.46197957", "0.46195686", "0.46147886", "0.4596461", "0.45947424", "0.45920953", "0.45907256", "0.45838487", "0.45817304", "0.45780307", "0.45773458", "0.45768374", "0.45524704", "0.4544569", "0.4543696", "0.45388293", "0.4537905", "0.45364046", "0.45354217", "0.45347175", "0.45286852", "0.45267773" ]
0.7378149
0
Updates the status of all the stateful buttons.
private void updateStatus() { if (bold != null) { bold.setDown(basic.isBold()); } if (italic != null) { italic.setDown(basic.isItalic()); } if (underline != null) { underline.setDown(basic.isUnderlined()); } if (subscript != null) { subscript.setDown(basic.isSubscript()); } if (superscript != null) { superscript.setDown(basic.isSuperscript()); } if (strikethrough != null) { strikethrough.setDown(extended.isStrikethrough()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateAllButtons(){\n updateStartButton();\n updateResetButton();\n }", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }", "private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}", "private void m125717l() {\n mo69207a(this.f88312j, (StateListener) null);\n for (StatefulButton statefulButton : this.f90232y) {\n statefulButton.updateStatus(FollowStatusUtils.m82614a(this.f90217G.mo110110f()), false);\n }\n }", "private void updateButtons() {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t botones[rowId1][columnId1].toggleOnOff();\n\t\t\t botones[rowId1][columnId1].setEnabled(true);\n\t\t\t \n\t\t\t botones[rowId2][columnId2].toggleOnOff();\n\t\t\t botones[rowId2][columnId2].setEnabled(true);\n\t\t\t \n\t\t\t setEnabled(true);\n\t\t\t \n\t\t timerPush.stop();\n\t\t }\n\t\t });\n\t }", "private void updateButtonStateEpson(boolean state) {\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "protected void updateButtons() {\n int currentIndex = tabbedPane.getSelectedIndex();\n if( currentIndex == 0) {\n backButton.setEnabled(false);\n forwardButton.setText(\"weiter\");\n }\n if(currentIndex > 0) {\n backButton.setEnabled(true);\n forwardButton.setText(\"weiter\");\n }\n \n if(currentIndex == 6) {\n forwardButton.setText(\"würfeln\");\n }\n \n }", "private void updateButtons() {\n\t\tif(buttonCount>1){\n\t\t\tremoveTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\tremoveTableButton.setEnabled(false);\n\t\t}\n\t\tif(buttonCount<tablesX.length){\n\t\t\taddTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\taddTableButton.setEnabled(false);\n\t\t}\n\t}", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "public void buttonChangeStatus(ActionEvent actionEvent) {\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 }", "private void updateButtonsState(boolean requestingLocationUpdates) {\n Log.d(TAG, \"updateButtonsState\");\n if (requestingLocationUpdates) {\n //mRequestUpdatesButton.setEnabled(false);\n //mRemoveUpdatesButton.setEnabled(true);\n } else {\n //mRequestUpdatesButton.setEnabled(true);\n //mRemoveUpdatesButton.setEnabled(false);\n }\n }", "private void updateButtons() {\n\t\tsetTitle(\"Insert \" + title + \"\\t\\tPage \" + pagenum + \"/\" + MAX_PAGE);\n\t\t// update button labels\n\t\tint symbx = pageoffset;\n\t\tint stop = symbx + 9;\n\t\tint nomore = stop;\n\t\tint symsize = getSymbolSize();\n\t\tif (nomore >= symsize - 1) {\n\t\t\tnomore = symsize - 1;\n\t\t}\n\t\tfor (int buttx = 0; symbx <= stop; symbx++) {\n\t\t\t// Log.d(\"SymbolDialog - updateButtons\", \"buttx: \" + buttx +\n\t\t\t// \" symbx: \" + symbx);\n\t\t\tif (symbx > nomore) {\n\t\t\t\t((TextView) mainview.findViewById(buttons[buttx])).setText(\"\");\n\t\t\t} else {\n\t\t\t\t((TextView) mainview.findViewById(buttons[buttx]))\n\t\t\t\t\t\t.setText(String.valueOf(getSymbol(symbx)));\n\t\t\t}\n\t\t\tbuttx++;\n\t\t}\n\t}", "private void updateTileButtons() {\n Board board = boardManager.getBoard();\n int nextPos = 0;\n for (Button b : tileButtons) {\n int row = nextPos / Board.NUM_ROWS;\n int col = nextPos % Board.NUM_COLS;\n if (bitmapList == null) {\n b.setBackgroundResource(board.getTile(row, col).getBackground());\n } else if (board.getTile(row, col).getId() != Board.NUM_COLS * Board.NUM_ROWS) {\n BitmapDrawable d = new BitmapDrawable(getResources(), bitmapList.get(board.getTile(row, col).getId()));\n b.setBackground(d);\n } else {\n b.setBackgroundResource(R.drawable.tile_grey);\n }\n nextPos++;\n }\n }", "public void stateChanged() {\r\n if (nextBigStepButton != null) {\r\n nextBigStepButton.setEnabled(!automata.isAtEnd());\r\n }\r\n if (prevBigStepButton != null) {\r\n prevBigStepButton.setEnabled(!automata.isAtStart());\r\n }\r\n\r\n nextStepButton.setEnabled(!automata.isAtEnd());\r\n prevStepButton.setEnabled(!automata.isAtStart());\r\n restartButton.setEnabled(!automata.isAtStart());\r\n\r\n autoButton.setState(controller.getExecutionMode());\r\n autoButton.setEnabled(!automata.isAtEnd());\r\n }", "void switchButtons(Button currentButton){\n\n Button emptyButton = btns.get(zeroIndex);\n emptyButton.setLabel(currentButton.getLabel());\n currentButton.setLabel(\"\" + 0);\n emptyButton.setVisible(true);\n currentButton.setVisible(false);\n\n if (Integer.parseInt(btns.get(zeroIndex).getLabel()) == zeroIndex + 1){\n btnsStates.set(zeroIndex, true);\n } else {\n btnsStates.set(zeroIndex, false);\n }\n btnsStates.set(btns.indexOf(currentButton), true);\n zeroIndex = findZero();\n }", "public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setButtonsEnabledState() {\n if (mRequestingLocationUpdates) {\n mStartUpdatesButton.setEnabled(false);\n mStopUpdatesButton.setEnabled(true);\n } else {\n mStartUpdatesButton.setEnabled(true);\n mStopUpdatesButton.setEnabled(false);\n }\n }", "void setNotificationButtonState(Boolean isNotifyEnabled,Boolean isUpdateEnabled,Boolean isCancelEnabled) {\n button_notify.setEnabled(isNotifyEnabled);\n button_update.setEnabled(isUpdateEnabled);\n button_cancel.setEnabled(isCancelEnabled);\n }", "private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }", "private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }", "public void updateButtons(int index) {\n\t\tbuttons.get(index).setText(upgrades.get(index).toString());\n\t}", "void updateCommonToggleStatus(boolean shown);", "@FXML public void handleToggleButtons() {\n\t\t\n\t\t// binarySplitButton\n\t\tif (binarySplitButton.isSelected()) {\n\t\t\tbinarySplitButton.setText(\"True\");\n\t\t} else {\n\t\t\tbinarySplitButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// collapseTreeButton\n\t\tif (collapseTreeButton.isSelected()) {\n\t\t\tcollapseTreeButton.setText(\"True\");\n\t\t} else {\n\t\t\tcollapseTreeButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// debugButton\n\t\tif (debugButton.isSelected()) {\n\t\t\tdebugButton.setText(\"True\");\n\t\t} else {\n\t\t\tdebugButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotCheckCapabilitiesButton\n\t\tif (doNotCheckCapabilitiesButton.isSelected()) {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotMakeSplitPAVButton\n\t\tif (doNotMakeSplitPAVButton.isSelected()) {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// reduceErrorPruningButton\n\t\tif (reduceErrorPruningButton.isSelected()) {\n\t\t\treduceErrorPruningButton.setText(\"True\");\n\t\t} else {\n\t\t\treduceErrorPruningButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// saveInstanceDataButton\n\t\tif (saveInstanceDataButton.isSelected()) {\n\t\t\tsaveInstanceDataButton.setText(\"True\");\n\t\t} else {\n\t\t\tsaveInstanceDataButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// subTreeRaisingButton\n\t\tif (subTreeRaisingButton.isSelected()) {\n\t\t\tsubTreeRaisingButton.setText(\"True\");\n\t\t} else {\n\t\t\tsubTreeRaisingButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// unprunedButton\n\t\tif (unprunedButton.isSelected()) {\n\t\t\tunprunedButton.setText(\"True\");\n\t\t} else {\n\t\t\tunprunedButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useLaplaceButton\n\t\tif (useLaplaceButton.isSelected()) {\n\t\t\tuseLaplaceButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseLaplaceButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useMDLcorrectionButton\n\t\tif (useMDLcorrectionButton.isSelected()) {\n\t\t\tuseMDLcorrectionButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseMDLcorrectionButton.setText(\"False\");\n\t\t}\n\t\t\n\t}", "private void updateUI() {\n updateTrackDetails();\n //Disable Prev or Next or both button based on the current Index and number of tracks available\n if (mPlayingIndex == 0) {\n mPlayPrevBtn.setClickable(false);\n }\n if (mPlayingIndex == mTracks.size() - 1) {\n mPlayNextBtn.setClickable(false);\n }\n if (mPlayingIndex > 0 && mPlayingIndex < mTracks.size() - 1) {\n mPlayNextBtn.setClickable(true);\n mPlayPrevBtn.setClickable(true);\n }\n }", "public void updateButtonVisibility() {\n mLocationBarMediator.updateButtonVisibility();\n }", "public void setStatus(int status){\n Log.d(TAG, \"-- SET STATUS --\");\n switch(status){\n //connecting to remote device\n case BluetoothClientService.STATE_CONNECTING:{\n Toast.makeText(this, \"Connecting to remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connecting_button);\n break;\n }\n //not connected\n case BluetoothClientService.STATE_NONE:{\n Toast.makeText(this, \"Unable to connect to remote device\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.disconnect_button);\n statusButton.setTextOff(getString(R.string.disconnected));\n statusButton.setChecked(false);\n break;\n }\n //established connection to remote device\n case BluetoothClientService.STATE_CONNECTED:{\n Toast.makeText(this, \"Connection established with remote bluetooth device...\", Toast.LENGTH_SHORT).show();\n ToggleButton statusButton = (ToggleButton) this.findViewById(R.id.status_button);\n statusButton.setBackgroundResource(R.drawable.connect_button);\n statusButton.setTextOff(getString(R.string.connected));\n statusButton.setChecked(true);\n //start motion monitor\n motionMonitor = new MotionMonitor(this, mHandler);\n motionMonitor.start();\n break;\n }\n }\n }", "public void statusUpdate(final AudioHandler handler, final int status) {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n btnPlay.setEnabled(handler.hasData() &&\r\n (status == AudioHandler.PLAYING || status == AudioHandler.PAUSED ||\r\n status == AudioHandler.STOPPED || status == AudioHandler.CLOSED));\r\n if (status == AudioHandler.PLAYING) {\r\n ((NanoButtonUI) btnPlay.getUI()).setIconType(NanoButtonUI.PAUSE);\r\n btnPlay.setToolTipText(bundle.getString(\"TOOLTIP_PLAY_PAUSE_BUTTON\"));\r\n }\r\n else {\r\n ((NanoButtonUI) btnPlay.getUI()).setIconType(NanoButtonUI.PLAY);\r\n btnPlay.setToolTipText(bundle.getString(\"TOOLTIP_PLAY_BUTTON\"));\r\n }\r\n btnPlay.repaint();\r\n btnRecord.setEnabled(status == AudioHandler.RECORDING || status == AudioHandler.PAUSED_RECORD ||\r\n status == AudioHandler.STOPPED || status == AudioHandler.CLOSED);\r\n if (status == AudioHandler.RECORDING) {\r\n ((NanoButtonUI) btnRecord.getUI()).setIconType(NanoButtonUI.PAUSE);\r\n btnRecord.setToolTipText(bundle.getString(\"TOOLTIP_RECORD_PAUSE_BUTTON\"));\r\n }\r\n else {\r\n ((NanoButtonUI) btnRecord.getUI()).setIconType(NanoButtonUI.RECORD);\r\n btnRecord.setToolTipText(bundle.getString(\"TOOLTIP_RECORD_BUTTON\"));\r\n }\r\n btnRecord.repaint();\r\n btnStop.setEnabled(status == AudioHandler.PLAYING || status == AudioHandler.RECORDING ||\r\n status == AudioHandler.PAUSED || status == AudioHandler.PAUSED_RECORD);\r\n btnSave.setEnabled(handler.hasData() && (status == AudioHandler.STOPPED || status == AudioHandler.CLOSED));\r\n slrTime.setEnabled(handler.hasData() && status != AudioHandler.RECORDING && status != AudioHandler.PAUSED_RECORD);\r\n }\r\n });\r\n }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "private void clearAllButtonStates() {\n for (int i = 1; i <= 10; i++) {\n xbox.getRawButtonPressed(i);\n }\n\n for (int i = 1; i <= 12; i++) {\n joystick.getRawButtonPressed(i);\n }\n }", "private void refresh() {\n System.out.println(\"refresh is called\");\n currentStory=storyManager.getStory(user.getCurrentStoryNode());\n resources=resourceManager.getResources();\n storyText.setText(currentStory.getText());\n // Set button texts, add foreground locks for options without conditions met\n for (int i=0; i<currentStory.getStoryPaths().size(); i++) {\n StoryPaths storyPath=currentStory.getStoryPaths().get(i);\n Resource resourceNeeded=storyPath.getResourceNeeded();\n if (resourceNeeded!=null) {\n int amountNeeded=storyPath.getAmountNeeded();\n if (resourceNeeded.getDepletable()) {\n buttons[i].setText(storyPath.getOptionText() + \" (Consume \" + amountNeeded + \" \" + resourceNeeded.getName() + \")\");\n } else {\n buttons[i].setText(storyPath.getOptionText() + \" (Require \" +resourceNeeded.getName() + \")\");\n }\n if (resourceNeeded.getStock() < amountNeeded) {\n buttons[i].setForeground(getDrawable(R.drawable.button_box_lock_sample));\n } else {\n buttons[i].setForeground(null);\n }\n } else {\n buttons[i].setText(storyPath.getOptionText());\n buttons[i].setForeground(null);\n }\n buttons[i].setVisibility(View.VISIBLE);\n updateResourceText();\n }\n // Make the other buttons disappear\n for (int i=currentStory.getStoryPaths().size(); i<5; i++) {\n buttons[i].setVisibility(View.GONE);\n }\n }", "public void updateState();", "@FXML\r\n\tprivate void updateStatus(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.STATUS);\r\n\t}", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }", "public void updateButton(boolean done) {\n\t\tdiceBtn.setDisable(done);\n\t\tendTurn.setDisable(!done);\n\t}", "private void dealWithState(FindPairLogic.State state) {\n buttons[state.getI()][state.getJ()].setText(Integer.toString(state.getN()));\n buttons[state.getI()][state.getJ()].setDisable(true);\n if (state.hasResult()) {\n if (!state.isSuccess()) {\n isGameEnable.set(false);\n threadPool.schedule(() -> Platform.runLater(() -> {\n buttons[state.getI()][state.getJ()].setText(\"\");\n buttons[state.getI()][state.getJ()].setDisable(false);\n buttons[state.getPreviousI()][state.getPreviousJ()].setText(\"\");\n buttons[state.getPreviousI()][state.getPreviousJ()].setDisable(false);\n isGameEnable.set(true);\n }), 1, TimeUnit.SECONDS);\n }\n }\n if (state.isEndGame()) {\n endGame();\n }\n }", "private void updateButtonBounds(){\n\t\tactionButton.setVisible(true);\n\t\tactionButton.setToolTipText(toolTips[boundIndex]);\n\t\tactionButton.setBounds(buttonBounds[boundIndex]);\n\t\texitButton.setBounds(exitBounds);\n\t}", "private void resetActionButtonsState()\n {\n // Actions\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // First player reset state\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, false);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, false);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, false);\n }\n\n // Second player reset state\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, true);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, true);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, true);\n }\n }", "public void updateUiState() {\n if (meetingJoined) {\n this.joinMeetingButton.setText(R.string.leave_meeting);\n } else {\n this.joinMeetingButton.setText(R.string.join_meeting);\n }\n }", "private void initButtonStates() {\n//\t\tString provMethod = ProvisioningActivator.getProvisioningService().getProvisioningMethod();\n//\t\tboolean isProvEnabled = (provMethod != null && provMethod.length() > 0 && !provMethod.equals(\"NONE\"));\n//\n//\t\tenableCheckBox.setSelected(isProvEnabled);\n//\n//\t\tif (isProvEnabled) {\n//\t\t\tif (provMethod.equals(\"DHCP\"))\n//\t\t\t\tdhcpButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"DNS\"))\n//\t\t\t\tdnsButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"Bonjour\"))\n//\t\t\t\tbonjourButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"Manual\")) {\n//\t\t\t\tmanualButton.setSelected(true);\n//\n//\t\t\t\tString uri = ProvisioningActivator.getProvisioningService().getProvisioningUri();\n//\t\t\t\tif (uri != null)\n//\t\t\t\t\turiField.setText(uri);\n//\t\t\t}\n//\t\t}\n//\n//\t\tdhcpButton.setEnabled(isProvEnabled);\n//\t\tmanualButton.setEnabled(isProvEnabled);\n//\t\turiField.setEnabled(manualButton.isSelected());\n//\t\tbonjourButton.setEnabled(isProvEnabled);\n//\t\tdnsButton.setEnabled(false);\n//\n//\t\t// creadentials\n//\t\tforgetPasswordButton.setEnabled(isProvEnabled);\n//\t\tusernameField.setText(ProvisioningActivator.getConfigurationService().getString(ProvisioningServiceImpl.PROPERTY_PROVISIONING_USERNAME));\n//\n//\t\tif (ProvisioningActivator.getCredentialsStorageService().isStoredEncrypted(ProvisioningServiceImpl.PROPERTY_PROVISIONING_PASSWORD)) {\n//\t\t\tpasswordField.setText(ProvisioningActivator.getCredentialsStorageService().loadPassword(ProvisioningServiceImpl.PROPERTY_PROVISIONING_PASSWORD));\n//\t\t}\n\t}", "private void updateBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMousePressed\n updateBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "private void updateFavoriteButtons() {\n new AsyncTask<Void, Void, Boolean>() {\n\n @Override\n protected Boolean doInBackground(Void... params) {\n return isFavorite();\n }\n\n @Override\n protected void onPostExecute(Boolean isFavorite) {\n if (isFavorite) {\n mButtonRemoveFavorites.setVisibility(View.VISIBLE);\n mButtonMarkAsFavorite.setVisibility(View.GONE);\n } else {\n mButtonMarkAsFavorite.setVisibility(View.VISIBLE);\n mButtonRemoveFavorites.setVisibility(View.GONE);\n }\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n\n mButtonMarkAsFavorite.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n markAsFavorite();\n }\n });\n\n mButtonRemoveFavorites.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n removeFromFavorites();\n }\n });\n }", "public void changeButtonClickable(boolean status){\n for (int i=0; i<rowNumber; ++i){\n for (int j =0; j<colNumber; ++j){\n buttons[i][j].setClickable(status);\n }\n }\n }", "public void updateActionState()\n\t{\n\t\tboolean enabled = ConcernReCS.getDefault().isDirty(); //Indicates if the view content has changed\n\t\t\n//\t\tsaveaction.setEnabled(enabled);\n\n\t\tgetViewSite().getActionBars().updateActionBars();\n\t}", "private void checkButton(ActionEvent e) {\n List<PuzzleButton> selectedButtons = buttons.stream()\n .filter(PuzzleButton::isSelectedButton)\n .collect(Collectors.toList());\n PuzzleButton currentButton = (PuzzleButton) e.getSource();// getting current button\n currentButton.setSelectedButton(true);\n int currentButtonIndex = buttons.indexOf(currentButton);\n //if no button are selected, do not update collection of PuzzleButton\n if (selectedButtons.size() == 1) {\n int lastClickedButtonIndex = 0;\n\n for (PuzzleButton button : buttons) {\n if (button.isSelectedButton() && !button.equals(currentButton)) {\n lastClickedButtonIndex = buttons.indexOf(button);\n }\n }\n Collections.swap(buttons, lastClickedButtonIndex, currentButtonIndex);\n updateButtons();\n }\n }", "public void modifyButtons(int i)\n\t{\n\t\t{\n\t\t\tif (colorList.get(i) == 0)\n\t\t\t{\n\t\t\t\tbuttonList.get(i).setBackground(RED);\n\t\t\t\tredLeft--;\n\t\t\t\tredRemaining.setText(\"Red: \" + redLeft);\n\t\t\t}\n\t\t\telse if (colorList.get(i) == 1)\n\t\t\t{\n\t\t\t\tbuttonList.get(i).setBackground(BLUE);\n\t\t\t\tblueLeft--;\n\t\t\t\tblueRemaining.setText(\"Blue: \" + blueLeft);\n\t\t\t}\n\t\t\telse if (colorList.get(i) == 2)\n\t\t\t{\n\t\t\t\tbuttonList.get(i).setBackground(YELLOW);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuttonList.get(i).setBackground(Color.black);\n\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You lose!\");\n\t\t\t}\n\t\t\tbuttonList.get(i).setForeground(Color.white);\n\t\t}\n\t}", "public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}", "private void setButtonsEnabledState() {\n if (mBroadcastingLocation) {\n mStartButton.setEnabled(false);\n mStopButton.setEnabled(true);\n } else {\n mStartButton.setEnabled(true);\n mStopButton.setEnabled(false);\n }\n }", "public static void updateActiveCheck(boolean success) {\n \n if(success) {\n \n \n /*System.out.println(\"YES\" + x);\n ACTIVE_ICON.setIcon(ICON_ACTIVE);// = new ImageIcon(\"/images/Start_ACTIVE.png\"););\n ACTIVE_ICON.setVisible(true);\n INACTIVE_ICON.setVisible(false);*/\n updateChecker.updateActiveCheck(true);\n x = true;\n viewStudentsButton.setVisible(true);\n \n }\n else if(!success) {\n /*\n System.out.println(\"NO\" + x);\n ACTIVE_ICON.setIcon(y);\n ACTIVE_ICON.setVisible(false);\n INACTIVE_ICON.setVisible(true);*/\n x = false;\n updateChecker.updateActiveCheck(false);\n viewStudentsButton.setVisible(false);\n\n }\n }", "private void updateControlButtonStatus(boolean isNetworkConnected) {\n\t\tif (isNetworkConnected) {\r\n\t\t\t// if (mPlayShareButton.getVisibility() == View.VISIBLE) {\r\n\t\t\t// mPlayShareButton.requestFocus();\r\n\t\t\t//\r\n\t\t\t// } else {\r\n\t\t\t// mPlayerStartButton.requestFocus();\r\n\t\t\t// }\r\n\t\t\t// if (mVideoContrl != null && !mVideoContrl.isVOD()) {\r\n\t\t\t// mPlayerSaveButton.setEnabled(false);\r\n\t\t\t// mPlayerSaveButton.setFocusable(false);\r\n\t\t\t// }\r\n\t\t}\r\n\r\n\t\t// mPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setFocusable(isNetworkConnected);\r\n\t}", "@Override\n\tprotected void loadButtons() {\n\t\tList<Button> buttons = new ArrayList<>();\n\t\tfinal int square_size = 100;\n\t\tfinal int seperator_size = 20;\n\t\tfinal int numButtons = 2;\n\t\tint y = (getHeight() - 100) / 2;\n\t\tint x = (getWidth() - (square_size * numButtons) - (seperator_size * (numButtons - 1))) / 2;\n\t\tint sep = square_size + seperator_size;\n\t\t// Paint button.\n\t\ttry {\n\t\t\tbuttons.add(new Button(getImage(IconHandler.path_paint), \"Toggle paint\", x, y,\n\t\t\t\t\tsquare_size, square_size, new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tsetUsingTextures(!isUsingTextures());\n\t\t\t\t\t\t\trepaint();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t\tbuttons.add(new Button(getImage(IconHandler.path_fullscreen), \"Toggle full-screen\", x + sep, y,\n\t\t\t\t\tsquare_size, square_size, new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tgetFrame().toggleArrangeSide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsetButtons(buttons);\n\t}", "private void initializeShowBtns()\r\n {\r\n showNxtMvBtn = new JButton(\"SHOW NEXT MOVE\");\r\n showNxtMvBtn.setEnabled(false);\r\n showAllMoves = new JButton(\"SHOW ALL MOVES\");\r\n showAllMoves.setEnabled(false);\r\n showNxtMvBtn.addActionListener(new ActionListener()\r\n {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae)\r\n {\r\n if (canvas != null)\r\n {\r\n canvas.setCurrentState((State) problem.getNextMove());\r\n canvas.render();\r\n } else\r\n {\r\n stateLabel.setText(problem.getNextMove().toString());\r\n }\r\n if (problem.solnSetEmpty())\r\n {\r\n\r\n showNxtMvBtn.setEnabled(false);\r\n showAllMoves.setEnabled(false);\r\n }\r\n }\r\n });\r\n\r\n showAllMoves.addActionListener(new ActionListener()\r\n {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e)\r\n {\r\n showNxtMvBtn.setEnabled(false);\r\n showAllMoves.setEnabled(false);\r\n movesTimer.start();\r\n }\r\n }\r\n );\r\n }", "private void allBtnActionPerformed(ActionEvent evt) {\n }", "void updateControllersStatus(boolean enabled);", "public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}", "public void update()\n {\n for (Container container : containers)\n container.update(false);\n\n Gui.update(BanksGUI.class);\n Gui.update(BankGUI.class);\n Gui.update(ItemsGroupsGUI.class);\n }", "protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}", "public void updateUI() {\n\t setUI( LinkButtonUI.createUI( this));\n\t}", "@Override\r\n\tpublic void drawUpdateableElements(Graphics g, ImageObserver observer) {\n\t\tfor (int i = 0; i < buttons.length; i++) {\r\n\t\t\tbuttons[i].drawUpdateableElements(g, observer);\r\n\t\t}\r\n\t\t\r\n\t\t// draw selected screen updateable\r\n\t\tthis.screens[this.selectedIndex].drawUpdateableElements(g, observer);\r\n\t}", "public void updateUI(){}", "public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}", "void setAllApplyButtons() {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n dvi.setAllApplyButtons();\n }\n setApplyButtons(null, getParametersFromXML());\n }", "@Override\n\tpublic void setStates(){\n\t\tleftButton.visible = booklet.pageNumber > 0;\n\t\trightButton.visible = booklet.pageNumber + 1 < totalPages;\n\t\t\n\t\t//Check the mouse to see if it updated and we need to change pages.\n\t\tint wheelMovement = InterfaceInput.getTrackedMouseWheel();\n\t\tif(wheelMovement < 0 && rightButton.visible){\n\t\t\t++booklet.pageNumber;\n\t\t}else if(wheelMovement > 0 && leftButton.visible){\n\t\t\t--booklet.pageNumber;\n\t\t}\n\t\t\n\t\t//Set the visible labels based on the current page.\n\t\tfor(int i=0; i<pageTextLabels.size(); ++ i){\n\t\t\tfor(GUIComponentLabel label : pageTextLabels.get(i)){\n\t\t\t\tlabel.visible = booklet.pageNumber == i;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the TOC buttons visible if we're on the TOC page.\n\t\tfor(GUIComponentButton button : contentsButtons){\n\t\t\tbutton.visible = booklet.pageNumber == 1 && !booklet.definition.booklet.disableTOC;\n\t\t}\n\t\t\n\t\t//Set the TOC button to be visible on other pages.\n\t\tif(contentsButton != null){\n\t\t\tcontentsButton.visible = booklet.pageNumber > 1;\n\t\t}\n\t}", "private void updateState() {\n \t\tfor (Map.Entry<FunctionParameter, Pair<Text, Button>> entry : inputFields.entries())\n \t\t\tif (entry.getKey().getValidator() != null\n \t\t\t\t\t&& entry.getKey().getValidator().validate(entry.getValue().getFirst().getText()) != null) {\n \t\t\t\tsetPageComplete(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\tsetPageComplete(true);\n \t}", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button identifyButton = (Button) findViewById(R.id.identify);\n identifyButton.setEnabled(isEnabled);\n\n }", "@Override\n protected void incrementStates() {\n\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "private void refresh(int width, int height) {\n Integer numUnexposed = mainField.numUnexposed();\n nonminesLabel.setText(numUnexposed.toString());\n Integer numMarked = mainField.numMarked();\n if (numMarked < 0) {\n cellsUnmarked.setText(\"Too Many Marked!\");\n }\n else {\n cellsUnmarked.setText(numMarked.toString());\n }\n // iterate through all the buttons and update the text if it's an exposed cell\n for (int i = 0;i < width;i++) {\n for (int j = 0;j < height;j++) {\n int cellState = mainField.getCellState(i,j);\n if (cellState == mainField.EXPOSED) {\n Integer numValue = mainField.getValue(i,j);\n if (numValue == -1) {\n btArray[i][j].setText(\"B\");\n btArray[i][j].setStyle(\"-fx-background-color: #FF0000;\");\n }\n else if (numValue == 0) {\n btArray[i][j].setStyle(\"-fx-background-color: #CCCCCC;\");\n }\n else {\n btArray[i][j].setText(numValue.toString());\n btArray[i][j].setStyle(\"-fx-background-color: #CCCCCC;\");\n }\n }\n }\n }\n }", "private void updateBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateBtnMouseReleased\n updateBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}", "protected void resetSideButtons(){\n mFightButton.setText(\"FIGHT\");\n mPokemonButton.setText(\"POKEMON\");\n mBagButton.setText(\"BAG\");\n mRunButton.setText(\"RUN\");\n mFightButton.setBackgroundColor(PokemonApp.FIGHT_COLOR);\n mPokemonButton.setBackgroundColor(PokemonApp.POKEMON_COLOR);\n mBagButton.setBackgroundColor(PokemonApp.BAG_COLOR);\n mRunButton.setBackgroundColor(PokemonApp.RUN_COLOR);\n }", "void setStatus(int status);", "public void setStatus(boolean newStatus);", "protected void setCurrentState(State newState) {\n\n if (currentState == newState) {\n return;\n }\n\n currentState = checkNotNull(newState);\n\n display.setNewButtonEnabled(currentState.isNewButtonEnabled());\n display.setOpenButtonEnabled(currentState.isOpenButtonEnabled());\n display.setSaveButtonEnabled(currentState.isSaveButtonEnabled());\n display.setCopyButtonEnabled(currentState.isCopyButtonEnabled());\n display.setVersionsButtonEnabled(currentState.isVersionsButtonEnabled());\n display.setDeleteButtonEnabled(currentState.isDeleteButtonEnabled());\n display.setShareButtonEnabled(currentState.isShareButtonEnabled());\n display.setUndoButtonEnabled(currentState.isUndoButtonEnabled());\n display.setRedoButtonEnabled(currentState.isRedoButtonEnabled());\n display.setPrintButtonEnabled(currentState.isPrintButtonEnabled());\n display.setSimulateButtonEnabled(currentState.isSimulateButtonEnabled());\n display.setSimulateButtonDown(currentState.isSimulateButtonDown());\n\n display.setSchematicPanelEditable(currentState.isSchematicPanelEditable());\n\n display.clearPrintSettingsList();\n if (currentState.getPrintSettingsList() != null) {\n for (DownloadFormat item : currentState.getPrintSettingsList()) {\n display.addToPrintSettingsList(item.getExtension(), item);\n }\n }\n\n display.hideDialogs();\n if (currentState.isFileChooserVisible()) {\n display.clearFileList();\n if (currentState.getFileChooserList() != null) {\n for (Map.Entry<VersionMetadata, Optional<Image>> item : currentState.getFileChooserList().entrySet()) {\n display.addToFileList(item.getKey(), item.getValue().orNull());\n }\n }\n display.showFileChooserPanel();\n } else if (currentState.isVersionChooserVisible()) {\n display.clearVersionList();\n if (currentState.getVersionChooserList() != null) {\n for (VersionMetadata item : currentState.getVersionChooserList()) {\n display.addToVersionList(item);\n }\n }\n display.showVersionChooserPanel();\n } else if (currentState.isShareChooserVisible()) {\n display.showShareChooserPanel();\n display.setShareChooserFileVisibility(currentState.getShareChooserFileVisibility(),\n currentState.getShareChooserIsSimulate());\n }\n\n if (currentState.isDialogBackPaneVisible()) {\n display.showDialogBackPane();\n }\n\n if (currentState.doHidePanels()) {\n display.hidePanels();\n }\n if (currentState.isDevicePanelVisible()) {\n display.showDevicePanel();\n } else if (currentState.isGraphPanelVisible()) {\n display.showGraphPanel();\n }\n\n if (currentState.getURLState() != null) {\n currentState.getURLState().fire();\n }\n\n currentState.enter();\n }", "public void updateHistoryButtonState(ChatPanel chatPanel)\n {\n mainToolBar.changeHistoryButtonsState(chatPanel);\n }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n Button share = (Button) findViewById(R.id.share);\n Button loadImg1 = (Button) findViewById(R.id.loadImg1);\n Button loadImg2 = (Button) findViewById(R.id.loadImg2);\n\n showBaby.setEnabled(isEnabled);\n share.setEnabled(isEnabled);\n loadImg1.setEnabled(isEnabled);\n loadImg2.setEnabled(isEnabled);\n }", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "private void updateTabButtons() {\n\t\tif (currentTab == null || currentTab.equals(\"history\")) {\n\t\t\thistory.setDisable(true);\n\t\t\tlanguage.setDisable(false);\n\t\t} else if (currentTab == null || currentTab.equals(\"language\")) {\n\t\t\tlanguage.setDisable(true);\n\t\t\thistory.setDisable(false);\n\t\t}\n\t}", "public void updateEnabled() {\r\t\tfor (MenuHeader header : this.getMenuHeaders()) {\r\t\t\theader.updateState();\r\t\t}\r\t}", "public void refreshGames() throws SQLException\n {\n for(Button btn : buttons)\n {\n pane.getChildren().remove(btn);\n \n }\n //remove btns form th vector\n buttons.removeAllElements(); \n db=new DB();\n games=db.getAllRecords();\n// games=db.getAllRecords();\n System.out.println(games.size());\n int size=db.getAllRecords().size();\n for(int i=0;i<size;i++)\n {\n buttons.add(new Button(games.elementAt(i).getName()));\n }\n pane.setMinHeight(pane.getHeight()+650);\n boolean color=true;\n float y=115.0f;\n for(Button btn : buttons )\n {\n pane.setLeftAnchor(btn, 256.0);\n pane.setRightAnchor(btn, 268.0);\n btn.setLayoutX(256.0);\n btn.setLayoutY(y+=65);\n btn.setMnemonicParsing(false);\n btn.setPrefHeight(44.0);\n btn.setPrefWidth(266.0);\n if(color)\n {\n btn.getStyleClass().add(\"button2\");\n color=false;\n }\n else\n \n {\n btn.getStyleClass().add(\"button1\");\n color=true;\n\n }\n \n pane.getChildren().add(btn);\n \n \n }\n }", "public void stateChanged(ChangeEvent e) \n\t{\n\t\t//if user has changed clicked the next month, redraw all the buttons\n\t\tif (cModel.hasUpdated()) \n\t\t{\n\t\t\t//find and update the new amount of days in the month\n\t\t\tmonthMaxDays = cModel.getMonthMaxDays();\n\t\t\t\n\t\t\t//erase buttons from panel\n\t\t\tnumberPanel.removeAll();\n\t\t\t\n\t\t\t//delete all the buttons from the array\n\t\t\tbuttonArray.clear();\n\t\t\t\n\t\t\t//erase the date since none is selected\n\t\t\teraseDateLabel();\n\t\t\t\n\t\t\t//update the label for the month/year\n\t\t\tmonthYearLabel.setText(monthArray[cModel.getCalMonth()] + \" \" + cModel.getCalYear());\n\t\t\t\n\t\t\t//make the new number buttons\t\t\t\n\t\t\tmakeDayButtons();\n\t\t\t\n\t\t\t//put in the empty buttons\n\t\t\tfor (int i = 1; i < cModel.findDayOfWeek(1); i++) \n\t\t\t{\n\t\t\t\tJButton emptyButton = new JButton();\n\t\t\t\t\n\t\t\t\t//these buttons will not work\n\t\t\t\temptyButton.setEnabled(false);\n\t\t\t\tnumberPanel.add(emptyButton); //add to panel\n\t\t\t}\n\t\t\t\n\t\t\t//add each button from ArrayList to the panel\n\t\t\tfor (JButton day : buttonArray) \n\t\t\t{\n\t\t\t\tnumberPanel.add(day);\n\t\t\t}\n\t\t\t\n\t\t\t//highlightEvents();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//no bordered button\n\t\t\tbordered = -1;\n\t\t\t\n\t\t\tcModel.unupdated();\n\t\t\tframe.pack();\n\t\t\tframe.repaint();\n\t\t} \n\t\telse \n\t\t{\n\t\t\twriteEvents(cModel.getSelectedDate());\n\t\t\tchangeDateLabel(cModel.getSelectedDate());\n\t\t\tborderSelected(cModel.getSelectedDate() - 1);\n\t\t}\n\t}", "public void postPeriodic() {\n for (Button button : Button.values()) {\n int id = button.getId();\n boolean pressed = joystick.getRawButton(id);\n buttonsPressed.put(id, pressed);\n SmartDashboard.putBoolean(\"vars2/controllers/port_\" + joystick.getPort() + \"/buttons/\" + button, pressed);\n }\n }", "private void setNewStatusIfNeeded() {\n \t\tfor(FileDiffDirectory dir : directories ) {\n \t\t\tif (dir.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(FileDiffFile file : files ) {\n \t\t\tif (file.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "@FXML\n\tpublic void buttonUpdateOrderState(ActionEvent event) {\n\t\tboolean exit = false;\n\t\tState state = choiceState.getValue();\n\t\tSystemUser user = restaurant.returnUser(txtSystemUserUsername.getText());\n\t\ttry {\n\t\t\tfor (int i = 0; i < user.getOrders().size() && !exit; i++) {\n\t\t\t\tif (user.getOrders().get(i).getCode().equals(labelOrderCode.getText())) {\n\t\t\t\t\tuser.getOrders().get(i).setState(state);\n\t\t\t\t\texit = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tuser.saveUsersOrdersData(user.getName());\n\t\t\tFXMLLoader ordersList = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\tordersList.setController(this);\n\t\t\tParent root = ordersList.load();\n\t\t\tmainPaneLogin.getChildren().setAll(root);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}", "void updateControls();", "public void setStatus(int status);", "public void setStatus(int status);", "private void setAllButton(int index) {\n if(buttons.get(index).isOpaque()) {\n buttons.get(index).setOpaque(false);\n } else {\n buttons.get(index).setOpaque(true);\n }\n }", "public void updateUi() {\n\t\t// // update the car color to reflect premium status or lack thereof\n\t\t// ((ImageView)findViewById(R.id.free_or_premium)).setImageResource(mIsPremium\n\t\t// ? R.drawable.premium : R.drawable.free);\n\t\t//\n\t\t// // \"Upgrade\" button is only visible if the user is not premium\n\t\t// findViewById(R.id.upgrade_button).setVisibility(mIsPremium ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // \"Get infinite gas\" button is only visible if the user is not\n\t\t// subscribed yet\n\t\t// findViewById(R.id.infinite_gas_button).setVisibility(mSubscribedToInfiniteGas\n\t\t// ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // update gas gauge to reflect tank status\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(R.drawable.gas_inf);\n\t\t// }\n\t\t// else {\n\t\t// int index = mTank >= TANK_RES_IDS.length ? TANK_RES_IDS.length - 1 :\n\t\t// mTank;\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(TANK_RES_IDS[index]);\n\t\t// }\n\t}", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void updateResetButton(){\n if (vertexImages.size() < 1){\n resetButton.setAlpha(0.5f);\n resetButton.setClickable(false);\n }\n else {\n resetButton.setAlpha(1f);\n resetButton.setClickable(true);\n }\n }" ]
[ "0.7586765", "0.7460184", "0.74270284", "0.71646196", "0.6920991", "0.68270415", "0.6761935", "0.6761037", "0.66177416", "0.65938556", "0.6529749", "0.6505233", "0.6504149", "0.6495481", "0.6481827", "0.62915367", "0.6278906", "0.6276099", "0.6265322", "0.6250165", "0.623289", "0.6228678", "0.61969143", "0.61792684", "0.61792636", "0.61763084", "0.6160775", "0.6143421", "0.603365", "0.6028398", "0.6019535", "0.6013302", "0.6009659", "0.60076946", "0.6001861", "0.59722453", "0.59567416", "0.5954767", "0.5912151", "0.5906437", "0.5901226", "0.588485", "0.58773583", "0.5876226", "0.5860605", "0.5854788", "0.58504736", "0.584534", "0.5813134", "0.58101016", "0.5802849", "0.5794765", "0.5788699", "0.57822305", "0.57807046", "0.57753384", "0.5771587", "0.5766294", "0.5763258", "0.57589513", "0.5753608", "0.5745486", "0.57390666", "0.57279074", "0.5723762", "0.57178015", "0.5702591", "0.56797147", "0.56733876", "0.5656329", "0.56521016", "0.56404173", "0.5629508", "0.56241184", "0.5611016", "0.5610855", "0.5608216", "0.56063426", "0.5598046", "0.55934715", "0.55754024", "0.557097", "0.55649525", "0.556461", "0.55628896", "0.5562565", "0.55505216", "0.5549441", "0.5549074", "0.55488265", "0.55480194", "0.5546686", "0.55441254", "0.5540558", "0.55379105", "0.55379105", "0.55370617", "0.553173", "0.55248535", "0.552451" ]
0.5908906
39
Creates new form SFormDocumentNumberSeries
public SFormDocumentNumberSeries(erp.client.SClientInterface client) { super(client.getFrame(), true); miClient = client; initComponents(); initComponentsExtra(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Series setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public SeriesInstance setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public Series setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "public void setDocumentNumber(java.lang.String newValue) {\n\tthis.documentNumber = newValue;\n}", "public SeriesInstance setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addNumberField(NumberField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "public PostingList(int df, int N)\n {\n documentFrequency = df;\n totalNoOfDocuments = N;\n }", "public void setDocumentNumber(java.lang.String newDocumentNumber) {\n\tdocumentNumber = newDocumentNumber;\n}", "stockFilePT102.StockDocument.Stock insertNewStock(int i);", "NumberValue createNumberValue();", "public Series(Collection<Integer> series)\n {\n readCollection(series);\n }", "public void newDocument();", "public ImagingStudy setNumberOfSeries(IntegerDt theValue) {\n\t\tmyNumberOfSeries = theValue;\n\t\treturn this;\n\t}", "public NGDSeriesBean() {\n\tif (debug)\n\t System.out.println(\"NGDSeriesBean.constructor\");\n\n //get the series id from the request parameters\n seriesId = FacesUtil.getRequestParamValue(\"seriesId\");\n \n //if series id not found in request, check for existence in session \n if(seriesId == null || seriesId.equals(\"\")) {\n seriesId = (String)FacesUtil.getSessionValue(\"seriesId\");\n }\n\n assembler = null;\n //if id parameter contains a valid string, execute code to query db\n if(seriesId != null && !seriesId.equals(\"\")) {\n //store series id in session\n \tFacesUtil.setSessionValue(\"seriesId\", seriesId);\n \t\tHashMap<String, Object> queryParams = new HashMap<String, Object>();\n \t\tqueryParams.put(\"seriesId\", seriesId);\n assembler = new NGDSeriesAssembler(queryParams);\n series = assembler.getSeriesMetaData();\n \n //if series data found build table of samples data\n if(series != null) {\n if (TableUtil.isTableViewInSession()) \n return;\n \n \t\tGenericTableView tableView = populateSeriesSamplesTableView(\"seriesSamples\");\n \t\tTableUtil.saveTableView(tableView);\n }\n }\n }", "public ImagingStudy setNumberOfSeries( int theInteger) {\n\t\tmyNumberOfSeries = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public void setNumerodocumentocarga( String numerodocumentocarga ) {\n this.numerodocumentocarga = numerodocumentocarga ;\n }", "public NumberedSAXReader() {\n\t\tsuper();\n\t\tthis.setDocumentFactory(new LocatorAwareDocumentFactory());\n\t}", "private JTextField buildDocumentPageNumbers() {\r\n final JTextField textField = new JTextField();\r\n textField.setInputVerifier(new PageNumberTextFieldInputVerifier());\r\n textField.addKeyListener(new PageNumberTextFieldKeyListener());\r\n textField.addFocusListener(new FocusAdapter() {\r\n public void focusLost(FocusEvent e) {\r\n Object src = e.getSource();\r\n if (src == null)\r\n return;\r\n if (src == textField) {\r\n String fieldValue = textField.getText();\r\n int currentValue = Integer.parseInt(fieldValue);\r\n int maxValue = controller.getDocument().getNumberOfPages();\r\n if (currentValue > maxValue)\r\n textField.setText(String.valueOf(maxValue));\r\n }\r\n }\r\n });\r\n // start off with page 1.\r\n textField.setText(\"1\");\r\n return textField;\r\n }", "private XYSeries createSeries() {\r\n return createSeries(0);\r\n }", "public Series()\n {\n super();\n }", "abstract public Document document(int n) throws IOException;", "stockFilePT102.StockDocument.Stock addNewStock();", "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}", "@Override\n void add()\n {\n long sensorId = Long.parseLong(textSensorId.getText());\n MissionNumber missionNumber = textMissionNumber.getValue();\n String jobOrderNumber = textJobOrderNumber.getText();\n \n FPS16SensorDataGenerator generator = new FPS16SensorDataGenerator(tspiConfigurator.getTspiGenerator(), sensorId, missionNumber, jobOrderNumber);\n controller.addSensorDataGenerator(getRate(), getChannel(), generator);\n }", "public void setDocumentNumber(java.lang.Integer documentNumber) {\n this.documentNumber = documentNumber;\n }", "@Override\n\tpublic void createccuntNum() {\n\t\t\n\t}", "protected Document createDefaultModel()\n\t{\n\t\treturn new IntegerDocument();\n\t}", "public void setNrDoc(java.lang.String nrDoc) {\n this.nrDoc = nrDoc;\n }", "public IntegerDt getNumberOfSeries() { \n\t\tif (myNumberOfSeries == null) {\n\t\t\tmyNumberOfSeries = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfSeries;\n\t}", "public void setDocumentNumber(String documentNumber) {\r\n this.documentNumber = documentNumber;\r\n }", "DomainNumber createDomainNumber();", "public Series () {\n super();\n this.price = RandomFill.generateNumber(5,15);\n this.listSeason = RandomFill.generateListSeason();\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi addNewMedlineSi();", "@Override\n\t\tpublic NewDoc[] newArray(int size) {\n\t\t\treturn new NewDoc[size];\n\t\t}", "public void setDocumentNumber(String documentNumber) {\n this.documentNumber = documentNumber;\n }", "public void setDocumentNumber(String documentNumber) {\n this.documentNumber = documentNumber;\n }", "public String getDocumentNo();", "public String getDocumentNo();", "public String getDocumentNo();", "@Override\r\n\tprotected KDTextField getNumberCtrl() {\n\t\treturn null;\r\n\t}", "String getDocumentNumber();", "public String getDocumentNo() {\n return documentNo;\n }", "private XYChart.Series<Number, Number> getTenSeries() {\n //Create new series\n XYChart.Series<Number, Number> series = new XYChart.Series<>();\n series.setName(\"Chemical Concentration\");\n Random rand = new Random();\n int c = 5; // Constant for x-axis scale\n for (int i = 0; i < 17; i++) {\n int y = rand.nextInt() % 3 + 2;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n series.getData().add(new XYChart.Data<>(17 * c, 4));\n series.getData().add(new XYChart.Data<>(18 * c, 5));\n series.getData().add(new XYChart.Data<>(19 * c-2,8));\n series.getData().add(new XYChart.Data<>(19 * c, 10));\n series.getData().add(new XYChart.Data<>(19 * c+2,8));\n series.getData().add(new XYChart.Data<>(20 * c, 6));\n series.getData().add(new XYChart.Data<>(21 * c, 4));\n\n for (int i = 22; i < 30; i++) {\n int y = rand.nextInt() % 3 + 2;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n return series;\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public NumberSequenceObject(final IDfPersistentObject object) {\n\t\tthis.object = object;\n\t}", "stockFilePT102.StockFileDocument.StockFile addNewStockFile();", "@ApiOperation(value = \"\", nickname = \"createSeries\", notes = \"Create new series\", response = SeriesResponse.class, tags={ \"series\", })\n @ApiResponses(value = { \n @ApiResponse(code = 201, message = \"Created response\", response = SeriesResponse.class) })\n @RequestMapping(value = \"/series\",\n produces = { \"application/json\" }, \n consumes = { \"application/json\" },\n method = RequestMethod.POST)\n default ResponseEntity<SeriesResponse> createSeries(@ApiParam(value = \"\" ) @Valid @RequestBody(required = false) SeriesRequest seriesRequest) {\n getRequest().ifPresent(request -> {\n for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader(\"Accept\"))) {\n if (mediaType.isCompatibleWith(MediaType.valueOf(\"application/json\"))) {\n String exampleString = \"null\";\n ApiUtil.setExampleResponse(request, \"application/json\", exampleString);\n break;\n }\n }\n });\n return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);\n\n }", "public abstract void setstockNumber();", "public void setNumeroSerie(double numeroSerie) {\n this.numeroSerie = numeroSerie;\n }", "@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\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 jbOk = new javax.swing.JButton();\n jbCancel = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jlFkCategoryId = new javax.swing.JLabel();\n jcbFkCategoryId = new javax.swing.JComboBox();\n jlFkClassId = new javax.swing.JLabel();\n jcbFkClassId = new javax.swing.JComboBox();\n jlFkTypeId = new javax.swing.JLabel();\n jcbFkTypeId = new javax.swing.JComboBox();\n jlDocNumberSeries = new javax.swing.JLabel();\n jtfDocNumberSeries = new javax.swing.JTextField();\n jckIsDeleted = new javax.swing.JCheckBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Serie de folios de documentos\");\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\n jPanel1.setPreferredSize(new java.awt.Dimension(392, 33));\n jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));\n\n jbOk.setText(\"Aceptar\");\n jbOk.setToolTipText(\"[Ctrl + Enter]\");\n jbOk.setPreferredSize(new java.awt.Dimension(75, 23));\n jPanel1.add(jbOk);\n\n jbCancel.setText(\"Cancelar\");\n jbCancel.setToolTipText(\"[Escape]\");\n jPanel1.add(jbCancel);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Datos del registro:\"));\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setLayout(new java.awt.GridLayout(5, 2, 0, 1));\n\n jlFkCategoryId.setText(\"Categoría de documento: *\");\n jPanel3.add(jlFkCategoryId);\n\n jcbFkCategoryId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jPanel3.add(jcbFkCategoryId);\n\n jlFkClassId.setText(\"Clase de documento: *\");\n jPanel3.add(jlFkClassId);\n\n jcbFkClassId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jPanel3.add(jcbFkClassId);\n\n jlFkTypeId.setText(\"Tipo de documento: *\");\n jPanel3.add(jlFkTypeId);\n\n jcbFkTypeId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jPanel3.add(jcbFkTypeId);\n\n jlDocNumberSeries.setText(\"Serie para folios de documentos:\");\n jPanel3.add(jlDocNumberSeries);\n\n jtfDocNumberSeries.setText(\"DOC NUMBER SERIE\");\n jPanel3.add(jtfDocNumberSeries);\n\n jckIsDeleted.setText(\"Registro eliminado\");\n jPanel3.add(jckIsDeleted);\n\n jPanel2.add(jPanel3, java.awt.BorderLayout.NORTH);\n\n getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);\n }", "public void setNumber(String number) {\n this.number = number;\n }", "public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}", "protected NumberAxis createVAxis() {\n NumberAxis yAxis = new NumberAxis(0, 55, 5);\n //yAxis.setLabel(\"Price\");\n yAxis.setSide(Side.RIGHT);\n yAxis.setTickMarkVisible(false);\n yAxis.setMinorTickVisible(false);\n return yAxis;\n }", "public void setDocumentNo(String documentNo) {\n this.documentNo = documentNo == null ? null : documentNo.trim();\n }", "public String getDocumentNumber() {\r\n return documentNumber;\r\n }", "public IntegerDt getNumberOfSeriesElement() { \n\t\tif (myNumberOfSeries == null) {\n\t\t\tmyNumberOfSeries = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfSeries;\n\t}", "public English_Number() {\n initComponents();\n }", "FORM createFORM();", "SNo initSNo(SNo iSNo)\n {\n iSNo.updateElementValue(\"SNo\");\n return iSNo;\n }", "public void setNumber(String newValue);", "public void setNumber(int number)\n {\n this.number = number;\n }", "protected void createNewDocumentNote(NoteData newNote) {\n /**\n * get data from the server about tags\n */\n String url = globalVariable.getConfigurationData().getServerURL()\n + globalVariable.getConfigurationData().getApplicationInfixURL()\n + globalVariable.getConfigurationData().getRestDocumentAddNotesURL();\n Log.i(LOG_TAG, \"REST - create new doc notes - call: \" + url);\n\n String postBody = RESTUtils.getJSON(newNote);\n\n AppCompatActivity activity = (AppCompatActivity)getActivity();\n RESTUtils.executePOSTNoteCreationRequest(url, postBody, null, \"\", globalVariable, DocumentTaggingActivity.PROPERTY_BAG_KEY, activity);\n\n // mDataArray = TagItemDataHelper.getAlphabetData();\n }", "public int getDocumentNumber() {\n return documentNumber;\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public Series setNumberOfInstances( int theInteger) {\n\t\tmyNumberOfInstances = new IntegerDt(theInteger); \n\t\treturn this; \n\t}", "public Series addSeries() {\n\t\tSeries newType = new Series();\n\t\tgetSeries().add(newType);\n\t\treturn newType; \n\t}", "private void createSerie(ws.Serie entity) {\n ws.DrawdedeWebService port = service.getDrawdedeWebServicePort();\n port.createSerie(entity);\n }", "public AlbumSeriesRecord() {\n super(AlbumSeries.ALBUM_SERIES);\n }", "public String getDocumentNumber() {\n return documentNumber;\n }", "public String getDocumentNumber() {\n return documentNumber;\n }", "private void setDocumentNo() {\n //\tCash Transfer\n if (\"X\".equals(getTenderType())) {\n return;\n }\n //\tCurrent Document No\n String documentNo = getDocumentNo();\n //\tExisting reversal\n if (documentNo != null\n && documentNo.indexOf(REVERSE_INDICATOR) >= 0) {\n return;\n }\n\n //\tIf external number exists - enforce it\n if (getR_PnRef() != null && getR_PnRef().length() > 0) {\n if (!getR_PnRef().equals(documentNo)) {\n setDocumentNo(getR_PnRef());\n }\n return;\n }\n\n documentNo = \"\";\n\n /* Begin e-Evolution\n //\tCredit Card\n if (TENDERTYPE_CreditCard.equals(getTenderType()))\n {\n documentNo = getCreditCardType()\n + \" \" + Obscure.obscure(getCreditCardNumber())\n + \" \" + getCreditCardExpMM()\n + \"/\" + getCreditCardExpYY();\n }\n //\tOwn Check No\n else\n // End e-Evolution */\n\n if (TENDERTYPE_Check.equals(getTenderType())\n && !isReceipt()\n && getCheckNo() != null && getCheckNo().length() > 0) {\n documentNo = getCheckNo();\n }\n //\tCustomer Check: Routing: Account #Check\n //begin e-evolution vpj-cd 11 MAy 2006\n\t\t/*else if (TENDERTYPE_Check.equals(getTenderType())\n && isReceipt())\n {\n if (getRoutingNo() != null)\n documentNo = getRoutingNo() + \": \";\n if (getAccountNo() != null)\n documentNo += getAccountNo();\n if (getCheckNo() != null)\n {\n if (documentNo.length() > 0)\n documentNo += \" \";\n documentNo += \"#\" + getCheckNo();\n }\n }\n // End e-Evolution */\n //\tSet Document No\n documentNo = documentNo.trim();\n if (documentNo.length() > 0) {\n setDocumentNo(documentNo);\n }\n }", "public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}", "protected static void addFormNumberColumnToTable(SQLiteDatabase db) {\n db.execSQL(DbUtil.addColumnToTable(\n FormRecord.STORAGE_KEY,\n FormRecord.META_SUBMISSION_ORDERING_NUMBER,\n \"TEXT\"));\n }", "public void setDoc_No(java.lang.String doc_No) {\r\n this.doc_No = doc_No;\r\n }", "public void setNoSerie(String noSerie) {\n\t\tthis.noSerie = noSerie;\n\t}", "public void registriereNummer (int nr) {\n this.nr = nr;\n }", "Documento createDocumento();", "com.exacttarget.wsdl.partnerapi.ObjectDefinition insertNewObjectDefinition(int i);", "@Override\n\tpublic int create(Semester sem) {\n\t\treturn 0;\n\t}", "public void setNumber(int number) {\n this.number = number;\n }", "private String createNumberLine(){\n StringBuilder numberLine = new StringBuilder();\n for(int i = 0; i < this.columns; i++){\n numberLine.append(i + 1).append(\" \");\n }\n return numberLine.toString();\n }", "noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord insertNewTaskmonitorrecord(int i);", "Quantity createQuantity();", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "protected void create(AttributeList attributeList) {\n super.create(attributeList);\n oracle.jbo.server.SequenceImpl s =new oracle.jbo.server.SequenceImpl(\"CUST_MNJ_ONT_SO_OBIN_SIZLINE_S\",getDBTransaction());\n oracle.jbo.domain.Number sVal = s.getSequenceNumber();\n setSoObinslineId(sVal);\n }", "public entryForm() {\n \n this.doi = null;\n for(int i = 0; i < 29;i++){\n cy.add(new ArrayList<>());\n }\n System.out.println(\"hiiiiii\");\n initComponents();\n if(modifyIs == true){\n System.out.println(\"Value \" + sid);\n setValue();\n }\n Dimension wd = Toolkit.getDefaultToolkit().getScreenSize();\n jScrollPane1.setSize(wd);\n this.setSize(wd);\n \n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "SeriesType createSeriesType();", "public SaddamWindow(SaddamDocument aDocument) {\n super(aDocument);\n setSize(600, 500);\n\ttheDoc = aDocument;\n \tnullDevices = new Vector<String>();\n\tnullDevices.add(\"Pick Sequence\");\n\tnullSignals = new Vector<String>();\n\tnullSignals.add(\"Pick Device Type\");\n\tnullValues = new Vector<String>();\n\tnullValues.add(\"No Values Available\");\n\tactionChoices = new Vector<String>();\n\tactionChoices.add(\"Set Value\");\n\tactionChoices.add(\"Increment Value\");\n\tactionChoices.add(\"Multiply Value\");\t\n\tactionChoice = new JComboBox<String>(actionChoices);\n\t\n makeContent();\n Container container = getContentPane();\n\tcontainer.add(mainPanel);\n\t\n }", "private void setNumber(final int pos, final String number) {\n\t\tif (pos < 0 || pos >= this.objects.size()) {\n\t\t\tPreferences.this.objects.add(number);\n\t\t} else {\n\t\t\tPreferences.this.objects.set(pos, number);\n\t\t}\n\t\tPreferences.this.adapter.notifyDataSetChanged();\n\t}", "public void add(Document document) {\n document.setIsAllocated();\n documents.add(document);\n }", "private static void inputSln(HtmlForm form, int index, int SLN) {\n\t\tform.getInputByName(\"sln\"+index).setValueAttribute(String.valueOf(SLN));\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public void doNew() {\n\n if (!canChangeDocuments()) {\n return;\n }\n \n setDocument(fApplication.createNewDocument());\n }", "public ADocument(Number min, Number max) {\n this.min = min;\n this.max = max;\n\n if (min.getClass().equals(Byte.class)) {\n currentVal = new Byte((byte) 0);\n } else {\n if (min.getClass().equals(Short.class)) {\n currentVal = new Short((short) 0);\n } else {\n if (min.getClass().equals(Integer.class)) {\n currentVal = new Integer(0);\n } else {\n if (min.getClass().equals(Long.class)) {\n currentVal = new Long(0L);\n } else {\n if (min.getClass().equals(Float.class)) {\n currentVal = new Float(0f);\n } else {\n currentVal = new Double(0d);\n }\n }\n }\n }\n }\n }", "public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }" ]
[ "0.57019854", "0.56269664", "0.55016714", "0.55016714", "0.55016714", "0.5379871", "0.53786105", "0.537234", "0.5358055", "0.5354573", "0.5319603", "0.5315575", "0.51768726", "0.51712024", "0.5153952", "0.512598", "0.50921667", "0.5087451", "0.50398797", "0.50342804", "0.50313586", "0.4979843", "0.49798363", "0.49423972", "0.49163833", "0.49151823", "0.48864916", "0.4865257", "0.48430598", "0.483802", "0.48338288", "0.48332387", "0.4825166", "0.48167968", "0.48076588", "0.47651178", "0.47595924", "0.47492912", "0.47492912", "0.4748735", "0.4748735", "0.4748735", "0.47409502", "0.47314605", "0.47262618", "0.47202617", "0.4715075", "0.47054955", "0.469514", "0.46938458", "0.46842003", "0.46740687", "0.46717134", "0.465209", "0.46484166", "0.46458152", "0.46444666", "0.46398166", "0.46279332", "0.46271962", "0.46228644", "0.46221486", "0.46124303", "0.458662", "0.4580069", "0.457896", "0.4577614", "0.45668095", "0.45633572", "0.4562751", "0.45497018", "0.4541242", "0.45384598", "0.45384598", "0.45384517", "0.4537472", "0.45373598", "0.4535979", "0.4535642", "0.45301154", "0.45252147", "0.45229965", "0.45213276", "0.45159084", "0.45125937", "0.45089984", "0.45017704", "0.44983867", "0.4489093", "0.44816923", "0.4476321", "0.44741294", "0.4472823", "0.44692808", "0.44664255", "0.44657776", "0.44529364", "0.44511986", "0.44449118", "0.44448286" ]
0.6776194
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jbOk = new javax.swing.JButton(); jbCancel = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jlFkCategoryId = new javax.swing.JLabel(); jcbFkCategoryId = new javax.swing.JComboBox(); jlFkClassId = new javax.swing.JLabel(); jcbFkClassId = new javax.swing.JComboBox(); jlFkTypeId = new javax.swing.JLabel(); jcbFkTypeId = new javax.swing.JComboBox(); jlDocNumberSeries = new javax.swing.JLabel(); jtfDocNumberSeries = new javax.swing.JTextField(); jckIsDeleted = new javax.swing.JCheckBox(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Serie de folios de documentos"); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } }); jPanel1.setPreferredSize(new java.awt.Dimension(392, 33)); jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); jbOk.setText("Aceptar"); jbOk.setToolTipText("[Ctrl + Enter]"); jbOk.setPreferredSize(new java.awt.Dimension(75, 23)); jPanel1.add(jbOk); jbCancel.setText("Cancelar"); jbCancel.setToolTipText("[Escape]"); jPanel1.add(jbCancel); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos del registro:")); jPanel2.setLayout(new java.awt.BorderLayout()); jPanel3.setLayout(new java.awt.GridLayout(5, 2, 0, 1)); jlFkCategoryId.setText("Categoría de documento: *"); jPanel3.add(jlFkCategoryId); jcbFkCategoryId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel3.add(jcbFkCategoryId); jlFkClassId.setText("Clase de documento: *"); jPanel3.add(jlFkClassId); jcbFkClassId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel3.add(jcbFkClassId); jlFkTypeId.setText("Tipo de documento: *"); jPanel3.add(jlFkTypeId); jcbFkTypeId.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jPanel3.add(jcbFkTypeId); jlDocNumberSeries.setText("Serie para folios de documentos:"); jPanel3.add(jlDocNumberSeries); jtfDocNumberSeries.setText("DOC NUMBER SERIE"); jPanel3.add(jtfDocNumberSeries); jckIsDeleted.setText("Registro eliminado"); jPanel3.add(jckIsDeleted); jPanel2.add(jPanel3, java.awt.BorderLayout.NORTH); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300); }
{ "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 Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\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 kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\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 frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\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 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 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.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.69458616", "0.69446844", "0.6937443", "0.69325924", "0.69280547", "0.69266534", "0.69264925", "0.6912501", "0.6911917", "0.6894212", "0.6893167", "0.68922186", "0.6892184", "0.6890009", "0.688444", "0.6883334", "0.68823224", "0.6879555", "0.68768615", "0.6875667", "0.68722147", "0.6860655", "0.68569547", "0.6856804", "0.6856167", "0.6855431", "0.6854634", "0.68536645", "0.68536645", "0.684493", "0.6837617", "0.68372554", "0.68303156", "0.6828861", "0.6827668", "0.68246883", "0.68245596", "0.6818436", "0.6818284", "0.6812057", "0.681017", "0.68095857", "0.68093693", "0.6809163", "0.68027467", "0.67963576", "0.6794979", "0.6793972", "0.6792247", "0.67903155", "0.67896885", "0.67893314", "0.6783135", "0.6767654", "0.67672074", "0.67655265", "0.6757984", "0.6757062", "0.6754005", "0.67513984", "0.674334", "0.6740801", "0.6737678", "0.6737453", "0.6734575", "0.67281", "0.6727845", "0.67219335", "0.67169774", "0.67163646", "0.6715783", "0.67106164", "0.6708574", "0.6705358", "0.67030907", "0.6701408", "0.6700769", "0.66998196", "0.6695165", "0.66917574", "0.6691252" ]
0.0
-1
End of variables declaration//GENEND:variables
@Override public void formClearRegistry() { throw new UnsupportedOperationException("Not supported yet."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
atributo para impressao da arvore METODOS/ construtor padrao
public ArvoreRB(Node nil){ this.raiz = nil; this.pr = nil; this.aux = nil; this.tamanho = 0; this.print = " "; this.nil=nil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FiltroMicrorregiao() {\r\n }", "public Alojamiento() {\r\n\t}", "public CrearQuedadaVista() {\n }", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public AfiliadoVista() {\r\n }", "protected Asignatura()\r\n\t{}", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "private DittaAutonoleggio(){\n \n }", "private FSArquivo(Construtor construtor) {\n nome = construtor.nome;\n tipoMedia = construtor.tipoMedia;\n base = construtor.base;\n prefixo = construtor.prefixo;\n sufixo = construtor.sufixo;\n }", "public Cgg_jur_anticipo(){}", "public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }", "public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }", "@Override\r\n\tpublic void makerear() {\n\t\t\r\n\t}", "public Odontologo() {\n }", "public prueba()\r\n {\r\n }", "public VotacaoSegundoDia() {\n\n\t}", "private ControleurAcceuil(){ }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Pitonyak_09_02() {\r\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "public Caso_de_uso () {\n }", "public abstract Anuncio creaAnuncioTematico();", "public DarAyudaAcceso() {\r\n }", "public Veiculo(String marca, String modelo, int ano, double valorParaLocacao) { // Criando os construtores\n this.marca = marca;\n this.modelo = modelo;\n this.ano = ano;\n this.valorParaLocacao = valorParaLocacao;\n\n }", "public MPaciente() {\r\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }", "Petunia() {\r\n\t\t}", "public MorteSubita() {\n }", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public CorreoElectronico() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public Corso() {\n\n }", "public Venda() {\n }", "public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }", "private TMCourse() {\n\t}", "public Unidadmedida() {\r\n\t}", "public Moto( String nome , float valor , int ano ){\n super( nome , valor ); //define ser uma subclasse\n this.marca = \"Honda\";\n this.ano = ano;\n }", "public DDetRetContrArtEscenicsAttTO() { }", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "private MApi() {}", "public FiltroRaEncerramentoComando() {\r\n }", "public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }", "public Vehiculo() {\r\n }", "public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}", "public void inicializar();", "private UsineJoueur() {}", "public Dipendente() {\r\n\t\tsetnMat();\r\n\t}", "public abstract Anuncio creaAnuncioGeneral();", "public Carrinho() {\n\t\tsuper();\n\t}", "public Funcionario() {\r\n\t\t\r\n\t}", "public CTematicaBienestar() {\r\n\t}", "public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public ArmorTemplate() {\n\t}", "public Manusia() {}", "public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO;\r\n frecuencia = FRECUENCIA_DEFECTO;\r\n duracionMedia = DURACION_MEDIA_DEFECTO;\r\n duracionDesviacion = DURACION_DESVIACION_DEFECTO;\r\n duracionMinima = DURACION_MINIMA_DEFECTO;\r\n demoraMedia = DEMORA_MEDIA_DEFECTO;\r\n demoraDesviacion = DEMORA_DESVIACION_DEFECTO;\r\n }", "public Transportista() {\n }", "public ConsultaMedica() {\n super();\n }", "public DetArqueoRunt () {\r\n\r\n }", "public void Ordenamiento() {\n\n\t}", "public Magazzino() {\r\n }", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "public TebakNusantara()\n {\n }", "public RptPotonganGaji() {\n }", "protected FanisamBato(){\n\t}", "public TutorIndustrial() {}", "public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}", "public Moto(float cilindrada,String _patente, int _cantRuedas)\n {\n super(_patente, _cantRuedas, eMarca.ZANELLA);\n this._cilindrada=cilindrada;\n }", "public TacChrtypmstVOImpl() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Prestamo() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public TelaAgendamento() {\n initComponents();\n }", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public Achterbahn() {\n }", "public Pasien() {\r\n }", "public Aritmetica(){ }", "public Troco() {\n }", "public Asiento() {\n\t\tthis(\"asiento\", null);\n\t}", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "public Firma() {\n }", "@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}", "public MovimientoControl() {\n }", "public CarteCaisseCommunaute() {\n super();\n }", "public AirAndPollen() {\n\n\t}", "public Veiculo() {\r\n\r\n }", "public mitigacao() {\n initComponents();\n }", "public Reserva(){super();}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public Carrera(){\n }", "public Tarifa() {\n ;\n }", "protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }" ]
[ "0.67741746", "0.6723177", "0.6697147", "0.6658185", "0.6614747", "0.660311", "0.65982586", "0.6578939", "0.65669256", "0.65628076", "0.65555155", "0.65434206", "0.6530428", "0.651619", "0.64985424", "0.6487467", "0.6481602", "0.64465624", "0.6421061", "0.6403393", "0.63907593", "0.63767534", "0.63710093", "0.6370143", "0.636634", "0.63459414", "0.6345325", "0.6339569", "0.6326654", "0.6306412", "0.6304509", "0.6295994", "0.62882084", "0.628669", "0.6279334", "0.6270792", "0.6270552", "0.62672967", "0.6245556", "0.6237906", "0.6233985", "0.6232892", "0.6229427", "0.6229242", "0.6225215", "0.62203944", "0.6216743", "0.62042975", "0.6200347", "0.61962086", "0.6195523", "0.6191938", "0.61909443", "0.6187347", "0.6178551", "0.61760134", "0.6171411", "0.6170058", "0.61661124", "0.61635643", "0.6151579", "0.61462635", "0.6140544", "0.6138453", "0.6136294", "0.612504", "0.6117669", "0.6117122", "0.6114828", "0.61085373", "0.61009765", "0.60991675", "0.6091548", "0.6090932", "0.60846215", "0.6084399", "0.6083729", "0.60804343", "0.6068208", "0.60650265", "0.6056681", "0.60496926", "0.6048393", "0.60464644", "0.6045752", "0.60439634", "0.6040315", "0.6038169", "0.60367763", "0.6034111", "0.60272694", "0.60253507", "0.60252655", "0.60220885", "0.60165924", "0.60163826", "0.60117984", "0.60068923", "0.6004471", "0.6003141", "0.59993726" ]
0.0
-1
construtor com entrada de chave
public ArvoreRB(String n){ this.raiz = new Node(n); this.pr = raiz; this.tamanho = 0; this.print = " "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Chauffeur() {\r\n\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public Chant(){}", "public Coche() {\n super();\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Chick() {\n\t}", "public prueba()\r\n {\r\n }", "public Pasien() {\r\n }", "public Kullanici() {}", "public contrustor(){\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Cgg_jur_anticipo(){}", "private ControleurAcceuil(){ }", "public Personaje(Juego juego,Celda c) {\r\n\t\tsuper(juego,c);\r\n\t}", "public Constructor(){\n\t\t\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Cohete() {\n\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public LecturaPorEvento() \r\n {\r\n }", "public Carrera(){\n }", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "Campana(String suono, int volte){\n this.suono = suono;\n this.volte = volte;\n }", "public ControladorCoche() {\n\t}", "public SlanjePoruke() {\n }", "public CarteCaisseCommunaute() {\n super();\n }", "private UsineJoueur() {}", "public Caso_de_uso () {\n }", "public Contato() {\n }", "public ChoixEntreprise() {\n\n }", "public MorteSubita() {\n }", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public Joueur(int id, int pa)\r\n/* */ {\r\n/* 34 */ this.id_joueur = id;\r\n/* 35 */ this.points_action = pa;\r\n/* */ }", "public CD(){\r\n\t\t\r\n\t}", "public Vehiculo() {\r\n }", "public CorreoElectronico() {\n }", "public Chick()\n {\n super(\"chick\");\n }", "public Alojamiento() {\r\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Chat_1(String toaNimi) {\n\n nimi = toaNimi;\n\n }", "public UConnecte() {\n\t\tsuper();\n\t}", "public ContaBancaria() {\n }", "public Anschrift() {\r\n }", "public CapteurEffetHall() {\n\t\t\n\t}", "public Achterbahn() {\n }", "public Corso() {\n\n }", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "public Candidatura (){\n \n }", "public Comprador() {\n // initialise instance variables\n super(1,\"\",\"\",\"\",\"\",\"\"); //super(email, nome, password, dataNascimento, morada)\n favoritos = new ArrayList<String>();\n }", "public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }", "public Catelog() {\n super();\n }", "protected Asignatura()\r\n\t{}", "public Conway(AutomataCelular ac,int fila, int columna)\n {\n super(ac,fila,columna);\n automata = ac;\n this.fila = fila;\n this.columna= columna;\n color=Color.blue;\n estadoActual='v';\n }", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Player(String s) //only constructor\n {\n \tsuper(s,1,false);\n \tposition=-1;\n \tship=false;\n \tSetHealth();\n \tSetWealth();\n }", "public Cable() {\r\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public Clade() {}", "public VotacaoSegundoDia() {\n\n\t}", "public CD() {}", "public CCuenta()\n {\n }", "public Propuestas() {}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public Vide(int chiffre,int lettre,char couleur) {\n\t\tsuper(Main.VIDE,chiffre,lettre,couleur);\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public CrearQuedadaVista() {\n }", "public SingleRoom(Hotel hotel, String nomor_kamar)\n {\n // initialise instance variables\n super(hotel,nomor_kamar);\n\n }", "public Chromosome(){\n super();\n }", "public Challenger() {\r\n\t\tname = \"TBD\";\r\n\t\trank = -1;\r\n\t}", "public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }", "public Exercicio(){\n \n }", "public Conway(AutomataCelular ac,int fila,int columna){\r\n super(ac,fila,columna);\r\n estadoActual=VIVA;\r\n //decida();\r\n estadoSiguiente=VIVA;\r\n edad=0;\r\n automata.setElemento(fila,columna,(Elemento)this); \r\n color=Color.blue;\r\n }", "public Trabajador() {\n\t\tsuper();\n\t}", "public ctq(File paramFile, String paramString, oa paramoa, ckh paramckh)\r\n/* 22: */ {\r\n/* 23: 33 */ super(paramoa);\r\n/* 24: 34 */ this.i = paramFile;\r\n/* 25: 35 */ this.j = paramString;\r\n/* 26: 36 */ this.k = paramckh;\r\n/* 27: */ }", "public FiltroMicrorregiao() {\r\n }", "public Troco() {\n }", "Composite() {\n\n\t}", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "public Pitonyak_09_02() {\r\n }", "public CyanSus() {\n\n }", "public NhanVien()\n {\n }", "public Commune() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Tbdcongvan36() {\n super();\n }", "public TCubico(){}", "private Disc() {\n super(\"\");\n barcode = \"\";\n director = \"\";\n fsk = 0;\n }", "public Veiculo() {\r\n\r\n }", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Vocas(String jmeno) {\r\n super(jmeno);\r\n }", "private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }", "public Venda() {\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Banco(){}", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }", "public Husdjurshotell(){}", "private TMCourse() {\n\t}", "public Waschbecken() {\n this(0, 0);\n }" ]
[ "0.7125549", "0.68683696", "0.67741495", "0.6670152", "0.65843844", "0.649461", "0.64247465", "0.64087176", "0.63597363", "0.63216734", "0.62780905", "0.6259773", "0.62417614", "0.6224492", "0.61944854", "0.6175897", "0.61645234", "0.6161567", "0.61602336", "0.61229044", "0.61217666", "0.61179024", "0.6113136", "0.6085022", "0.6082122", "0.60795474", "0.60773134", "0.6073599", "0.6054004", "0.605283", "0.6050554", "0.6048959", "0.6027526", "0.6018897", "0.6015491", "0.6008577", "0.60033834", "0.59949344", "0.59742373", "0.5967855", "0.59666485", "0.5964999", "0.59583294", "0.5955392", "0.5950674", "0.59450984", "0.59444386", "0.5943876", "0.593868", "0.5936995", "0.5936527", "0.59295833", "0.5924242", "0.59215003", "0.5916519", "0.5911864", "0.5908052", "0.5896487", "0.58954036", "0.58915687", "0.58907723", "0.5886912", "0.5886241", "0.5882315", "0.5877528", "0.587529", "0.5870008", "0.58666086", "0.58615047", "0.58531284", "0.585219", "0.5847005", "0.5837248", "0.58275545", "0.58206695", "0.5820493", "0.58191514", "0.58181834", "0.5813908", "0.58132195", "0.58100694", "0.58093137", "0.5805396", "0.5802217", "0.5799182", "0.57956463", "0.5788873", "0.5785461", "0.5783331", "0.5774139", "0.5765207", "0.5765125", "0.57550484", "0.575413", "0.575352", "0.5743031", "0.5741971", "0.57417536", "0.5740666", "0.5735652", "0.57344687" ]
0.0
-1
/======================================================================================== Metodo que retorna a raiz da arvore
public Node raiz(){ return this.raiz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Celda rastrearAPacman() {\n // TODO implement here\n return null;\n }", "public Nodo getRaiz() {\n return raiz;\n }", "Object getROIs();", "public String getRaza() {\r\n return raza;\r\n }", "public String getARo() {\r\n return aRo;\r\n }", "public Nodo getRaiz() {\r\n\t\treturn Raiz;\r\n\t}", "@Override\n\tpublic List<Arco> obtenerArcos() {\n\t\treturn arcos;\n\t}", "public HashMap<Integer, Restoran> getRestorani() {\n\t\treturn restorani;\n\t}", "public T getRaiz(){\n\t\treturn datoRaiz;\n\t}", "public Raza getRazaP1() {\n razaP1.nombre1();\n System.out.println(razaP1.nombre1());\n return razaP1;\n }", "public String getRazaN(){\n return razaP1.nombre1();\n }", "public NodoCaracter getArbolRaiz() {\n return inicio;\n }", "RegrasDosPrecos regras() {\n RegrasDosPrecos regraDosPrecos = new RegrasDosPrecos();\n\n\t regraDosPrecos.adicionarRegraDosPrecos(\"A\", 50);\n\t regraDosPrecos.adicionarRegraDosPrecos(\"B\", 30);\n\t regraDosPrecos.adicionarRegraDosPrecos(\"C\", 20);\n\t regraDosPrecos.adicionarRegraDosPrecos(\"D\", 15);\n\n\t regraDosPrecos.adicionarRegraDoDesconto(\"A\", new Desconto(20, 3));\n\t regraDosPrecos.adicionarRegraDoDesconto(\"B\", new Desconto(15, 2));\n\t return regraDosPrecos;\n }", "String getArcrole();", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public String raiz1 (){\r\n //primero, invocamos el determiante\r\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 1\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r1= (float)(-b+ Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 1: \"+r1; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n //Uno para R1 y otro para R2 \r\n }", "@Override\n\tpublic Iterator<Arco<T>> obtenerArcos() {\n\t\tList arcos = new ArrayList<Arco<T>>();\n\t\tfor (Vertice v: listVertices){//agarro todos los arcos de todos los vertices\n\t\t\tarcos.add(v.getArcos());\n\t\t}\n \t\tIterator<Arco<T>> arcosIT = arcos.iterator();\n\t\treturn new IteradorArco(arcosIT);\n\t}", "public Arestas retiraAresta (int v1, int v2) {\n if (this.mat[v1][v2] == 0) \n return null; // Aresta nao existe\n else {\n Arestas aresta = new Arestas (v1, v2, this.mat[v1][v2]);\n this.mat[v1][v2] = 0; return aresta;\n // se a aresta existir eu vou atribuir o peso dela a 0(zero), isso significa\n // dizer que o vertice v1 não está ligado com v2\n }\n }", "public String getRua() {// Retorna o nome da rua.\r\n\t\treturn rua;\r\n\t}", "public void asignarRaza(int raza);", "public void loadRutinas() {\n\t\trutinas = rutBuss.getRutinas();\n\t}", "public String raiz2 (){\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 2\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r2= (float)(-b- Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 2: \"+r2; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n }", "public int getR();", "public ArrayList<Road> loadRoads()\n\t{\n\t\t/* Requete SQL */\n\t\tCursor cursor = mainDatabase.rawQuery(\"SELECT \" + DBContract.RoadTable.ROADNAME[0] + \", \" +\n\t\t\t\tDBContract.RoadTable.LENGTH[0] + \", \" + DBContract.RoadTable.DURATION[0] + \", \" +\n\t\t\t\tDBContract.RoadTable.PRICE[0] + \" FROM \" + DBContract.RoadTable.TABLE_NAME, null);\n\t\t\n\t\tArrayList<Road> result = new ArrayList<Road>();\n\t\t\n\t\t/* Parcour du resultat */\n\t\tif(cursor.moveToFirst())\n\t\t{\n\t\t\t\twhile(!cursor.isAfterLast())\n\t\t\t\t{\n\t\t\t\t\t/* Instancie la nouvelle route */\n\t\t\t\t\tRoad tmp = new Road(cursor.getString(0), cursor.getDouble(1), cursor.getDouble(2),\n\t\t\t\t\t\t\tcursor.getDouble(3));\t\n\t\t\t\t\tresult.add(tmp);\n\t\t\t\t\tcursor.moveToNext();\n\t\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn result;\n\t}", "public ArrayList<Rubro> getRubros() {\n ArrayList<CuentaCorriente> cuentaCorrientes = getCuentasCorrientesCollection();\n ArrayList<Rubro> rubros = new ArrayList<>();\n\n //Tengo que mergear todos los rubros\n for (CuentaCorriente cuentaCorriente : cuentaCorrientes) {\n for (Rubro rubroProveedor : cuentaCorriente.getProveedor().getRubros()) {\n //Si no tengo rubros inicialmente, agregas uno\n if (rubros.isEmpty()) {\n rubros.add(rubroProveedor);\n } else {\n boolean existe = false;\n //Tengo que mergear todos los productos de los rubros\n for (Rubro rubro : rubros) {\n if (rubroProveedor.getIdRubro() == rubro.getIdRubro()) {\n existe = true;\n //Es el mismo rubro\n for (Producto productoProveedor : rubroProveedor.getProductos()) {\n boolean noTieneProducto = true;\n //Quiero mergear los PPPP de cada producto igual\n for (Producto producto : rubro.getProductos()) {\n if (productoProveedor.getIdProducto() == producto.getIdProducto()) {\n List<PrecioProductoPorProveedor> precios = producto.getPreciosPorProveedor();\n precios.addAll(productoProveedor.getPreciosPorProveedor());\n producto.setPreciosPorProveedor(precios);\n noTieneProducto = false;\n }\n }\n //Si no encontre el producto, agrego\n if (noTieneProducto) {\n rubro.addProducto(productoProveedor);\n }\n }\n }\n }\n\n if (!existe) {\n rubros.add(rubroProveedor);\n }\n }\n }\n }\n\n return rubros;\n }", "public ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }", "@Override\n\tpublic Mat GetRomateMatrix()\n\t{\n\t\treturn mR;\n\t}", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "public Vector2d getRre() {\n return rre;\n }", "int getR();", "public biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo getMotivoRechazo(){\n return localMotivoRechazo;\n }", "public List<ConceptoRetencionSRI> getListaConceptoRetencionSRI()\r\n/* 141: */ {\r\n/* 142:153 */ if (this.listaConceptoRetencionSRI == null) {\r\n/* 143:154 */ cargarConceptoRetencion();\r\n/* 144: */ }\r\n/* 145:156 */ return this.listaConceptoRetencionSRI;\r\n/* 146: */ }", "@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}", "public void setRaza(String raza) {\r\n this.raza = raza;\r\n }", "public List<Carona> localizarCaronaRachada(String origem, String destino) {\r\n\t\tList<Carona> retorno = new LinkedList<Carona>();\r\n\t\t\r\n\t\tfor (Usuario usuarioTemp : listaDeUsuarios) {\r\n\t\t\tfor (Carona caronaTemp : usuarioTemp.getCaronas()) {\r\n\t\t\t\tif (caronaTemp.getTipoCarona().equals(TiposCarona.RACHADACOMUM) || caronaTemp.getTipoCarona().equals(TiposCarona.RACHADAESCAPADA) || caronaTemp.getTipoCarona().equals(TiposCarona.RACHADAMUNICIPAL)) {\r\n\t\t\t\t\tif(caronaTemp.getOrigem().equals(origem) && caronaTemp.getDestino().equals(destino)){\r\n\t\t\t\t\t\t\tretorno.add(caronaTemp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"AeronaveResource [nome=\" + nome + \", marca=\" + marca + \", ano=\" + ano + \", descricao=\" + descricao\n\t\t\t\t+ \", vendido=\" + vendido + \", created=\" + created + \", update=\" + update + \"]\";\n\t}", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "public String getaar() {\n\t return aar;\n\t }", "VectorArray getResHar();", "@Override\n public int getOArmor(int loc, boolean rear) {\n if (rear && hasRearArmor(loc)) {\n return orig_rearArmor[loc];\n }\n return super.getOArmor(loc, rear);\n }", "private Navigatore getNavigatore() {\n /* variabili e costanti locali di lavoro */\n Navigatore nav = null;\n Modulo modulo;\n\n try { // prova ad eseguire il codice\n modulo = getModuloRisultati();\n if (modulo != null) {\n nav = modulo.getNavigatore(CHIAVE_NAV);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return nav;\n }", "@Override\n\tpublic E getRear() {\n\t\treturn data[rear-1];\n\t}", "RestaurantFullInfo getFullRestaurant();", "public Celda getArriba(){\r\n\t\treturn mapa.getCelda((fila+1)*Logica.CHEIGHT, columna*Logica.CWIDTH);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn rodada.toString();\n\t}", "private EarthQuake rellenaTerremoto(Cursor cursor) {\n EarthQuake Terremoto = new EarthQuake();\n\n Terremoto.set_id(cursor.getString(indexes.get(Key_Terremoto_id)));\n Terremoto.setPlace(cursor.getString(indexes.get(Key_Terremoto_Place)));\n Terremoto.setUrl(cursor.getString(indexes.get(Key_Terremoto_Url)));\n Terremoto.setMagnitud(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Magnitud))));\n Terremoto.setTime(Long.parseLong(cursor.getString(indexes.get(Key_Terremoto_time))));\n\n Coordinate Coordenadas = new Coordinate(0, 0, 0);\n Coordenadas.setDepth(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Profundidad))));\n Coordenadas.setLng(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Longitud))));\n Coordenadas.setLat(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Latitud))));\n Terremoto.setCoords(Coordenadas);\n\n return Terremoto;\n }", "public Building getRoof();", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public VectorN getR()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[0];\n\t\tout.x[1] = this.rv.x[1];\n\t\tout.x[2] = this.rv.x[2];\n\t\treturn out;\n\t}", "public Image getQuaverRest();", "public void cambiarRonda() {\n\t\ttry {\r\n\t\t\tjuego.cambiarRonda();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ArrayList<DataRestaurante> listarRestaurantes();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TypeRia> touslesTypeRIA() {\n\t\tList<TypeRia> T = em.createQuery(\"from TypeRia t\").getResultList();\n\t\treturn T;\n\t}", "Reserva Obtener();", "public int recuperar() {\r\n\t if (raiz == null)\r\n\t return -99999;\r\n\t ;\r\n\t int x = raiz.dato;\r\n\t raiz = raiz.sig;\r\n\t return x;\r\n\t }", "Restaurant getRestaurant();", "public static final float getAR() {\r\n\t\treturn A_R;\r\n\t}", "public MatrizGrafo valoresRelaciones() throws IOException\n {\n // Lectura del fichero\n flireReader = new FileReader (archivo);\n bufferedReader = new BufferedReader(flireReader);\n String fila;\n while((fila=bufferedReader.readLine())!=null)\n {\n String[] arreglo;\n arreglo=fila.split(\" \");\n grafo.nuevaCon(arreglo[0], arreglo[1], arreglo[2]);\n }\n return grafo;\n }", "public Arma obtenerArma() {\n\t\treturn arma;\n\t}", "public com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult getReault(int index) {\n return reault_.get(index);\n }", "public final String[] getRiviAsteikko() {\r\n return riviAsteikko;\r\n }", "public static void openROIs(IMetadata retrieve, ImagePlus[] images) {\n if (!(retrieve instanceof OMEXMLMetadata)) return;\n int nextRoi = 0;\n RoiManager manager = RoiManager.getInstance();\n \n OME root = (OME) retrieve.getRoot();\n \n int imageCount = images.length;\n for (int imageNum=0; imageNum<imageCount; imageNum++) {\n int roiCount = root.sizeOfROIList();\n if (roiCount > 0 && manager == null) {\n manager = new RoiManager();\n }\n for (int roiNum=0; roiNum<roiCount; roiNum++) {\n Union shapeSet = root.getROI(roiNum).getUnion();\n int shapeCount = shapeSet.sizeOfShapeList();\n \n for (int shape=0; shape<shapeCount; shape++) {\n Shape shapeObject = shapeSet.getShape(shape);\n \n Roi roi = null;\n \n if (shapeObject instanceof Ellipse) {\n Ellipse ellipse = (Ellipse) shapeObject;\n int cx = ellipse.getX().intValue();\n int cy = ellipse.getY().intValue();\n int rx = ellipse.getRadiusX().intValue();\n int ry = ellipse.getRadiusY().intValue();\n roi = new OvalRoi(cx - rx, cy - ry, rx * 2, ry * 2);\n }\n else if (shapeObject instanceof ome.xml.model.Line) {\n ome.xml.model.Line line = (ome.xml.model.Line) shapeObject;\n int x1 = line.getX1().intValue();\n int x2 = line.getX2().intValue();\n int y1 = line.getY1().intValue();\n int y2 = line.getY2().intValue();\n roi = new Line(x1, y1, x2, y2);\n }\n else if (shapeObject instanceof Point) {\n Point point = (Point) shapeObject;\n int x = point.getX().intValue();\n int y = point.getY().intValue();\n roi = new OvalRoi(x, y, 0, 0);\n }\n else if (shapeObject instanceof Polyline) {\n Polyline polyline = (Polyline) shapeObject;\n String points = polyline.getPoints();\n int[][] coordinates = parsePoints(points);\n boolean closed = polyline.getClosed();\n roi = new PolygonRoi(coordinates[0], coordinates[1],\n coordinates[0].length, closed ? Roi.POLYGON : Roi.POLYLINE);\n }\n else if (shapeObject instanceof ome.xml.model.Rectangle) {\n ome.xml.model.Rectangle rectangle =\n (ome.xml.model.Rectangle) shapeObject;\n int x = rectangle.getX().intValue();\n int y = rectangle.getY().intValue();\n int w = rectangle.getWidth().intValue();\n int h = rectangle.getHeight().intValue();\n roi = new Roi(x, y, w, h);\n }\n \n if (roi != null) {\n Roi.setColor(Color.WHITE);\n roi.setImage(images[imageNum]);\n manager.add(images[imageNum], roi, nextRoi++);\n }\n }\n }\n }\n }", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "private Hashtable<String, String> cargarRecursos() {\n Hashtable<String, String> recursosTemp = new Hashtable<String, String>(); \n \n recursosTemp.put(ConstantesWS.RECURSOS_MENU_ASOCIAR_FACTURA, ConstantesWS.RECURSOS_MENU_ASOCIAR_FACTURA);\n recursosTemp.put(ConstantesWS.RECURSOS_MENU_ABM_USUARIOS_WEB, ConstantesWS.RECURSOS_MENU_ABM_USUARIOS_WEB);\n return recursosTemp;\n }", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getRestaurantes() {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\tList<Restaurante> restaurantes;\n\t\ttry\n\t\t{\n\t\t\trestaurantes = tm.darRestaurantes();\n\t\t\treturn Response.status( 200 ).entity( restaurantes ).build( );\t\t\t\n\t\t}catch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}", "public MyAnimation getRearSprite();", "public int obtenirArmure() {\n\t\treturn this.armure;\n\t}", "public ArrayList<Obra> getObrasArray() {\r\n return obrasArray;\r\n }", "public Object[] getGlobalResourceARList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_AR_LIST);\n }", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public Set<V> getR() {\n\t\treturn R;\n\t}", "public Iterable<Arista> aristas() {\n Cola<Arista> mst = new Cola<Arista>();\n for (int v = 0; v < aristaHacia.length; v++) {\n Arista a = aristaHacia[v];\n if (a != null) {\n mst.entrarACola(a);\n }\n }\n return mst;\n }", "com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult getReault(int index);", "@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}", "public Proceso atender() {\n\t\tProceso proceso = raiz.sig;\n\t\tif (proceso == this.raiz) {\n\t\t\tSystem.out.println(\"Cola Vacia\");\n\t\t\treturn null;\n\t\t}\n\t\tProceso sig = proceso.sig;\n\t\tProceso padre = raiz;\n\t\tpadre.sig = sig;\n\t\tsig.padre = padre;\n\t\tcabeza = sig;\n\t\tthis.numProcesos--;\n\t\tthis.calcularTiemposProcesos();\n\t\treturn proceso;\n\t}", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public Address offset2rva(int offset) {\n\t\tfor(IMAGE_SECTION_HEADER section:peFileSections) {\n\t\t\tif(section.getPointerToRawData() != 0 && offset >= section.getPointerToRawData()\n\t\t\t&& offset < section.getPointerToRawData() + section.getSizeOfRawData()) {\n\t\t\t\treturn new Address(offset - section.getPointerToRawData() + section.getVirtualAddress());\n\t\t\t}\n\t\t}\n\t\tif(offset < peOptionalHeader.getSizeOfHeaders())\n\t\t\treturn new Address(offset);\n\t\treturn null;\n\t}", "public double raiz(double a){\n\t\tdouble x = 2.0;\n double cociente = divide(a, x);\n double promedio = suma(x, cociente) / 2.0;\n if (a < 0) {\n System.out.println(\"no se puede calcular raiz cuadrada de numeros negativos\");\n return -1;\n } else if (a == 0) {\n return 0;\n } else {\n while (abs(resta(cociente, promedio))>0.0001) {\n x = promedio;\n cociente = divide(a, x);\n promedio = suma(x, cociente)/2.0;\n }\n }\n return promedio;\n\t}", "@Override\r\n\tpublic LinkedList<Armamento> getArmamento() {\n\t\treturn super.getArmamento();\r\n\t}", "public PosicionArista[] sinonimos(PosicionArista[] rpa) {\n\n // inicializacion\n rpa = (rpa == null) ? new PosicionArista[2] : rpa;\n for (int i=0; i<rpa.length; i++) {\n rpa[i] = (rpa[i] == null) ? new PosicionArista() : rpa[i];\n }\n normaliza();\n \n rpa[0].setPos(getX(), getY());\n rpa[0].setOrientacion(o); \n switch (rpa[0].getOrientacion()) {\n case Este:\n rpa[1].setPos(getX()+1, getY()-1);\n rpa[1].setOrientacion(OrientacionArista.Oeste);\n break;\n case NorEste:\n rpa[1].setPos(getX(), getY()-1);\n rpa[1].setOrientacion(OrientacionArista.SurOeste);\n break; \n case NorOeste:\n rpa[1].setPos(getX()-1, getY());\n rpa[1].setOrientacion(OrientacionArista.SurEste);\n break; \n }\n return rpa;\n }", "@Override\n public ArbolSplay<T> clonar(){\n ArbolSplay<T> t=new ArbolSplay<T>();\n t.setRaiz(clonarAS(this.getRaiz()));\n return(t);\n }", "TypeAssociation getEstRapporteeParRapport();", "private NodoBin<T> rIzquierda(NodoBin<T> r) {\n NodoBin<T> x = r.getDer();\n r.setDer(x.getIzq());\n x.setIzq(r);\n return x;\n }", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "public Reliquia elegirReliquia(String nombre) {\n for (Reliquia reliquia : reliquias) {\n if (reliquia.getNombre().equalsIgnoreCase(nombre))\n\n return reliquia;\n\n }\n\n return null;\n\n }", "public LocalDate getArrears() {\n return arrears;\n }", "public ArtesanoEntity getArtesano( )\n\t{\n\t\treturn artesano;\n\t}", "public int getCurrRuptures();", "public List<Rota> findAll() {\n try {\r\n EntityManager entityManager = getEntityManager();\r\n Query query = entityManager.createQuery(\"SELECT e FROM Rota e\");// em SELECT e FROM Rota e \"Rota\" precisa representar o mesmo nome da classe\r\n List<Rota> rotas = query.getResultList();\r\n entityManager.close();\r\n return rotas;\r\n }catch(Exception e) {\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }", "public Rooms getRmTable();", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public Image getCorazon ( ) {\n\t\tswitch ( vida ) {\n\t\tcase 0 :\n\t\t\treturn sinVida;\n\t\tcase 1:\n\t\t\treturn cuartoDeVida;\n\t\tcase 2:\n\t\t\treturn mitadVida;\n\t\tcase 3:\n\t\t\treturn tresCuartos;\n\t\tcase 4:\n\t\t\treturn fullVida;\n\t\tdefault:\n\t\t\treturn sinVida;\n\t\t}\n\t}", "public ServicioConceptoRetencionSRI getServicioConceptoRetencionSRI()\r\n/* 121: */ {\r\n/* 122:137 */ return this.servicioConceptoRetencionSRI;\r\n/* 123: */ }", "public String getR() {\n\t\treturn R;\r\n\t}", "public Piirrettava arvoKulma() {\n if (!kulmat.isEmpty()) {\n return kulmat.get(new Random().nextInt(kulmat.size()));\n }\n return null;\n }", "public void viewRoads(){\n for(int i = 0; i < roads.size(); i++)\n System.out.println(\"[\" + (i+1) + \"] \" + roads.get(i).getName());\n }", "public FishingRod getBestRod();", "public String ricerca() {\n\t\tfinal String methodName = \"ricerca\";\n\t\tRicercaSinteticaModulareDocumentoEntrata request = model.creaRequestRicercaSinteticaModulareDocumentoEntrata();\n\t\tlogServiceRequest(request);\n\t\tRicercaSinteticaModulareDocumentoEntrataResponse response = documentoEntrataService.ricercaSinteticaModulareDocumentoEntrata(request);\n\t\tlogServiceResponse(response);\n\t\t\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\tlog.info(methodName, \"Errori nella ricerca sintetica delle fatture\");\n\t\t\taddErrori(response);\n\t\t\treturn SUCCESS;\n\t\t}\n\t\tif(response.getTotaleElementi() == 0) {\n\t\t\t//imposto nel model un errore: non ho trovato nessun elemento\n\t\t\tlog.debug(methodName, \"Nessun elemento trovato corrispondente ai parametri di ricerca\");\n\t\t\taddErrore(ErroreCore.NESSUN_DATO_REPERITO.getErrore());\n\t\t\treturn SUCCESS;\n\t\t}\n\t\t// Imposto in sessione la request\n\t\tlog.debug(methodName, \"Imposto in sessione la request\");\n\t\tsessionHandler.setParametroXmlType(BilSessionParameter.REQUEST_RICERCA_DOCUMENTI_ENTRATA, request);\n\t\t\n\t\t//imposto in sessione la lista ottenuta dal servizio\n\t\tlog.debug(methodName, \"Imposto in sessione la lista\");\n\t\tsessionHandler.setParametro(BilSessionParameter.RISULTATI_RICERCA_DOCUMENTI_ENTRATA, response.getDocumenti());\n\t\t\n\t\tlog.debug(methodName, \"Imposto la stringa da visualizzare nei risultati ricerca\");\n\t\t//se sono arrivata qui, ho sicuramente impostato questi filtri di ricerca\n\t\tList<TipoDocumento> listaTipoDocumento = sessionHandler.getParametro(BilSessionParameter.LISTA_TIPO_DOCUMENTO);\n\t\tList<TipoAtto> listaTipoAtto = sessionHandler.getParametro(BilSessionParameter.LISTA_TIPO_ATTO_AMMINISTRATIVO);\n\t\tList<StrutturaAmministrativoContabile> listaStrutturaAmministrativoContabile = sessionHandler.getParametro(BilSessionParameter.LISTA_STRUTTURA_AMMINISTRATIVO_CONTABILE);\n\t\t\n\t\t//setto in sessione le informazioni che devono essere mostrate in tutte le pagine\n\t\tsessionHandler.setParametro(BilSessionParameter.RIEPILOGO_RICERCA_DOCUMENTO,\n\t\t\t\tmodel.componiStringaRiepilogo(model.getDocumentoEntrata(), listaTipoDocumento, listaTipoAtto, listaStrutturaAmministrativoContabile));\n\t\tsessionHandler.setParametro(BilSessionParameter.IMPORTO_TOTALE_RICERCA, response.getImportoTotale());\n\t\t//setto in sessione i parametri che servono per non far sbarellare datatable\n\t\tsessionHandler.setParametro(BilSessionParameter.RIENTRO_POSIZIONE_START, null);\n\t\tsessionHandler.setParametro(BilSessionParameter.RIENTRO, null);\n\t\t\n\t\t//imposto i valodi nel model\n\t\tlog.debug(methodName, \"Imposto il totale\");\n\t\tmodel.setImportoTotale(response.getImportoTotale());\n\t\treturn SUCCESS;\n\t}", "public java.lang.String getOrigen(){\n return localOrigen;\n }" ]
[ "0.6392349", "0.6237893", "0.62108123", "0.6163004", "0.608848", "0.6070472", "0.6007237", "0.5993652", "0.5786284", "0.5752943", "0.5738579", "0.57359266", "0.57308996", "0.5654757", "0.56503654", "0.5626518", "0.5617035", "0.561094", "0.5578138", "0.5576565", "0.5573009", "0.5554214", "0.5529316", "0.5509771", "0.5492212", "0.5489492", "0.54830575", "0.54612714", "0.5451425", "0.5447769", "0.5446637", "0.54301536", "0.53961414", "0.53855777", "0.53733915", "0.53692985", "0.5362503", "0.5356637", "0.53508747", "0.5348151", "0.5338836", "0.53370476", "0.5331754", "0.5326193", "0.53190446", "0.5315739", "0.53132856", "0.5306939", "0.5304421", "0.528542", "0.5279174", "0.52746075", "0.52712816", "0.5262709", "0.5258964", "0.52586263", "0.5251914", "0.5249781", "0.5244084", "0.523801", "0.5236099", "0.52328026", "0.5232546", "0.52144384", "0.5204924", "0.5198984", "0.51959246", "0.51916564", "0.51778334", "0.5172902", "0.5166451", "0.51661", "0.515939", "0.5157871", "0.51504236", "0.5147108", "0.5146102", "0.514168", "0.51385206", "0.5138223", "0.51248306", "0.5122606", "0.51177275", "0.51150405", "0.5108773", "0.5099341", "0.50951815", "0.5093559", "0.5089679", "0.508708", "0.50859237", "0.5085168", "0.50779736", "0.50743973", "0.50648105", "0.505728", "0.50553375", "0.5054405", "0.5052552", "0.5044282" ]
0.551332
23
/======================================================================================== Metodo que calcula a altura negra /======================================================================================== Metodo de busca de um elemento com chave x na arvore
public Node buscarElemento(String x){ //verifica se a arvore é vazia if (raiz == null){ pos = 0; return raiz; } if(pr == nil){ pr = raiz; } //testa se o no é vazio if(pr == null)return null; //achou o no else if (pr.conteudoNo.equals(x)){ Node aux=pr; pr=raiz; return aux; } //no a esquerda else if((compare(x, pr.conteudoNo)) < 0){ // faz comparação, se palavra menor que nó aux = pr; pr = pr.esq; aux.esq = pr; pos = 1; //posicao indica a insersao na esquerda - valor definido 1(esquerda) e 2(direita) return buscarElemento(x); } else { aux = pr; pr= pr.dir; aux.dir = pr; pos = 2;//posicao indica a insercao na direita - valor definido 1(esquerda) e 2(direita) return buscarElemento(x); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int altura(Arvore no) \n { \n if (no == null) \n return 0; \n else\n { \n /* Calcula a altura de cada subarvore */\n int alturaEsq = altura(no.esquerda); \n int alturaDir = altura(no.direita); \n \n /* usa a altura maior */\n if (alturaEsq > alturaDir) \n return(alturaEsq+1); \n else \n return(alturaDir+1); \n } \n }", "private void ufotAlemmasOikeassaReunassa(Ufo ufo, int x) {\n if (ufo.isVisible()) {\n if (x >= RuudunLeveys - RuudunOikeaReuna && suunta != -1) {\n suunta = -1;\n Iterator i1 = ufot.iterator();\n while (i1.hasNext()) {\n ufo = (Ufo) i1.next();\n ufo.setY(ufo.getY() + UfotLiikkuvatRivinALas);\n }\n }\n }\n }", "private void ufotAlemmasVasReunassa(Ufo ufo, int x) {\n if (ufo.isVisible()) {\n if (x <= RuudunVasenReuna && suunta != 1) {\n suunta = 1;\n Iterator i2 = ufot.iterator();\n while (i2.hasNext()) {\n ufo = (Ufo) i2.next();\n ufo.setY(ufo.getY() + UfotLiikkuvatRivinALas);\n }\n }\n }\n }", "public static int seleccionarCarro(Mano[] jug){//error no vio la 0,0\n int numeroDoble=6;\n int toret=0;\n while(numeroDoble>=0){\n int n=0;\n while(n<jug.length){\n int f=0;\n while( f<jug[n].getNPiezas() && \n (jug[n].getUnaPieza(f).getN1()!=numeroDoble || jug[n].getUnaPieza(f).getN2()!=numeroDoble))\n f++;\n \n if(f<jug[n].getNPiezas()){\n System.out.println(\"Encontrada la \"+numeroDoble+\",\"+numeroDoble\n +\", la tiene él jugador \"+(n+1)+\" y el tiene \"\n + \"el primer turno\");\n toret=n;\n numeroDoble=-10;\n \n }\n n++;\n }\n numeroDoble-=1;\n }\n if(numeroDoble==-1){\n toret=(int) (Math.random()*jug.length);\n System.out.println(\"No se ha encontrado ningun jugador con alguna pieza doble.\\n\"\n + \"Empieza el jugador \"+toret);\n }\n return toret;\n }", "public void alustaAlue() {\n if (x >= 1) {\n for (int i = 0; i < x; i++) {\n this.ruudukko[i] = new ArrayList<Ruutu>();\n for (int j = 0; j < x; j++) {\n this.ruudukko[i].add(new Ruutu(taso));\n }\n }\n for (int i = 0; i < x; i++) {\n for (int j = 0; j < x; j++) {\n ArrayList<Ruutu> lista = this.ruudukko[i];\n if (lista.get(j).isMiina()) {\n lisaaMiina(i, j);\n } else {\n this.ruudut++;\n }\n }\n }\n }\n\n }", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "public int altura() {\n if (this.elemento == null) {\n return 0;\n } else {\n return altura(this);\n }\n\n }", "public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }", "public void ordenarXNombreSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++) {\r\n\t\t\t\tif((datos.get(j).compare(datos.get(j), menor))==(-1)) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public Cuadro getCuadro(final int x, final int y){\r\n if(x < 0 || y < 0 || x >= ancho || y >=alto){ //permite la salida del array para que se pueda \"salir\" del mapa generado.\r\n return Cuadro.VACIO;\r\n }\r\n switch (cuadros[x + y * ancho]) {\r\n case 0:\r\n return Cuadro.TIERRA;\r\n case 1:\r\n return Cuadro.AGUA;\r\n case 2:\r\n return Cuadro.BANDERA_P1;\r\n case 3:\r\n return Cuadro.BANDERA_P2;\r\n case 4:\r\n return Cuadro.DETALLE_PARED1;\r\n case 5:\r\n return Cuadro.ESPINO_INF_CON_DETALLE;\r\n case 6:\r\n return Cuadro.ESPINO_INF_SIN_DETALLE;\r\n case 7:\r\n return Cuadro.ESPINO_SUP;\r\n case 8:\r\n return Cuadro.ESPINO_SUP_TORRE;\r\n case 9:\r\n return Cuadro.ESPINO_SUP_TORRE_DETALLE;\r\n case 10:\r\n return Cuadro.ESQUINA_INF_TORRE_DER;\r\n case 11:\r\n return Cuadro.ESQUINA_INF_TORRE_IZ;\r\n case 12:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA;\r\n case 13:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA_INF;\r\n case 14:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA_MED;\r\n case 15:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA_MED2;\r\n case 16:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA;\r\n case 17:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA_INF;\r\n case 18:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA_MEDIO;\r\n case 19:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA_MEDIO2;\r\n case 20:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER;\r\n case 21:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER_MEDIO;\r\n case 22:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER_MEDIO2;\r\n case 23:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER_MEDIO3;\r\n case 24:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ;\r\n case 25:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ_MEDIO;\r\n case 26:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ_MEDIO2;\r\n case 27:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ_MEDIO3;\r\n case 28:\r\n return Cuadro.HUECO_CUEVA;\r\n case 29:\r\n return Cuadro.INF_MED_TIERRA;\r\n case 30:\r\n return Cuadro.INF_TORRE;\r\n case 31:\r\n return Cuadro.MED_MED_TIERRA;\r\n case 32:\r\n return Cuadro.MURO_INF;\r\n case 33:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_INF_DER;\r\n case 34:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_INF_IZ;\r\n case 35:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_INF_MED;\r\n case 36:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_SUP_DER;\r\n case 37:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_SUP_IZ;\r\n case 38:\r\n return Cuadro.ORILLA_POSTERIOR_CURV;\r\n case 39:\r\n return Cuadro.ORILLA_POSTERIOR_RECT;\r\n case 40:\r\n return Cuadro.PARED_CON_DETALLE;\r\n case 41:\r\n return Cuadro.PARED_CON_DETALLE_SIN_BORDE;\r\n case 42:\r\n return Cuadro.PARED_SIN_DETALLE;\r\n case 43:\r\n return Cuadro.POSTE_FRONTAL;\r\n case 44:\r\n return Cuadro.POSTE_POSTERIOR;\r\n case 45:\r\n return Cuadro.PUENTE_AGUA_DER;\r\n case 46:\r\n return Cuadro.PUENTE_AGUA_IZ;\r\n case 47:\r\n return Cuadro.PUENTE_AGUA_MEDIO;\r\n case 48:\r\n return Cuadro.PUENTE_ORILLA_DER;\r\n case 49:\r\n return Cuadro.PUENTE_ORILLA_IZ;\r\n case 50:\r\n return Cuadro.PUENTE_ORILLA_MED;\r\n case 51:\r\n return Cuadro.PUERTA_ABAJO;\r\n case 52:\r\n return Cuadro.PUERTA_ARRIBA;\r\n case 53:\r\n return Cuadro.SUP_MED_TIERRA;\r\n default:\r\n return Cuadro.VACIO;\r\n }\r\n }", "int aDonde(int x,int y,int x1,int y1){\n \n int m;\n //revision si la posicion del queso es la misma que la del raton \n if(llegue(x,y,x1,y1)==1){\n System.out.println(\"llegue al queso\");\n // retrazo.stop();\n //GB=10; \n return 5;\n }else{\n if(x1==x){//movimiento horizontal en la misma fila \n //System.out.println(\"\");\n m=moverseY(y,y1);//si 0 a la izquierda 1 a la derecha \n \n if(m==0){\n System.out.println(\"el raton se tiene que mover hacia la Izquierda\");\n return 4;\n }else{\n System.out.println(\"el raton se tiene que mover hacia la Derecha\");\n return 2;\n }\n }else{\n if(x1<x){//movimiento hacia arriba\n System.out.println(\"el raton se tiene que mover hacia Arriba\");\n return 1;\n }else{//movimiento hacia abajo\n System.out.println(\"el raton se tiene que mover hacia Abajo\");\n return 3;\n }\n }//fin arriba y abajo\n } //fin if movimiento horizontal \n }", "public void restarVidaA(int x, int y) {\n int i = 0;\n boolean encontrado = false;\n\n while (i < Vampiro.getNumVamp() && !encontrado ) {\n\n if ( lista[i].getX() == x && lista[i].getY() == y) {\n lista[i].restarVida();\n encontrado = true;\n }\n\n i++;\n }\n\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public void adicione(X x) throws Exception{\n\t\tif(x==null)\n\t\t\tthrow new Exception(\"Valor ausente\");\n\t\tif(this.qtd==this.vetor.length)\n\t\t\tthrow new Exception(\"Nao cabe\");\n\t\tif(x instanceof Cloneable)\n\t\t\tthis.vetor[this.qtd]=meuCloneDeX(x);\n\t\telse\n\t\t\tthis.vetor[this.qtd]=x;\n\t\tthis.qtd++;\n\t}", "public String getElementoIndice(int indice) {\n No temp = ini;\n int count = 1;\n \n //Percorre todos os elementos da lista, ate achar o elemento procurado, ou ate chegar ao final\n while (temp != null){\n if (count == indice) {\n //Caso tenha encontrado o elemento\n return temp.getElemento();\n }\n \n temp = temp.getProx();\n count++;\n }\n \n return \"\";\n }", "private int resolver(int x, int y, int pasos) {\n \n \tif(visitado[x][y]){ // si ya he estado ahi vuelvo (como si fuera una pared el sitio en el que ya he estado)\n \t\treturn 0;\n \t}\n \tvisitado[x][y]=true; // marcamos el sitio como visitado y lo pintamos de azul\n \tStdDraw.setPenColor(StdDraw.BLUE);\n \tStdDraw.filledCircle(x+0.5, y+0.5, 0.25);\n \tStdDraw.show(0);\n \tif(x==Math.round(N/2.0)&& y== Math.round(N/2.0)){// Si estoy en la posicion central cambio encontrado y lo pongo true.\n \t\ttotal=pasos;\n \t\tencontrado=true;\n \t\treturn total;\n \t}\n \tif(encontrado)return total;\n \t\n \tdouble random = Math.random()*11;//creo un numero aleatorio\n \t\n \tif(random<3){\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);// voy pal norte y vuelvo a empezar el metodo con un paso mas\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \t}\n \tif (random >=3 && random<6){\n \t\tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \t}\n \tif(random>=6 && random<9){\n \t\tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \t}\n \tif(random >=9){\n \t\tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \t}\n \t\n \tif(encontrado){\n \t\treturn total;\n \t}\n \tStdDraw.setPenColor(StdDraw.GRAY);// si no puedo ir a ningún lado lo pinto de gris \n \tStdDraw.filledCircle(x+0.5, y+0.5, 0.25);\n \tStdDraw.show(0);\n \treturn 0;// vuelvo al punto anterior \n \n }", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "@Override\n\tpublic int sacameVida(ElementoFuente a) {\n\t\treturn 10;\n\t}", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "private double calculaDiametro(){\r\n double diametro;\r\n diametro=((cir.getY()-cir.getX())*2);\r\n return diametro;\r\n }", "private char comprobarConsumoEnergetico(char letra) {\r\n char letras[] = { 'A', 'B', 'C', 'D', 'E', 'F' };\r\n boolean encontrado = false;\r\n this.consumoEnergetico = 'F';\r\n for (int i = 0; i < letras.length && !encontrado; i++) {\r\n if (letras[i]==letra) {\r\n encontrado = true;\r\n this.consumoEnergetico = letra;\r\n }\r\n }\r\n return this.consumoEnergetico;\r\n }", "public String ingresarLetra(String letra, String palabra)throws MyException{\n String respuesta=\"\";\n if(Integer.toString(1).equals(letra)||Integer.toString(2).equals(letra)||Integer.toString(3).equals(letra)||Integer.toString(4).equals(letra)||Integer.toString(5).equals(letra)||Integer.toString(6).equals(letra)||Integer.toString(7).equals(letra)||Integer.toString(8).equals(letra)||Integer.toString(9).equals(letra)||Integer.toString(0).equals(letra)||letra.equals(letra.toUpperCase())){\n throw new MyException(\"Debe ingresar una letra en minúsculas(a-z)\");\n }else{\n if(palabra.contains(letra)){\n if(this.palabra.contains(\"-\")){\n for(int i=0;i<this.palabra.length();i++){\n if((letra.toLowerCase().equals(palabra.toLowerCase().substring(i,i+1)))){\n respuesta+=palabra.subSequence(i, i+1);\n }else{\n respuesta+=\"-\";\n }\n }\n }else{\n for(int i=0;i<this.palabra.length();i++){\n if((letra.toLowerCase().equals(palabra.toLowerCase().substring(i,i+1)))){\n respuesta+=palabra.subSequence(i, i+1);\n }else{\n respuesta+=\"-\";\n }\n }\n this.palabra=respuesta;\n }\n }else{\n respuesta=this.ocultarPalabra(this.palabra);\n this.oportunidades-=1;\n try{\n this.cambiarEstadoImagen();\n }\n catch(NullPointerException ex){\n JOptionPane.showMessageDialog(null, \"No se pudo actualizar la imagen del ahorcado :(\\n\\n Imagen no encontrada\");\n }\n }\n return respuesta;\n }\n }", "public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }", "public void colorearSecuencialAlternativo() {\n\t\tint color;\n\t\tcantColores = 0;\n\t\tfor (int i = 0; i < cantNodos; i++) {\n\t\t\tcolor = 1;\n\t\t\t/** Mientras el color no se pueda usar, elijo otro color **/\n\t\t\twhile (!sePuedeColorear(i, color))\n\t\t\t\tcolor++;\n\n\t\t\tnodos.get(i).setColor(color);\n\n\t\t\tif (color > cantColores)\n\t\t\t\tcantColores = color;\n\t\t}\n\t}", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public int getDireccionX(){\n return this.ubicacion.x;\n }", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "public void ordenarXNombre() {\r\n\t\tint random = (int) Math.random() * 3 + 1;\r\n\t\tif(random==1) {\r\n\t\t\tordenarXNombreBurbuja();\r\n\t\t}\r\n\t\telse if(random==2) {\r\n\t\t\tordenarXNombreInsercion();\r\n\t\t}\r\n\t\telse if(random==3) {\r\n\t\t\tordenarXNombreSeleccion();\r\n\t\t}\r\n\t}", "public int getX()\n {\n return rettangoloX; \n }", "public boolean aGagne(char grille[][],int x ){\r\n\r\n boolean aGagne=false;\r\n if(grille.length==x)\r\n aGagne = true;\r\n return aGagne;\r\n }", "private int check_movimento(int x, int y, int choice) {\n\t\t//if sword\t\n\t\tif (labirinto.getLab()[heroi.getX_coord()+x][heroi.getY_coord()+y] == 'E') {\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), ' ');\n\t\t\theroi.setArmado(true);\n\t\t\tif (x == -1)\n\t\t\t\theroi.x_coord_dec();\n\t\t\telse if (x == 1)\n\t\t\t\theroi.x_coord_inc();\n\t\t\telse if (y == -1)\n\t\t\t\theroi.y_coord_dec();\n\t\t\telse\n\t\t\t\theroi.y_coord_inc();\n\t\t\tchange_hero_pos();\n\t\t}\n\t\t//if shield\n\t\telse if (labirinto.getLab()[heroi.getX_coord()+x][heroi.getY_coord()+y] == 'O') {\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), ' ');\n\t\t\theroi.setShielded(true);\n\t\t\tescudo.set_caught(true);\n\t\t\tif (x == -1)\n\t\t\t\theroi.x_coord_dec();\n\t\t\telse if (x == 1)\n\t\t\t\theroi.x_coord_inc();\n\t\t\telse if (y == -1)\n\t\t\t\theroi.y_coord_dec();\n\t\t\telse\n\t\t\t\theroi.y_coord_inc();\n\t\t\tchange_hero_pos();\n\t\t}\n\n\t\t//if dart\n\t\telse if (labirinto.getLab()[heroi.getX_coord()+x][heroi.getY_coord()+y] == '\\\\') {\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), ' ');\n\t\t\theroi.inc_dardos();\n\t\t\tcatch_dardo(heroi.getX_coord()+x,heroi.getY_coord()+y);\n\t\t\tif (x == -1)\n\t\t\t\theroi.x_coord_dec();\n\t\t\telse if (x == 1)\n\t\t\t\theroi.x_coord_inc();\n\t\t\telse if (y == -1)\n\t\t\t\theroi.y_coord_dec();\n\t\t\telse\n\t\t\t\theroi.y_coord_inc();\n\t\t\tchange_hero_pos();\n\t\t}\n\n\t\t//if blank space\n\t\telse if (labirinto.getLab()[heroi.getX_coord()+x][heroi.getY_coord()+y] == ' ') {\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), ' ');\n\t\t\tif (x == -1)\n\t\t\t\theroi.x_coord_dec();\n\t\t\telse if (x == 1)\n\t\t\t\theroi.x_coord_inc();\n\t\t\telse if (y == -1)\n\t\t\t\theroi.y_coord_dec();\n\t\t\telse\n\t\t\t\theroi.y_coord_inc();\n\t\t\tchange_hero_pos();\n\t\t}\n\n\t\t//if exit\n\t\telse if (labirinto.getLab()[heroi.getX_coord()+x][heroi.getY_coord()+y] == 'S') {\n\t\t\tif (checkIfDragonsAreAlive() == false) {\n\t\t\t\tif (inter == 0) \n\t\t\t\t\tconsole_interface.way_out();\n\t\t\t\telse if (inter == 3) \n\t\t\t\t\tMazeDisplay.way_out();\n\t\t\t\telse {}\n\t\t\t\treturn 10;\t\t\t\t\t\t\t\t//finish the game\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (inter == 0)\t\n\t\t\t\t\tconsole_interface.dragon_still_alive();\n\t\t\t\telse if (inter == 3)\n\t\t\t\t\tMazeDisplay.dragon_still_alive();\n\t\t\t\telse {}\n\t\t\t\treturn 9;\t\t\t\t\t\t\t\t//there are dragons alive in the maze therefore the hero cannot exit \n\t\t\t}\n\t\t}\n\n\t\t//if dragon\n\t\telse if (labirinto.getLab()[heroi.getX_coord()+x][heroi.getY_coord()+y] == 'd')\n\t\t\tif (inter == 0) \n\t\t\t\tconsole_interface.dragon_sleeping();\n\t\t\telse if (inter == 3) \n\t\t\t\tMazeDisplay.dragon_sleeping();\n\t\t\telse {}\n\n\t\t//else/if wall\n\t\telse\n\t\t\tif (inter == 0)\t\n\t\t\t\tconsole_interface.wall();\n\t\t\telse if (inter == 3) \n\t\t\t\tMazeDisplay.wall();\n\t\t\telse {}\n\t\treturn choice;\n\t}", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "public Girasol(int x,int y){\n super(x,y);\n this.setComportamiento(\"Crea 20 soles cada 2 turnos\");\n this.setVidas(1);\n this.impresion=\"G(\"+this.getVidas()+\")\";\n this.setDaño(0);\n this.setFrecuencia(2);\n }", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "public static void alturaArbol() {\n int angulo = 35;\n\n double anguloConvert = Math.toRadians(angulo);\n int x = 20;\n int y;\n y = (int) Math.round(x * Math.tan(anguloConvert));\n System.out.println(\"Altura del arbol: \" + y);\n }", "private void showReturn(Node node, int x) {\r\n String a = setToInfinity(x);\r\n String in = \"v\" + node.getId();\r\n Text t = lang.newText(new Offset(-25, -30, pMap.get(node.getId()), \"NE\"),\r\n a, \"i\" + node.getId(), null);\r\n pMap.put(in, t);\r\n Text value = (Text) pMap.get(in);\r\n value.changeColor(\"\", textHighlightColor, null, null);\r\n }", "public int alturaInterativa() {\n if (this.esArbolVacio()) {\n return 0;\n }\n int alturaDelArbol = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n int nroDeNodosDelNivel = colaDeNodos.size();\n while (nroDeNodosDelNivel > 0) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n nroDeNodosDelNivel--;\n }\n alturaDelArbol++;\n }\n return alturaDelArbol; //Altura total del arbol\n }", "public void search(int[] a, int x) {\r\n\t\tlang.setInteractionType(Language.INTERACTION_TYPE_AVINTERACTION);\r\n\t\t// Create Array: coordinates, data, name, display options,\r\n\t\t// default properties\r\n\t TextProperties headerProps = new TextProperties();\r\n\t headerProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\r\n\t Font.SANS_SERIF, Font.BOLD, 24));\r\n\t\tText title = lang.newText(new Coordinates(20,30), \"Exponential Search\",\"titel\", null, headerProps);\r\n\t\t\r\n\t RectProperties rectProps = new RectProperties();\r\n\t rectProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t rectProps.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.CYAN);\r\n\t rectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t \r\n\t Rect hRect = lang.newRect(new Offset(-5, -5, \"titel\",\r\n\t AnimalScript.DIRECTION_NW), new Offset(5, 5, \"titel\", \"SE\"), \"hRect\",\r\n\t null, rectProps);\r\n//\t title.show();\r\n//\t hRect.show();\r\n\t\t\r\n\t\t//Rectangle header = lang.newRect(new Offset(-5, -5), lowerRight, name, display);\r\n\t\tText title_discr = lang.newText(new Coordinates(20, 80), \"Beschreibung des Algorithmus\",\"discr\", null);\r\n\t\tSourceCode discription = lang.newSourceCode(new Coordinates(20, 110),\"beschreibung\",null);\r\n\t\tdiscription.addCodeLine(\"Der Algorithmus in Worten:\", null, 0, null);\r\n\t\tdiscription.addCodeLine(\"\", null, 0, null);\r\n\t\tdiscription.addCodeLine(\"1. Finde den Bereich, in dem das Element vorhanden ist, indem man mit exponentialen Schritten durch das Array iteriert.\", null, 0, null);\r\n\t\tdiscription.addCodeLine(\"2. Führe eine binäre Suche in oben gefundenen Bereich durch.\", null, 0, null);\r\n\t\t\r\n//\t\tMultipleSelectionQuestionModel mulQuestion = new MultipleSelectionQuestionModel(\"1\");\r\n//\t\tmulQuestion.setPrompt(\"Welcher Algorithmus wird oder welche Algorithmen werden im ExponentialSearch verwendet?\");\r\n//\t\tmulQuestion.setNumberOfTries(1);\r\n//\t\tmulQuestion.addAnswer(\"Exponentialsearch\", 1, \"ist ein Bestandteil des Algorithmus\");\r\n//\t\tmulQuestion.addAnswer(\"FindNearestNeighbour\", 0, \"ist kein Bestandteil des Algorithmus\");\r\n//\t\tmulQuestion.addAnswer(\"Binarysearch\", 1, \"ist ein Bestandteil des Algorithmus\");\r\n//\t\tmulQuestion.addAnswer(\"Linearsearch\", 0, \"ist kein Bestandteil des Algorithmus\");\r\n//\t\tmulQuestion.addAnswer(\"Skipsearch\", 0, \"ist kein Bestandteil des Algorithmus\");\r\n//\t\tmulQuestion.addAnswer(\"BruteForce\", 0, \"ist kein Bestandteil des Algorithmus\");\r\n//\t\t\r\n//\t\tlang.addMSQuestion(mulQuestion);\r\n\t\t\r\n\t\tlang.nextStep(\"Einleitung\");\r\n\t\tTrueFalseQuestionModel trueFalseQ1 = new TrueFalseQuestionModel(\"1\", true, 1);\r\n\t\ttrueFalseQ1.setPrompt(\"Exponentialsearch Algorithmus benutzt den Binarysearch Algorithmus.\");\r\n\t\tlang.addTFQuestion(trueFalseQ1);\r\n\t\t\r\n\t\tTrueFalseQuestionModel trueFalseQ2 = new TrueFalseQuestionModel(\"1\", true, 1);\r\n\t\ttrueFalseQ2.setPrompt(\"Das Array muss sortiert sein.\");\r\n\t\tlang.addTFQuestion(trueFalseQ2);\r\n\r\n\t\ttitle_discr.hide();\r\n\t\tdiscription.hide();\r\n\t\t\r\n\t\tText t1 = lang.newText(new Coordinates(20, 80), \"Die zu suchende Zahl:\", \"suchende Zahl\", null);\r\n\t\tText t2 = lang.newText(new Coordinates(20, 100), \"x = \" + x, \"suchende Zahl\", null);\r\n\t\tText t3 = lang.newText(new Coordinates(20, 120), \"Das sortierte Array:\", \"sortierte Array\", null);\r\n\t\tText yellow = lang.newText(new Coordinates(180, 80), \"Gelb: von binären Suche geteilte Array\", \"yellow\", null);\r\n\t\t\r\n\t RectProperties rectProps2 = new RectProperties();\r\n\t rectProps2.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t rectProps2.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.YELLOW);\r\n\t rectProps2.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t \r\n\t Rect hRect2 = lang.newRect(new Offset(-1, -1, \"yellow\",\r\n\t AnimalScript.DIRECTION_NW), new Offset(1, 1, \"yellow\", \"SE\"), \"hRect2\",\r\n\t null, rectProps2);\r\n\t\tText red = lang.newText(new Coordinates(180, 100), \"Rot: Element in Array[i]\", \"red\", null);\r\n\t\t\r\n\t RectProperties rectProps3 = new RectProperties();\r\n\t rectProps3.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t rectProps3.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.RED);\r\n\t rectProps3.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t \r\n\t Rect hRect3 = lang.newRect(new Offset(-1, -1, \"red\",\r\n\t AnimalScript.DIRECTION_NW), new Offset(1, 1, \"red\", \"SE\"), \"hRect3\",\r\n\t null, rectProps3);\t \r\n\t \r\n\t \r\n\t\t// first, set the visual properties (somewhat similar to CSS)\r\n\t\tArrayProperties arrayProps = new ArrayProperties();\r\n\t\tarrayProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\t\tarrayProps.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.WHITE);\r\n\t\tarrayProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, Boolean.TRUE);\r\n\t\tarrayProps.set(AnimationPropertiesKeys.ELEMENTCOLOR_PROPERTY, Color.BLACK);\r\n\t\tarrayProps.set(AnimationPropertiesKeys.ELEMHIGHLIGHT_PROPERTY, Color.RED);\r\n\t\tarrayProps.set(AnimationPropertiesKeys.CELLHIGHLIGHT_PROPERTY, Color.YELLOW);\r\n\r\n\t\t// now, create the IntArray object, linked to the properties\r\n\t\tIntArray ia = lang.newIntArray(new Coordinates(20, 140), a, \"intArray\", null, arrayProps);\r\n\r\n\t\t\r\n\t\t\r\n//\t COUNTER\r\n\t String[] name = {\"Zuweisungen\",\"Zugriffe\"};\r\n\t\tTwoValueCounter counter = lang.newCounter(ia); // Zaehler anlegen\r\n\t CounterProperties cp = new CounterProperties(); // Zaehler-Properties anlegen\r\n\t cp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true); // gefuellt...\r\n\t cp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE); // ...mit Blau\r\n\t // view anlegen, Parameter:\r\n\t // 1. Counter\r\n\t // 2. linke obere Ecke (kann auch Offset nutzen!)\r\n\t // 3. CounterProperties\r\n\t // 4. Anzeige Zaehlerwert als Zahl?\r\n\t // 5. Anzeige Zaehlerwert als Balken?\r\n\t // Alternativ: nur Angabe Counter, Koordinate und Properties\r\n\t TwoValueView view = lang.newCounterView(counter, new Coordinates(260, 30), cp, true, true, name);\r\n\t\t// start a new step after the array was created\r\n\t \r\n\t\tlang.nextStep(\"Initialisierung\");\r\n\t\t\r\n\r\n\t\t// Create SourceCode: coordinates, name, display options,\r\n\t\t// default properties\r\n\r\n\t\t// first, set the visual properties for the source code\r\n\t\tSourceCodeProperties scProps = new SourceCodeProperties();\r\n\t\tscProps.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n\t\tscProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\", Font.PLAIN, 12));\r\n\r\n\t\tscProps.set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n\t\tscProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n\t\t// now, create the source code entity\r\n\t\tSourceCode sc = lang.newSourceCode(new Coordinates(40, 180), \"sourceCode\", null, scProps);\r\n\r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"public int exponentialSearch(int[] arr, int n, int x) {\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" \", null, 0, null); // 1\r\n\r\n\t\tsc.addCodeLine(\"if (arr[0] == x) \", null, 1, null); // 2\r\n\t\tsc.addCodeLine(\"return 0;\", null, 2, null); // 3\r\n\t\tsc.addCodeLine(\" \", null, 1, null); // 4\r\n\r\n\t\tsc.addCodeLine(\"int i = 1;\", null, 1, null); // 5\r\n\t\tsc.addCodeLine(\" \", null, 2, null); // 6\r\n\r\n\t\tsc.addCodeLine(\"while (i < n && arr[i] <= x) \", null, 1, null); // 7\r\n\t\tsc.addCodeLine(\"i = i*2;\", null, 2, null); // 8\r\n\t\tsc.addCodeLine(\" \", null, 4, null); // 9\r\n\r\n\t\tsc.addCodeLine(\"return Arrays.binarySearch(arr, i/2, Math.min(i, n), x); \", null, 1, null); // 10\r\n\t\tsc.addCodeLine(\"}\", null, 0, null); // 11\r\n\t\tsc.addCodeLine(\" \", null, 0, null); // 12\r\n\r\n\t\tsc.addCodeLine(\"public int binarySearch(int[] arr, int left, int right, int x) {\", null, 0, null); // 13\r\n\t\tsc.addCodeLine(\" \", null, 2, null); // 14\r\n\t\tsc.addCodeLine(\"if (right >= 1 && left <= right) {\", null, 1, null); // 15\r\n\t\tsc.addCodeLine(\"int mid = (left + right) / 2;\", null, 2, null); // 16\r\n\t\tsc.addCodeLine(\" \", null, 2, null); // 17\r\n\t\tsc.addCodeLine(\"if (arr[mid] == x)\", null, 2, null); // 18\r\n\t\tsc.addCodeLine(\"return mid;\", null, 3, null); // 19\r\n\t\tsc.addCodeLine(\" \", null, 2, null); // 20\r\n\t\tsc.addCodeLine(\"if (arr[mid] > x)\", null, 2, null); // 21\r\n\t\tsc.addCodeLine(\"return binarySearch(arr, left, mid-1, x);\", null, 3, null); // 22\r\n\t\tsc.addCodeLine(\" \", null, 2, null); // 23\r\n\t\tsc.addCodeLine(\"return binarySearch(arr, mid+1, right, x);\", null, 2, null); // 24\r\n\t\tsc.addCodeLine(\"}\", null, 1, null); // 25\r\n\t\tsc.addCodeLine(\"return -1;\", null, 1, null); // 26\r\n\t\tsc.addCodeLine(\"}\", null, 0, null); // 27\r\n\r\n\t\tlang.nextStep();\r\n\t\t// Highlight all cells\r\n\t\tia.highlightCell(0,ia.getLength()-1, null, null);\r\n\t\tint foundIndex = -1;\r\n\t\ttry {\r\n\t\t\t// Start Exp. Search\r\n\t\t\tfoundIndex = exponentialSearch(ia, sc, (ia.getLength() - 1), x);\r\n\t\t} catch (LineNotExistsException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tTextProperties textProp = new TextProperties();\r\n\t\t//textProp.set(AnimationPropertiesKeys.SIZE_PROPERTY, 40);\r\n\t\tText t4 = lang.newText(new Coordinates(400, 80), \"Die Zahl \"+ x + \" befindet sich in Index \" + foundIndex, \"Ende\", null, textProp);\r\n\t\tlang.nextStep();\r\n\t\tt1.hide();\r\n\t\tt2.hide();\r\n\t\tt3.hide();\r\n\t\tt4.hide();\r\n\t\tsc.hide();\r\n\t\tia.hide();\r\n\t\tyellow.hide();\r\n\t\tred.hide();\r\n\t\thRect2.hide();\r\n\t\thRect3.hide();\r\n\t\t\r\n\t\tText t5 = lang.newText(new Coordinates(20, 80), \"Zusammenfassung\", \"zusammenfassung\", null);\r\n\t\tSourceCode zsmf = lang.newSourceCode(new Coordinates(20, 110), \"zsmf\", null, scProps);\r\n\t\tzsmf.addCodeLine(\"1. Exponentielle Suche ist nützlich für die unbegrenzte Suche, wo die Größe vom Array gegen unendlich geht.\", null, 0, null);\r\n\t\tzsmf.addCodeLine(\"2. Die Performenz ist besser als die der en Suche für endlich große Arrays.\", null, 0, null);\r\n\t\t\r\n\t\tSourceCode zsmf2 = lang.newSourceCode(new Coordinates(20, 150), \"zsmf2\", null, scProps);\r\n\t\tzsmf2.addCodeLine(\"Komplexität in Abhängigkeit der Zeit:\", null, 0, null);\r\n\t\tzsmf2.addCodeLine(\"Worst-case - O(log i) + O(log i) = 2 O(log i)\", null, 1, null);\r\n\t\tzsmf2.addCodeLine(\"Best-case - O(1)\", null, 1, null);\r\n\t\tzsmf2.addCodeLine(\"Average-case - O(log i) + O(log i) = 2 O(log i)\", null, 1, null);\r\n\t\tzsmf2.addCodeLine(\"Hinweis: i steht für den Index des gesuchten Elements.\", null, 1, null);\r\n\t\tzsmf2.addCodeLine(\"Es werden jeweils die Komplexität des ersten und des zweiten Algorithmus zusammenaddiert\", null, 2, null);\r\n\t\tzsmf2.addCodeLine(\"Die Komplexität für den exponentiellen Teil ist log(i).\", null, 2, null);\r\n\t\tzsmf2.addCodeLine(\"Die Komplexität für den en Teil ist aufgrund der Begrenzung nicht mehr log(n), sondern log(i), da log(2^(log(i)-1)) = log(i)-1 = O(log(i))\", null, 2, null);\r\n\r\n\r\n\t\tTrueFalseQuestionModel trueFalseQ3 = new TrueFalseQuestionModel(\"3\", false, 1);\r\n\t\ttrueFalseQ3.setPrompt(\"Das Array darf keine doppelten Elemente enthalten\");\r\n\t\tlang.addTFQuestion(trueFalseQ3);\r\n\r\n\t\tlang.nextStep(\"Fazit\");\r\n\t\tlang.finalizeGeneration();\r\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public NodoCaracter getArbolRaiz() {\n return inicio;\n }", "public Arbre residuelSousArbre(char c){\n\t\tArbre g, d;\n\t\tif(this.symbole == '.'){\n\t\t\tif(gauche.contientMotVide){\n\t\t\t\tg = gauche.residuelSousArbre(c);\n\t\t\t\td = droit.clone();\n\t\t\t\tif(g == null || d == null) g = null;\n\t\t\t\telse g = new Binaire('.', g, d);\n\t\t\t\td = droit.residuelSousArbre(c);\n\t\t\t\tif(g == null && d == null) return null;\n\t\t\t\tif(g == null) return d;\n\t\t\t\tif(d == null) return g;\n\t\t\t\treturn new Binaire('+', g, d);\n\t\t\t}\n\t\t\tg = gauche.residuelSousArbre(c);\n\t\t\td = droit.clone();\n\t\t\tif(g == null || d == null) return null;\n\t\t\treturn new Binaire('.', g, d);\n\t\t}else{\n\t\t\tg = gauche.residuelSousArbre(c);\n\t\t\td = droit.residuelSousArbre(c);\n\t\t\tif(g == null && d == null) return null;\n\t\t\tif(g == null) return d;\n\t\t\tif(d == null) return g;\n\t\t\treturn new Binaire('+', g, d);\n\t\t}\n\t}", "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }", "public void ComenzarJuego() {\n Random R = new Random();\n int i = -1; // declaro una variable i(intentos como deducion) para realizar la la busqueda de dicha palabra\n do{ //inicio un ciclo tipo (do) para que intentos sea igual a R.nextInt(palabras) en teoria el bucle\n //se ejecuta obligatoriamente\n i = R.nextInt(PalabrasAdivinar.length);\n \n }while (posicion == i); //si la condicion posicion se cumple, posicion va ser igual a i(intentos)\n posicion = i;\n palabras = PalabrasAdivinar[posicion];\n \n // y palbras va ser igual a PalabrasAdivinadar\n for (i = 0; i < palabras.length(); i++);{ \n //el ciclo for que es i(intentos) va ser igual a cero, donde inicia posicion, la condicion i va ser menor a palabras (relaciona),{ // y la ultima va manipular los valores que mencionamos\n if(palabras.charAt(i)!) // si se cumple palabras va ser igual a '' y solucion = caract sino = espacio para generar las palabras\n Solucion += (\"_\"); // debemos pensar que es muy necesario por el hecho de los espacios si por ejemplo gears of war \n else \n Solucion += (\" \");\n \n }\n \n Dibujar();\n \n }", "private static Nodo construir(String fx){\n Stack<Nodo> pila=new Stack<>();//aqui se guardaran los Nodos;\n for(int i=0;i<fx.length();i++) {\n char caracter = fx.charAt(i);\n if (caracter == '+' || caracter == '*' || caracter == '/' || caracter == '-') { /*cuando es una operacion,\n se crea un Nodo cuya raiz es la operacion, su Nodo derecho es el elemento que le sigue en la pila y su Nodo\n izq es el siguiente*/\n Nodo aux = new Nodo();\n aux.info = \"\" + caracter;\n aux.der = pila.pop();\n aux.izq = pila.pop();\n pila.push(aux);\n } else if (isDigit(caracter) || isLetter(caracter)) { /*cuando es un número o variable, se crea un nodo con\n su valor y se apila*/\n Nodo aux = new Nodo(\"\" + caracter, null, null);\n pila.push(aux);\n }\n }\n return pila.pop();\n }", "public JMenuItem getNegrita() {return negrita;}", "public int obtenerFE(nodoArbolAVL x){\n if(x== null){\n return -1;\n }else{\n return x.fe;\n }\n }", "public static void main(String[] args) { \n /* Grafo grafo = new Grafo();\n \n No no;\n no = new No(\"1\");//0\n grafo.addNo(no);\n no = new No(\"2\");//1\n grafo.addNo(no);\n no = new No(\"3\");//2\n grafo.addNo(no);\n no = new No(\"4\");//3\n grafo.addNo(no);\n no = new No(\"5\");//4\n grafo.addNo(no);\n no = new No(\"6\");//5\n grafo.addNo(no);\n no = new No(\"7\");//6\n grafo.addNo(no);\n \n //Cria as arestas do nó\n \n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 2);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 5);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 4);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 2);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(4), 7);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 1);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(4), 4);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(5), 3);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 4);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(5), 1);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 5);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 7);\n \n No no;\n no = new No(\"SF\");//0\n grafo.addNo(no);\n no = new No(\"LA\");//1\n grafo.addNo(no);\n no = new No(\"D\");//2\n grafo.addNo(no);\n no = new No(\"C\");//3\n grafo.addNo(no);\n no = new No(\"A\");//4\n grafo.addNo(no);\n no = new No(\"B\");//5\n grafo.addNo(no);\n no = new No(\"NY\");//6\n grafo.addNo(no);\n no = new No(\"M\");//7\n grafo.addNo(no);\n \n \n //Cria as arestas do nó\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 39);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 89);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 120);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(6), 210);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 50);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(6), 170);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 65);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 79);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(6), 59);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(4), 99);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 80);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(7), 70);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 20);\n Aresta.inserirAresta(grafo.getNo(6), grafo.getNo(7), 66);*/\n \n Grafo grafo = GrafoAleatorioKruskal.gerar(1000, 10, 10, 100);\n //Gera a arvore geradora com custo minimo\n grafo.kruskal();\n \n //TESTE\n int teste = grafo.getNo(0).getConjunto();\n boolean answer = true;\n for(No n : grafo.getNos()){\n if (teste!= n.getConjunto()){\n answer = false;\n }\n }\n if(answer){\n System.out.println(\"Todos os nós pertecem ao mesmo conjunto\");\n }\n else{\n System.out.println(\"Deu erro\");\n }\n }", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "private int spurEinteilen(boolean money)\n {\n Random rnd_spur = new Random();\n int spur = rnd_spur.nextInt(MAXIMALE_ANZAHL_ROW_OBSTACLE);\n int x = 0;\n\n int ab2;\n\n if (money) {\n ab2 = (int) Math.round((way_X[1] - way_X[0]) * ABSTAND_SPURLINIE_MONEY);\n } else {\n ab2 = (int)Math.round((way_X[1] - way_X[0]) * ABSTAND_SPURLINIE_OBSTACLE);\n }\n\n for (int i = 0; i < MAXIMALE_ANZAHL_ROW_OBSTACLE; i++)\n {\n if (spur == i)\n {\n x = way_X[i] + ab2;\n }\n }\n\n return x;\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public String getJawabanBenar(int x){\n String jawaban = jawabanBenar[x];\n return jawaban;\n }", "private ArrayList<Unidad> seleccionarAEliminar(DefaultMutableTreeNode raiz) {\n\n ArrayList<Unidad> aEliminar = new ArrayList<Unidad>();\n\n if (raiz.getChildCount() != 0) {\n for (int i = 0; i < raiz.getChildCount(); i++) {\n aEliminar.addAll(seleccionarAEliminar((DefaultMutableTreeNode) raiz.getChildAt(i)));\n }\n }\n\n aEliminar.add(((UnidadUserObject) raiz.getUserObject()).getUnidad());\n\n return aEliminar;\n }", "public Nodo(String molecula) throws Exception {\n valor = molecula;\n nodoIzq = nodoDer = null;\n if (valor.length() > 1) {\n conectorPrincipal = buscarConectorPrincipal(valor);\n System.out.println(\"conector principal\" + conectorPrincipal);\n if (conectorPrincipal == '0') {\n throw new Exception(\"La expresion no es FBF\");\n }\n generarArbol();\n } else {\n try {\n conectorPrincipal = valor.charAt(0);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Cadena De Caracteres Vacia\");\n }\n\n }\n }", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void enemymoveAri(){\n\t\tint YEari = 0;\n\t\tint XEari = 0;\n\t\tfor(int i = 0 ; i < this.Ari.length;i++){\n\t\t\tfor(int p = 0; p < this.Ari.length;p++){\n\t\t\t\tif(this.Ari[i][p] == 1){\n\t\t\t\t\tYEari = i;\n\t\t\t\t\tXEari = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint move = fate.nextInt(4);// 0 is left, 1 is right , 2 is up , 3 is down\n\t\tswitch(move){//first block is up and down second block is left and right\n\t\t\tcase 0:\n\t\t\t\tif(this.area[YEari][XEari-1] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari][XEari-1] = 1;//to turn left\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(this.area[YEari][XEari+1] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari][XEari+1] = 1;//to turn right\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak; \n\t\t\tcase 2:\n\t\t\t\tif(this.area[YEari-1][XEari] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari-1][XEari] = 1;//to turn up\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(this.area[YEari+1][XEari] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari +1][XEari] = 1;//to turn down\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}//end of switch\n\t}", "@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void calcularEsquinas(double x, double y) {\n\t\t//Columas alrededor del objeto\n\t\tint izqTile = (int)(x - clanchura / 2) / tamTile;\n\t\tint derTile = (int)(x + clanchura / 2 -1) / tamTile;\n\t\tint arribaTile = (int)(y - claltura / 2) / tamTile;\n\t\tint abajoTile = (int)(y + claltura / 2 -1) / tamTile;\n\t\t\n\t\tint ai = mapaTile.getTipo(arribaTile, izqTile);\n\t\tint ad = mapaTile.getTipo(arribaTile,derTile);\n\t\tint bi = mapaTile.getTipo(abajoTile, izqTile);\n\t\tint bd = mapaTile.getTipo(abajoTile,derTile);\n\t\t\n\t\tarribaIzq = ai == Tile.BLOQUEADO;\n\t\tarribaDer = ad == Tile.BLOQUEADO;\n\t\tabajoIzq = bi == Tile.BLOQUEADO;\n\t\tabajoDer = bd == Tile.BLOQUEADO;\n\t\t\n\t}", "private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }", "public static void quienHaGanado(Mano[] jugadores, int actual,int carro){\n if(jugadores[actual].getNPiezas()!=0){\n boolean dosIguales=false;\n actual=0;\n for (int i = 1; i < jugadores.length; i++) {\n if(jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()){//El jug i y el actual tienen la misma putnuacion\n if(i==carro){//el jugador i es el carro\n actual=i;\n dosIguales=false;\n }\n else if(actual==carro){//el jugador actual es el carro\n dosIguales=false;\n }\n else{//ninguno es el carro y hay que acudir a un metodo para nombrar a los dos ganadores.\n dosIguales=true;\n }\n }\n if(jugadores[i].getPuntuacion()<jugadores[actual].getPuntuacion()){//el jugador i tiene menor puntuacion que el jugador actual\n actual=i;\n dosIguales=false;\n }\n }\n if(dosIguales){\n System.out.println(\"pene\");\n Excepciones.cambiarColorAzul(\"Y los GANADORES SON....\");\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i].getPuntuacion()==jugadores[actual].getPuntuacion()) {\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(i+1)+\": \"+jugadores[i].getNombre());\n }\n }\n System.out.println(\"\\u001B[30m\");\n }\n else{\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }\n else {\n Excepciones.cambiarColorAzul(\"Y el GANADOR ES....\");\n //System.out.println(\"\\t\\t\\u001B[34mEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre()+\"\\u001B[30m\");\n Excepciones.cambiarColorAzul(\"\\t\\tEl jugador nº- \"+(actual+1)+\": \"+jugadores[actual].getNombre());\n }\n }", "public int[] choisir(int[] coord)\r\n {\r\n int[] res = new int[3]; //tableau a rendre\r\n int x = coord[0];\r\n int y = coord[1]; //récupération des coordonnées\r\n int[] voisinage= new int[4]; //tableau qui regardera les cases adjacentes à la case cherchée\r\n voisinage[0] = getValHaut(x,y);\r\n voisinage[1] = getValDroite(x,y);\r\n voisinage[2] = getValBas(x,y);\r\n voisinage[3] = getValGauche(x,y);\r\n System.out.println(\"je choisis la case \"+x+\" \"+y+\"\");\r\n for(int i = 0; i<voisinage.length; i++ ) //parcours des possibilités si on joue sans créer d'opportunités adverses\r\n {\r\n if (Vision[x][y][i+1] == 0) //si il n'y a pas de trait déja tracé\r\n {\r\n if (voisinage[i] != 2) //si la case adjacente n'a pas déja deux traits dessinés\r\n {\r\n switch (i) //switch pour réagir selon la case a jouer\r\n {\r\n case 0:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n\r\n case 1:\r\n res[0]=x+1;\r\n res[1]=y;\r\n break;\r\n\r\n case 2:\r\n res[0]=x;\r\n res[1]=y+1;\r\n break;\r\n\r\n case 3:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n }\r\n //fin du switch sur i\r\n\r\n res[2]=i%2;\r\n return res;\r\n }\r\n //fin du si la case adjacente a déja 2 traits dessinés\r\n }\r\n //si il n'y a pas de trait déja tracé\r\n }\r\n //fin du for de parcours des possibilités de jouers sans créer d'opportunités adverses\r\n\r\n for(int i=0; i<voisinage.length ; i++ ) //Parcours des possibilités sans recherche d'opportunités\r\n {\r\n if (Vision[x][y][i+1] == 0) {\r\n switch (i) //switch pour réagir selon la case a jouer\r\n {\r\n case 0:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n\r\n case 1:\r\n res[0]=x+1;\r\n res[1]=y;\r\n break;\r\n\r\n case 2:\r\n res[0]=x;\r\n res[1]=y+1;\r\n break;\r\n\r\n case 3:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n }\r\n //fin du switch sur i\r\n\r\n res[2]=i%2;\r\n return res;\r\n }\r\n }\r\n //fin du parcours de possibilité sans recherche\r\n return tabVide;\r\n }", "public void ordenarXNombreBurbuja() {\r\n\t\tfor (int i = datos.size(); i > 0; i-- ) {\r\n\t\t\tfor (int j=0; j<i-1; j++) {\r\n\t\t\t\tif(\tdatos.get(j).compare(datos.get(j), datos.get(j+1)) == (1)) {\r\n\t\t\t\t\tJugador tmp = datos.get(j);\r\n\t\t\t\t\tdatos.set(j, datos.get(j+1));\r\n\t\t\t\t\tdatos.set((j+1), tmp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "int calculaX(){\n int n;\n if(pratonl[0][0]==pquesol[0][0]){//evalua si esta en la misma fila\n n=0;\n }else{\n n=pquesol[0][0]-pratonl[0][0]; \n }\n return n;\n }", "public int pedirElemento(){\n int opcion = -1;\n\n do {\n Lib.limpiarPantalla();\n System.out.println(\"Cual elemento quieres alquilar?\");\n System.out.println(\"1. Nueva pelicula\");\n System.out.println(\"2. Nuevo Videojuego\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 2) {\n System.out.println(\"Elija una opción del menú [0-2]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 2);\n return opcion;\n\n }", "public void Ganhou() {\n\t\tString[] g = new String[10]; \n\t\tg[0] = m[0][0] + m[0][1] + m[0][2];\n\t\tg[1] = m[1][0] + m[1][1] + m[1][2];\n\t\tg[2] = m[2][0] + m[2][1] + m[2][2];\n\t\t\n\t\tg[3] = m[0][0] + m[1][0] + m[2][0];\n\t\tg[4] = m[0][1] + m[1][1] + m[2][1];\n\t\tg[5] = m[0][2] + m[1][2] + m[2][2];\n\t\t\n\t\tg[6] = m[0][0] + m[1][1] + m[2][2];\n\t\tg[7] = m[2][0] + m[1][1] + m[0][2];\n\t\tg[8] = \"0\";\n\t\tg[9] = \"0\";\n\t\t\n\t\tfor(int i= 0; i<10; i++) {\n\t\t\tif(g[i].equals(\"XXX\")){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"X GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\temp = 0; \n\t\t\t\tbreak;\n\t\t\t} else if (g[i].equals(\"OOO\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"O GANHOU\");\n\t\t\t\tacabou = true;\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t\tif (emp == 9) {\n\t\t\tJOptionPane.showMessageDialog(null,\"EMPATOU\");\t\n\t\t\tacabou = true;\n\t\t}\n\t}", "public static int searchXElement(int n) {\n if (inicio != null) { // Verifica se a lista e vazia\n auxiliar = inicio; // Aponta o auxiliar para o inicio\n for (int i = 0; i < n - 1; i++) {\n auxiliar = auxiliar.getNext(); // Aponta o auxiliar para o\n // proximo ate chegar a posicao\n // desejada\n }\n \n return auxiliar.getInfo();// Retorna a info do node buscado\n }\n return 0;\n }", "public int resta(){\r\n return x-y;\r\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "public boolean ganar(){\r\n\t\t\r\n\t\tboolean estadoVictoria = false;\r\n\t\t\r\n\t\tfor(int x = 0; x < palabras.size(); x++) \r\n\t\t{\r\n\t\t\tfor(int y = 0; y < palabras.get(x).size(); y++) \r\n\t\t\t{\r\n\t\t\t\tif (palabras.get(x).get(y).getEstado() == false) \r\n\t\t\t\t{\r\n\t\t\t\t\t//System.out.print(\"estoy aqui\");\r\n\t\t\t\t\tx = palabras.size()-1;\r\n\t\t\t\t\ty = palabras.get(x).size() - 1;\r\n\t\t\t\t\t\r\n\t\t\t\t}else if (x+1 == palabras.size() && y+1 == palabras.get(x).size() && palabras.get(x).get(y).getEstado() == true) {\r\n\t\t\t\t\t\r\n\t\t\t\t\testadoVictoria = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn estadoVictoria;\r\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private void recolteNourriture() {\r\n\t\t\t//1pop recolte toute la case\r\n\t\t\tint tempNourr = 0;\r\n\t\t\tint totalPop = population + populationColoniale;\r\n\t\t\tint limite = (totalPop < caseOwned.size()) ? totalPop : caseOwned.size();\r\n\t\t\tfor(int id = 0; id < limite; id++) {\r\n\t\t\t\ttempNourr += caseOwned.get(id).getFood();\r\n\t\t\t}\r\n\t\t\t//animaux\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Bétail) * 10; //Ca mange de l'herbe, ça se tente.\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Cervidés) * 7.5; //CARIBOUUUUUUUUU !!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Crabe) * 2; //ca pique les pied, a mort!!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Elephants) * 30; //polution sonore\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Moutons) * 5; //kébab landais\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Poissons) * 5; //croustibat\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Chevaux) * 7; //lasagnes\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Baleines) * 50; //*bruit de baleine virile*\r\n\t\t\t//aplication des bonus\r\n\t\t\ttempNourr *= (1 + (0.15 * scienceLvl) + (0.05 * (bonheur - baseBonheur))); // +15% par scienceLvl +5% par bonheur excedentaire, -5% par bonheur négatif\r\n\t\t\t\r\n\t\t\tnourriture += tempNourr;\r\n\t\t\t//bonus de conservation grâce au sel\r\n\t\t\tif(howManyRessource(StrategicRessource.Sel) > 0 && nourriture > 0) nourriture *= 1.10;\r\n\t\t\t//limitation de stockage\r\n\t\t\tint stockageMax = caseOwned.size() * 100 * scienceLvl;\r\n\t\t\tif(nourriture > stockageMax) nourriture = stockageMax;\r\n\t\t}", "private static int digitarAntiguedad() {\n\t\tint antiguedad;\n\t\tSystem.out.println(\"Digite la antiguedad en aņos: \");\n\t\tantiguedad = teclado.nextInt();\n\t\treturn antiguedad;\n\t}", "public String IndicadorCaracteres(String palabra){\n\t\tint aux=-1;\n\t\t\t//Analiza los 17 primeros símbolos de la matriz \"simbolos\" que son los caracteres\n\t\t\t//tentativos que la palabra podría tener\n\t\t\tfor(int i=0; i<17; i++) {\n\t\t\t\t//Se verifica si la palabra contiene algún de los símbolos\n\t\t\t\tif(palabra.contains(simbolos[0][i])) {\n\t\t\t\t\t//Variable auxiliar para conocer el caracter \n\t\t\t\t\taux=i;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn (aux!=-1)? simbolos[0][aux]:\"\";\n\t}", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "private List<ItemMovement> uitGraven(Slot slot, Gantry gantry){\n\n List<ItemMovement> itemMovements = new ArrayList<>();\n Richting richting = Richting.NaarVoor;\n\n //Recursief naar boven gaan, doordat we namelijk eerste de gevulde parents van een bepaald slot moeten uithalen\n if(slot.getParent() != null && slot.getParent().getItem() != null){\n itemMovements.addAll(uitGraven(slot.getParent(), gantry));\n }\n\n //Slot in een zo dicht mogelijke rij zoeken\n boolean newSlotFound = false;\n Slot newSlot = null;\n int offset = 1;\n do { //TODO: als storage vol zit en NaarVoor en NaarAchter vinden geen vrije plaats => inf loop\n // bij het NaarAchter lopen uw index telkens het negatieve deel nemen, dus deze wordt telkens groter negatief.\n //AANPASSING\n Integer locatie = richting==Richting.NaarVoor? (slot.getCenterY() / 10) + offset : (slot.getCenterY() / 10) - offset;\n //we overlopen eerst alle richtingen NaarVoor wanneer deze op zen einde komt en er geen plaats meer is van richting veranderen naar achter\n // index terug op 1 zetten omdat de indexen ervoor al gecontroleerd waren\n if (grondSlots.get(locatie) == null) {\n //Grootte resetten en richting omdraaien\n offset = 1;\n richting = Richting.NaarAchter;\n continue;\n }\n\n Set<Slot> ondersteRij = new HashSet<>(grondSlots.get(locatie).values());\n newSlot = GeneralMeasures.zoekLeegSlot(ondersteRij);\n\n if(newSlot != null){\n newSlotFound = true;\n }\n //telkens één slot verder gaan\n offset += 1;\n }while(!newSlotFound);\n // vanaf er een nieuw vrij slot gevonden is deze functie verlaten\n\n //verplaatsen\n itemMovements.addAll(GeneralMeasures.createMoves(pickupPlaceDuration,gantry, slot, newSlot));\n update(Operatie.VerplaatsIntern, newSlot, slot);\n\n return itemMovements;\n }", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public String getPertanyaan(int x){\n String soal = pertanyaan[x];\n return soal;\n }", "public static int turnoEnemigo(String enemigoRecibido){\n String enemigo; //variables locales a utilizar\n int ataqueEnemigo;\n Random aleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int inferior;\n int superior;\n \n enemigo=enemigoRecibido;//recibiendo al enemigo elegido por la funcion enemigos\n //comparando con los enemigos disponibles\n switch(enemigo){\n case \"Dark_Wolf\":{\n //ejecutando acciones del enemigo Dark\n inferior=10+nivel;\n superior=10+nivel+10;\n ataqueEnemigo=(aleatorio.nextInt(superior-inferior+1)+inferior);\n return ataqueEnemigo;//retornando el ataque de Dark\n }\n case \"Dragon\":{\n inferior=15+nivel; //ejecutando acciones del enemigo Dragon\n superior=15+nivel+10;\n ataqueEnemigo=(aleatorio.nextInt(superior-inferior+1)+inferior);\n return ataqueEnemigo; //retornando ataque del enemigo Dragon\n }\n default:{\n inferior=25+nivel; //ejecutando acciones del enemigo Golem\n superior=25+nivel+10;\n ataqueEnemigo=(aleatorio.nextInt(superior-inferior+1)+inferior);\n return ataqueEnemigo; //retornando ataque del enemigo Golem\n }\n }\n }", "public void atrapar() {\n if( una == false) {\n\t\tif ((app.mouseX > 377 && app.mouseX < 591) && (app.mouseY > 336 && app.mouseY < 382)) {\n\t\t\tint aleotoridad = (int) app.random(0, 4);\n\n\t\t\tif (aleotoridad == 3) {\n\n\t\t\t\tSystem.out.print(\"Lo atrapaste\");\n\t\t\t\tcambioEnemigo = 3;\n\t\t\t\tsuerte = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\t\t\tif (aleotoridad == 1 || aleotoridad == 2 || aleotoridad == 0) {\n\n\t\t\t\tSystem.out.print(\"Mala Suerte\");\n\t\t\t\tcambioEnemigo = 4;\n\t\t\t\tmal = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\n\t\t}\n }\n\t}", "public int gradoAlt() {\n \tint[] gradosEntr = new int[numV];\n \tint[] gradosSal = new int[numV];\n \tfor(int i = 0; i<numV; i++) {\n \t\tgradosEntr[i] = gradoEntrada(i);\n \t\tgradosSal[i] = gradoSalida(i);\n \t}\n \tint[] contGrado = new int[numV];\n \tfor(int i = 0; i<numV; i++) {\n \t\tcontGrado[i] = gradosEntr[i] + gradosSal[i];\n \t}\n \t return maximo(contGrado); \n }", "private char hallarLetra() {\r\n\t\tchar[] letra= {'T','R','W','A','G','M','Y','F','P','D','X',\r\n\t\t\t\t\t'B','N','J','Z','S','Q','V','H','L','C','K','E'};\r\n\t\treturn letra[numeroDNI%23];\r\n\t}", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "public void dibujarArbolSintactico(Graphics g, Nodo act, int x, int y, int x2, int y2, JPanel p, Color colorP) {\n\n if (colorP != null) {\n System.out.println(\"diferente de null\");\n color = colorP;\n }\n\n if (act == null) {\n return;\n } else {\n int ancho = act.valor.length();\n\n System.out.println(\"ancho\" + ancho);\n\n g.setColor(Color.BLACK);\n g.drawLine(x + 15, y + 3, x2 + 15, y2 + 30);\n\n g.setColor(color);\n g.fillOval(x, y, 30, 30);\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.conectorPrincipal, (x) + 12, (y) + 20);\n\n if (act.getNodoIzq() != null) {\n dibujarArbolSintactico(g, act.getNodoIzq(), (x) - (anchoX(act.altura())), y + 100, x, y, p, color);\n\n }\n if (act.getNodoDer() != null) {\n dibujarArbolSintactico(g, act.getNodoDer(), (x) + (anchoX(act.altura())), y + 100, x, y, p, color);\n }\n }\n }", "public void resta(){\r\n\t\tSystem.out.println(\"Esta es la :\");\r\n\t\tSystem.out.println(this.getX() - this.getY());\r\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "public void enfoncerEgal() {\n\t\tthis.pile.push(this.valC);\n\t\tthis.raz = true;\n\t}", "static void invAdd(char item)\r\n {\r\n for (int i=0; i<3; ++i)\r\n {\r\n for (int k=0; k<4; ++k)\r\n {\r\n if (MainApp.inv[i][k] == 'X')\r\n {\r\n \t MainApp.inv[i][k] = item;\r\n \t return;\r\n }\r\n }\r\n }\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "protected void narisi(Graphics2D g, double wp, double hp) {\n\n FontMetrics fm = g.getFontMetrics();\n\n int hPisava = fm.getAscent();\n\n double xColumn = 0.0;\n double yColumn = sirinaStolpca(wp, hp);\n\n for(int i = 0; i < podatki.length; i++){\n\n g.setColor(Color.ORANGE);\n g.fillRect((int)xColumn,(int)(hp - visinaStolpca(i, wp, hp)), (int) sirinaStolpca(wp, hp), (int) visinaStolpca(i, wp, hp));\n\n g.setColor(Color.RED);\n g.drawRect((int)((i)*sirinaStolpca(wp, hp)),(int) (hp-visinaStolpca(i, wp, hp)), (int)sirinaStolpca(wp, hp), (int)visinaStolpca(i, wp, hp));\n\n g.setColor(Color.BLUE);\n if(i < podatki.length - 1){\n double startCrtaX = sredinaVrha(i, wp, hp)[0];\n double startCrtaY = sredinaVrha(i, wp, hp)[1];\n\n double endCrtaX = sredinaVrha(i + 1, wp, hp)[0];\n double endCrtaY = sredinaVrha(i+1, wp, hp)[1];\n\n g.drawLine((int)startCrtaX,(int) startCrtaY,(int) endCrtaX,(int) endCrtaY);\n\n }\n\n g.setColor(Color.BLACK);\n\n String toWrite = Integer.toString(i+1);\n double wNapis=fm.stringWidth(toWrite);\n double xNapis=xColumn+(xColumn-wNapis)/2;\n double yNapisLowerLine=hp-hPisava;\n xColumn+=sirinaStolpca(wp, hp);\n g.drawString(toWrite,ri (xNapis),ri(yNapisLowerLine));\n\n }\n\n }", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "private Jogador proximoAJogar(Jogador j){\n Game game = Game.getGame();\n if(game.getDupla(1).getJogadorA()==j)\n return game.getDupla(2).getJogadorA();\n if(game.getDupla(2).getJogadorA()==j)\n return game.getDupla(1).getJogadorB();\n if(game.getDupla(1).getJogadorB()==j)\n return game.getDupla(2).getJogadorB();\n if(game.getDupla(2).getJogadorB()==j)\n return game.getDupla(1).getJogadorA();\n \n return null;\n }", "protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}" ]
[ "0.582012", "0.57230014", "0.57020587", "0.56468785", "0.5633139", "0.55978477", "0.55878896", "0.55660766", "0.5531903", "0.5506889", "0.54605246", "0.5458922", "0.5453668", "0.5385528", "0.53765476", "0.53642833", "0.5340466", "0.52891403", "0.5271735", "0.52548975", "0.52402693", "0.5238197", "0.5235558", "0.52204674", "0.52154696", "0.52103126", "0.5209561", "0.5207008", "0.51937926", "0.5174259", "0.5164976", "0.5158931", "0.51512134", "0.51498175", "0.51405215", "0.51371163", "0.5132591", "0.5129076", "0.5124808", "0.51146585", "0.51137567", "0.5111691", "0.5110155", "0.5109547", "0.51015717", "0.5089125", "0.50816566", "0.5081606", "0.50806767", "0.507973", "0.507494", "0.50608206", "0.5059421", "0.5057047", "0.5054651", "0.50543684", "0.5047491", "0.50418425", "0.5034334", "0.5026211", "0.50257146", "0.50228906", "0.5019357", "0.50156075", "0.5013544", "0.50124216", "0.50109047", "0.500902", "0.5006949", "0.50017875", "0.4999033", "0.4989908", "0.4989847", "0.4989089", "0.49873906", "0.49783853", "0.49781936", "0.4976369", "0.49709022", "0.49689826", "0.4968065", "0.4965675", "0.49645936", "0.49644724", "0.49546155", "0.4952971", "0.49497315", "0.49425834", "0.49394953", "0.4937271", "0.4915797", "0.49153268", "0.49149558", "0.4911982", "0.49116698", "0.4907615", "0.4907512", "0.49074256", "0.4904146", "0.49016666" ]
0.6554836
0
/======================================================================================== Metodo de insercao de um elemento com chave z na arvore
public void RB_Insert(ArvoreRB A, Node z){ Node y = A.nil; Node x = A.raiz; while (x != A.nil) { y = x; if (z.conteudoNo.compareToIgnoreCase(x.conteudoNo) < 0) { x = x.esq; } else { x = x.dir; } } z.pai = y; if (y == A.nil) { A.raiz = z; } else if (z.conteudoNo.compareToIgnoreCase(y.conteudoNo) < 0) { y.esq = z; } else { y.dir = z; } z.esq = A.nil; z.dir = A.nil; z.cor = "vermelho"; insertFixup(A,z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inserir(Comentario c);", "public void insereFinal(String elemento) {\n No novoNo = new No(elemento, null);\n No temp = ini;\n \n //Caso a lista esteja vazia\n if (temp == null){\n ini = novoNo;\n } else {\n //Caminha ate o ultimo No, dentre todos os nos dessa listaa\n while (temp.getProx() != null) {\n temp = temp.getProx();\n }\n\n //Se chegou ate o ultimo no, adicionar o elemento desejado\n temp.setProx(novoNo);\n }\n }", "public int inserir(Jogador elemento) throws Exception {\n\t\tint posicao = funcaoHash(elemento.getAltura());\n\n\t\t// Verificar se esse elemento ja esta na lista\n\t\tif (tabela[posicao].localizar(elemento.getNome()) == null)\n\t\t\t// Elemento nao inserido ainda\n\t\t\ttabela[posicao].inserir(elemento, 0); // Nao sabe quantos elementos lista vai ter, sempre inserir no inicio\n\t\telse\n\t\t\t// Elemento ja inserido\n\t\t\tposicao = -1;\n\n\t\treturn posicao;\n\n\t}", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "@Override\n\tpublic void adicionar(T obj) throws ExcecaoDeListaCheia, ExcecaoDeParticipanteJaExistente {\n\t\tif (tamanho < capacidade) {\n\t\t\tfor (int i = 0; i < tamanho; i++) {\n\t\t\t\tif (obj.toString().equals(elementosDaLista[i].toString())) {\n\t\t\t\t\tthrow new ExcecaoDeParticipanteJaExistente();\n\t\t\t\t}\n\t\t\t}\n\t\t\telementosDaLista[tamanho] = obj;\n\t\t\ttamanho++;\n\t\t} else {\n\t\t\tthrow new ExcecaoDeListaCheia();\n\t\t}\n\t}", "public static void inserir(Estoque estoque){\r\n lerXml();//le o XML e preenche a lista de estoque\r\n //pega o ultimo estoque cadastrado\r\n int ultimaPosicao = lista.size()-1;\r\n if(ultimaPosicao >= 0){ //se a lista não estiver vazia\r\n Estoque ultimoEstoque = lista.get(ultimaPosicao);\r\n estoque.setNumCompra(ultimoEstoque.getNumCompra()+1);\r\n }else{\r\n // se não tem niguem na lista, o ncompra é 1\r\n estoque.setNumCompra(1);\r\n }\r\n lista.add(estoque);//adiciona um estoque pro final da lista\r\n salvarXml();//atualiza o XML com o que tem na lista\r\n \r\n \r\n \r\n }", "public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }", "public void insertar(Trabajo t){\r\n\t\tif(!estaLlena()){\r\n\t\t\tultimo = siguiente(ultimo);\r\n\t\t\telementos[ultimo] = t;\r\n\t\t}\r\n\t}", "public void insereInicio(String elemento) {\n No novoNo = new No(elemento, ini);\n ini = novoNo;\n }", "public void ajouter() {\n position = graph.edges.ajouterElement(this);\n origine.successeurs.inserer(destination);\n destination.predecesseurs.inserer(origine);\n origine.aretes_sortantes.inserer(this);\n destination.aretes_entrantes.inserer(this);\n }", "private void insertar(String nombre, String Contra) {\n ini.Tabla.insertar(nombre, Contra);\n AVLTree arbol = new AVLTree();\n Nod nodo=null;\n ini.ListaGen.append(0,0,\"\\\\\",nombre,\"\\\\\",\"\\\\\",arbol,\"C\",nodo); \n \n }", "public void insertarArista(int i, int j) {\n insertarArista(i, j, 1);\n /*if (!existeArista(i, j)) { \n elArray[i].insertar(new Adyacente(j, 1)); \n numA++; \n }*/\n }", "public Etudiant insert(Etudiant obj) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = novo;\n } else {\n //Percorrer até chegar no ultimo Nó\n while (temp.getProximo() != null) {\n temp = temp.getProximo();\n }\n temp.setProximo(novo);\n }\n\n }", "@Override\n public void insertar(int index, T elemento) {\n if (raiz == null) {\n raiz = new NodoBAVL<>(elemento);\n }\n insertarOrdenado(raiz, elemento, index);\n }", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "public void inserer(T val) {\r\n\r\n\t\tif (this.estVide() == true) {\r\n\r\n\t\t\tCellule<T> cel = new Cellule<T>(val);\r\n\t\t\tthis.tete = cel;\r\n\t\t\tthis.queue = cel;\r\n\t\t}\r\n\r\n\t\telse {\r\n\r\n\t\t\t// attention on insere a gauche\r\n\r\n\t\t\tCellule<T> anciennequeue = this.queue;\r\n\t\t\tCellule<T> nouvellequeue = new Cellule<T>(val);\r\n\t\t\tanciennequeue.setSuivant(nouvellequeue);\r\n\t\t\tthis.queue = nouvellequeue;\r\n\t\t}\r\n\t}", "public void addElemento (Elemento obj) {\n if (obj.getPeso() > getPesoLibre() || porNombre.containsKey(obj.getNombre())) {\n System.out.println(nombre +\": No se puede agregar \" + obj.getNombre());\n }\n else {\n porNombre.put(obj.getNombre(), obj);\n addPeso(obj.getPeso());\n }\n }", "public void inserir(ContaBancaria contaBancaria) {\n\t\tcontas.add(contaBancaria);\n\n\t}", "public void agregar(T elemento) {\n\t\tNode <T> agrega= new Node<T>(elemento);\n\t\tNode <T> actual=null;\n\t\tNode <T> anterior = null;\n\t\tactual=primero;\n\t\tboolean agregado=false;\n\t\tif ( numeroElementos==0) {\n\t\t\tprimero = agrega;\n\t\t\tultimo=primero;\n\t\t}\n\t\telse if ( agrega.darElemento().compareTo(ultimo.darElemento())<=0) \n\t\t{\n\t\t\tultimo.asignarSiguiente(agrega);\n\t\t\tultimo=agrega;\n\t\t}\n\t\telse if(agrega.darElemento().compareTo(primero.darElemento())>=0) {\n\t\t\tagrega.asignarSiguiente(primero);\n\t\t\tprimero=agrega;\n\t\t\t}\n\t\telse {\n\t\t\twhile (!agregado) {\n\n\t\t\t\tif (agrega.darElemento().compareTo(actual.darElemento())<0) {\n\t\t\t\t\tanterior= actual;\n\t\t\t\t\tactual=actual.darSiguiente();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse { \n\t\t\t\t\tanterior.asignarSiguiente(agrega);\n\t\t\t\t\tagrega.asignarSiguiente(actual);\n\t\t\t\t\t\tagregado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnumeroElementos++;\n\t}", "@Override\n public void insert(J34SiscomexMercadoriaAdi j34SiscomexMercadoriaAdi) {\n super.doInsert(j34SiscomexMercadoriaAdi);\n }", "private void insertar(ArrayList<Estado> hijos) {\r\n\t\tfor (Estado p : hijos) { // Añado hijos a nodos abiertos\r\n\t\t\tabiertos.add(p);\r\n\t\t\tif (abiertos.size() > estados_abiertos)\r\n\t\t\t\testados_abiertos = abiertos.size(); // Variable para contar el numero maximo de estados abiertos\r\n\t\t}\r\n\t}", "@Override\n public void insert(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n super.doInsert(j34SiscomexOrigemDi);\n }", "public void insertar(Cliente c) {\n if (cabeza == null) { //En caso de que la cabeza sea nula, el dato sera el primero de la lista.\n cabeza = new NodoCliente(c);\n } else {\n if (c.getEspacios() <= cabeza.getDato().getEspacios()) { //Con ayuda de la condicion \"if\" y \"else\" de abajo, se orden los datos por espacios reservados,\n NodoCliente aux = new NodoCliente(c); //de menor a mayor.\n aux.setNext(cabeza);\n cabeza = aux;\n } else {\n if (cabeza.getNext() == null) {\n cabeza.setNext(new NodoCliente(c));\n } else {\n NodoCliente aux = cabeza;\n while (aux.getNext() != null && c.getEspacios() > aux.getNext().getDato().getEspacios()) {\n aux = aux.getNext();\n }\n NodoCliente temp = new NodoCliente(c);\n temp.setNext(aux.getNext());\n aux.setNext(temp);\n }\n }\n }\n }", "@Override\r\n\tpublic void insertElementAt(VOI o, int index) {\r\n\r\n // check that object is a VOI\r\n if (!(o instanceof VOI)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n VOI voi = o;\r\n\r\n // check the voi name, fix if necessary\r\n if (contains(voi)) {\r\n voi.setName(buildName(voi.getName()));\r\n }\r\n\r\n super.insertElementAt(voi, index); // add the voi to the vector\r\n fireVOIadded(voi); // notify listeners of a change\r\n\r\n Preferences.debug(\"Add voi: name = \" + voi.getName() + \"\\n\");\r\n }", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public void agregarElemento (String codigoAcceso, Elemento elemento) {\r\n\t\tlistaElementos.put(codigoAcceso, elemento);\r\n\t}", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "@Override\n public void almacenarElemento(Object elemento) {\n database.store(elemento);\n }", "private boolean insertarAux(NodoABB n, Comparable elem) {\n boolean exito = true;\r\n if (elem.compareTo(n.getElem()) == 0) {\r\n //Reportar error: elemento repetido\r\n exito = false;\r\n\r\n } else if (elem.compareTo(n.getElem()) < 0) {\r\n //elemento es menor que el elemento del nodo\r\n //si tine HI baja a la izq, sino agrega elemento\r\n if (n.getIzquierdo() != null) {\r\n exito = insertarAux(n.getIzquierdo(), elem);\r\n } else {\r\n n.setIzquierdo(new NodoABB(elem, null, null));\r\n }\r\n } else // elemento es mayor que el elemento del nodo\r\n //si tiene HD baja a la derecha, sino agrega el elemento\r\n if (n.getDerecho() != null) {\r\n exito = insertarAux(n.getDerecho(), elem);\r\n } else {\r\n n.setDerecho(new NodoABB(elem, null, null));\r\n }\r\n return exito;\r\n }", "@Override\n public boolean inserir(Pessoa p) {\n try {\n pessoa.getPessoas().add(p);\n serializar(arquivo2Serializado, pessoa);\n } catch (Exception ex) {\n Logger.getLogger(PessoaDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return true;\n }", "@Override\n\tpublic int insert(Object ob) {\n\t\treturn 0;\n\t}", "public void inserisciValore()throws Exception {\r\n\r\n\t\t\r\n\t\t\tif (!valore.getInserito()) {\r\n\t\t\t\tboolean inserimento = InputOutput.richiestaInserimento(nome);\r\n\t\t\t\tif (inserimento) {\r\n\t\t\t\t\tvalore.inserisciValore(nome);\r\n\t\t\t\t\tvalore.setInserito(true);\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "@Override\n public boolean insertar(T dato){\n //Si el arbol se encuentra vacio\n if (esVacio()) {\n super.setRaiz(new NodoBin<T>(dato));\n return (true);\n } \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n // Si el dato es menor a la raiz\n if (cmp < 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setIzq(super.getRaiz().getIzq());\n n.setDer(super.getRaiz());\n super.getRaiz().setIzq(null);\n super.setRaiz(n);\n return (true);\n }\n // Si el dato es mayor a la raiz\n else if (cmp > 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setDer(super.getRaiz().getDer());\n n.setIzq(super.getRaiz());\n super.getRaiz().setDer(null);\n super.setRaiz(n);\n return (true);\n }\n return (false);\n }", "public boolean inserir(GrauParentesco grauParentesco) throws Exception ;", "@Override\n\tpublic int insert(Utente input) throws Exception {\n\t\treturn 0;\n\t}", "private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}", "public void insererEnTeteDeListe(Personne personne) {\n\t\tElement ancienPremier= premier;\n\t\tpremier= new Element(personne,ancienPremier);\n\t\t nbElt ++;\n\t}", "public boolean inserirSorvete(Sorvete sorvete) {\n\t\t\n\t\ttry {\n\t\t\tlistaSorvetes.add(sorvete);\n\t\t}catch (Exception e) {\n\t\t\treturn false;\n\t\t}\t\t\n\t\treturn true;\t\t\n\t\t\n\t}", "public void addElement(klasse o) {\n if (OLast >= OSize) extend();\n O[OLast++] = o;\n ON++;\n }", "public void agregarElemento(K llave, T dato) {\n\n\t\tif (primerElemento == null) {\n\t\t\tNodeTabla<K, T> nodo = new NodeTabla<K, T>(llave, dato, null);\n\t\t\t// agrega el nodo como ultimo y primer elemento\n\t\t\tprimerElemento = nodo;\n\t\t\tultimoElemento = nodo;\n\t\t} else {\n\t\t\t// pone el elemento al final de la fila\n\t\t\tultimoElemento = new NodeTabla<K, T>(llave, dato, ultimoElemento);\n\t\t}\n\n\t\t// incrementa el tamano\n\t\ttamano++;\n\t}", "public void inserirContato() {\n\t\tSystem.out.println(\"Digite o nome do novo contato: \");\n\t\tString contato = scanner.nextLine();\n\t\tlistaDeContatos.add(contato);\n\t}", "public boolean insertar(T dato){\n\t boolean resultado=true;\n\t if (vacio()) {\n\t \tdatoRaiz = dato;\n\t\t\tesVacio = false;\n\t\t}\n\t else {\n\t if (!(this.datoRaiz.equals(dato))) {\n\t Arbol<T> aux;\n\t if (dato.compareTo(this.datoRaiz)<0) { //dato < datoRaiz\n\t if ((aux=getHijoIzq())==null)\n\t hIzq = aux = new Arbol <T>();\n\t }\n\t else {\t\t\t\t\t\t\t\t\t//dato > datoRaiz\n\t if ((aux=getHijoDer())==null)\n\t hDer = aux = new Arbol <T>();\n\t }\n\t resultado = aux.insertar(dato);\n\t }\n\t else\n\t resultado=false;\n\t }\n\t return resultado;\n\t}", "public void insertar(int rafaga, int tiempo) {\n\t\tif (rafaga <= 0 || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.id = String.valueOf((char) this.caracter);\n\t\tthis.caracter++;\n\t\tnuevo.rafaga = rafaga;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.ColaProviene = this.NombreCola;\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public void inserir(Filme obj) throws Exception {\n System.out.println(\"Salvar o objeto filme\");\r\n }", "@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}", "public void insere (String nome)\n {\n //TODO\n }", "public void insertar(Proceso p) {\n\t\tif (p == null) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.tllegada = p.tllegada;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.rrejecutada = p.rrejecutada;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\t\tint tamaņo = p.id.length();\n\t\tif (tamaņo == 1) {\n\t\t\tnuevo.id = p.id + \"1\";\n\t\t} else {\n\t\t\tchar id = p.id.charAt(0);\n\t\t\tint numeroId = Integer.parseInt(String.valueOf(p.id.charAt(1))) + 1;\n\t\t\tnuevo.id = String.valueOf(id) + String.valueOf(numeroId);\n\t\t}\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public void insert(KeyedItem o){\r\n\t\tinsert(this,o);\r\n\t}", "public boolean insertAt(int index, O o)\r\n {\r\n if (index < 0 || index > size()) return false; //out of range\r\n if (index == size()) //last\r\n {\r\n pushBack (o);\r\n return true;\r\n } else if (index == 0)\r\n {\r\n pushFront (o);\r\n return true;\r\n } else \r\n {\r\n VectorItem<O> before, after;\r\n before = getVectorItem(index-1);\r\n after = getVectorItem(index);\r\n \r\n VectorItem<O> vi = new VectorItem<O> (o,before,after);\r\n before.setNext(vi);\r\n after.setPrevious(vi);\r\n return true;\r\n } \r\n }", "void insertar_cabeceraMatriz(Nodo_B nuevo){\n \n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n \n this.size++;\n }else{\n \n if(nuevo.getValor() < this.primero.getValor()){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero = nuevo;\n this.size++;\n }else if(nuevo.getValor() > this.ultimo.getValor()){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo = nuevo;\n this.size++;\n }else{\n Nodo_B pivote = this.primero;\n \n while(pivote != null){\n if(nuevo.getValor() < pivote.getValor()){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n this.size++;\n break;\n }else if(nuevo.getValor() == pivote.getValor()){\n System.out.print(\"ya hay un valor con este codigo registrado\");\n break;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n // JOptionPane.showMessageDialog(null, \"salio del metodo insertar cabecera con el pais :\"+nuevo.nombreDestino);\n }", "public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "@Override\r\n\tpublic Ngo insert(Ngo obj) {\n\t\treturn null;\r\n\t}", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public void insert(Object objekt) throws SQLException {\r\n\t\t \r\n\t\tPomagaloVO ul = (PomagaloVO) objekt;\r\n\r\n\t\tif (ul == null)\r\n\t\t\tthrow new SQLException(\"Insert \" + tablica\r\n\t\t\t\t\t+ \", ulazna vrijednost je null!\");\r\n\t\t \r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\ttry {\r\n\t\t\tconn = conBroker.getConnection();\r\n\r\n\t\t\tps = conn.prepareStatement(insertUpit);\r\n\r\n\t\t\tps.setString(1, ul.getSifraArtikla());\r\n\t\t\tps.setString(2, ul.getNaziv());\r\n\t\t\tps.setInt(3, ul.getPoreznaSkupina().intValue());\r\n\r\n\t\t\tif (ul.getCijenaSPDVom() == null\r\n\t\t\t\t\t|| ul.getCijenaSPDVom().intValue() <= 0)\r\n\t\t\t\tps.setNull(4, Types.INTEGER);\r\n\t\t\telse\r\n\t\t\t\tps.setInt(4, ul.getCijenaSPDVom().intValue());\r\n\r\n\t\t\tString op = ul.getOptickoPomagalo() != null\r\n\t\t\t\t\t&& ul.getOptickoPomagalo().booleanValue() ? DA : NE;\r\n\r\n\t\t\tps.setString(5, op);\r\n\t\t\t\r\n\t\t\tps.setTimestamp(6, new Timestamp(System.currentTimeMillis()));\r\n\t\t\tps.setInt(7, NEPOSTOJECA_SIFRA);\r\n\t\t\tps.setTimestamp(8, null);\r\n\t\t\tps.setNull(9, Types.INTEGER);\r\n\r\n\t\t\tint kom = ps.executeUpdate();\r\n\r\n\t\t\tif (kom == 1) {\r\n\t\t\t\tul.setSifra(Integer.valueOf(0)); // po tome i pozivac zna da je\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// insert uspio...\r\n\t\t\t}// if kom==1\r\n\t\t\telse {\r\n\t\t\t\t//Logger.fatal(\"neuspio insert zapisa u tablicu \" + tablica, null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// nema catch-anja SQL exceptiona... neka se pozivatelj iznad jebe ...\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tif (ps != null)\r\n\t\t\t\t\tps.close();\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t}\r\n\t\t\tconBroker.freeConnection(conn);\r\n\t\t}// finally\r\n\r\n\t}", "public void insert(Object obj, int index) {\n /*\n * make an if statement that checks if it is trying to add the first element in the array\n * since the default constructor makes an array with 0 length\n */\n \n if (this.array.length == 0) {\n //if it is the one and only element in the array\n //then simply set up the array so that it holds the desired element\n this.array = (E[]) new Object[1];\n this.array[0] = (E) obj;\n } else {\n /*\n * this code will be executed whenever there is at least one element \n * already in the array\n */\n \n //set up a temp array that will be used to copy the array with the new element\n E[] temp = (E[]) new Object[this.array.length + 1]; //it holds one more element than the current array\n\n //first copy over all the elements before the desired index\n for (int i = 0; i < index; i++) {\n temp[i] = this.array[i];\n }\n \n //then set the desired index to the object\n temp[index] = (E) obj;\n \n //copy over the rest of the array\n for (int i = index + 1; i < temp.length; i++) {\n /* since the temp array is one index larger, and we have inserted the new element\n * take in the previous element from the original array\n * \n * this will \"shift over\" the elements after the index one index to the right\n */\n temp[i] = this.array[i - 1];\n }\n \n //set the array to the copy\n this.array = (E[]) temp;\n }\n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "@Override\n\tpublic ResultMessage insertCar(Carpo po) {\n\t\treturn inList.insert(po);\n\t}", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "private void insertarOrdenado(NodoBAVL<T> n, T o, int index) {\n if (o.compareTo(n.getElemento()) < 0) {\n if (n.getIzquierda() == null) {\n n.setIzquierda(new NodoBAVL<>(o, null, null, n));\n n.getIzquierda().getEgresados().add(index);\n recalcularFE(n);\n } else {\n insertarOrdenado((NodoBAVL) n.getIzquierda(), o, index);\n }\n } else if (o.compareTo(n.getElemento()) > 0) {\n if (n.getDerecha() == null) {\n n.setDerecha(new NodoBAVL<>(o, null, null, n));\n n.getDerecha().getEgresados().add(index);\n recalcularFE(n);\n } else {\n insertarOrdenado((NodoBAVL) n.getDerecha(), o, index);\n }\n } else {\n n.getEgresados().add(index);\n }\n }", "public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}", "public void newElemento(Elemento item, Carrito carrito){\n SQLiteDatabase db = helper.getWritableDatabase();\r\n\r\n // TODO: 12.- Mapeamos columnas con valores\r\n // Crea un nuevo mapa de valores, de tipo clave-valor, donde clave es nombre de columna\r\n ContentValues values = new ContentValues();\r\n values.put(ElementosContract.Entrada.COLUMNA_CARRITO_ID, carrito.getId());\r\n values.put(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO, item.getNombreProducto());\r\n values.put(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO, item.getPrecioProducto());\r\n values.put(ElementosContract.Entrada.COLUMNA_CANTIDAD, item.getCantidad());\r\n\r\n // TODO: 13.- Insertamos fila\r\n // Inserta la nueva fila, regresando el valor de la primary key\r\n long newRowId = db.insert(ElementosContract.Entrada.NOMBRE_TABLA, null, values);\r\n\r\n // cierra conexión\r\n db.close();\r\n }", "public abstract boolean addDataTo(Element element);", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public void enfileira(T elemento){\n\t\t\n\t\tthis.adiciona(elemento);\n\t}", "public void addend(int dato) {\n //agrega nuevo nodo \n NodoEnteroSimple nodo = new NodoEnteroSimple();\n\n nodo.setValor(dato);\n\n if (vacia()) {\n\n head = nodo;\n } else {\n //un temporal de la lista \n NodoEnteroSimple temp = head;\n\n while (temp.getSiguiente() != null) {\n temp = temp.getSiguiente();\n\n }\n temp.getSiguiente();\n }\n size++;\n }", "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "@Override\n public boolean insert(T o) {\n // Makes sure only the same Object in in the Array\n/*\n if(type == null){\n type = o.getClass();\n }\n if(type != o.getClass()) return false;\n*/\n\n if(o == null) return false;\n if(contains(o)) return false;\n int hcode = hash(o);\n hcode %= array.length;\n array[hcode].add(o);\n return true;\n }", "public void insereFim(TinfoTransicao item) {\t\t\n\t\tTnodoTransicao novo = new TnodoTransicao(item);\n\t\tnovo.proximo = this.ultimo.proximo;\n\t\tthis.ultimo.proximo = novo;\n\t\tthis.ultimo = novo;\t\n\t}", "public void insertar(int dato) {\n if (estaLlena()){ // si la pila esta lllena (,etodo en linea 43)\r\n incrementarArreglo(); //incrementamos su capacidad\r\n }\r\n array[++top] = dato; //e insertamos el dato\r\n }", "public static void insertar (tcus_clientes info){\n \tNodoArbol nuevo = new NodoArbol (info);\n if (raiz == null) {\n raiz = nuevo;\n } else {\n \tNodoArbol anterior = null, reco;\n reco = raiz;\n while (reco != null) {\n anterior = reco;\n if (info.getNmid() < reco.getNodo().getNmid())\n reco = reco.getIzq();\n else\n reco = reco.getDer();\n }\n if (info.getNmid() < anterior.getNodo().getNmid())//50<100\n anterior.setIzq(nuevo); \n else\n anterior.setDer(nuevo);\n }\n }", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public void insert(Object element1, Object element2, Object element3);", "public boolean insertarOrdenador(Ordenador o) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\n\t\t\tXPathQueryService consulta = (XPathQueryService) col.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update insert \"\n\t\t\t\t\t+ \"<ordenador codigo='\"+o.getCodigo()+\"' fecha='\"+\n\t\t\t\t\t formato.format(o.getFecha())+\"'>\"\n\t\t\t\t\t + \"<piezas/>\" +\n\t\t\t\t\t \"<precio>0</precio>\" \n\t\t\t\t\t+\"</ordenador>\"\n\t\t\t\t\t+ \"into /ordenadores\");\n\t\t\tresultado=true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "@Override\r\n\tpublic int inserta(ReservaBean bean) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void save(T elemento) {\n\r\n\t}", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "public void insertToCarrito(String user, int cant, Producto prod) {\n NodoAvl tmp = root;\n while (tmp != null && !tmp.username.equals(user)) {\n if (user.compareTo(tmp.username) < 0) {\n tmp = tmp.izq;\n } else {\n tmp = tmp.der;\n }\n }\n if (tmp != null && user.equals(tmp.username)) {\n if(tmp.carrito != null)\n tmp.carrito.insertTail(user, cant, prod);\n else{\n Lista ls = new Lista();\n ls.insertTail(user, cant, prod);\n tmp.carrito = ls;\n }\n Log.logger.info(\" Agregado a usuario :\" + user);\n } else {\n Log.logger.warn(\"Usuario no encontrado \" + user);\n }\n \n }", "public void insert(T element)\r\n\t{\n\t\tif (size >= data.length - 1)\r\n\t\t{\r\n\t\t\tresize();\r\n\t\t}\r\n\t\t\r\n\t\t//add the new element\r\n\t\tsize++;\r\n\t\tdata[size] = element;\r\n\t\tswim(size);\r\n\t}", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "public int insertContrato(Contrato c) {\r\n\t\tif (getContrato(c.getNumeroContrato())!=null) return -1;\r\n//\t\tinsertCache(c, \"Contrato\");\r\n\t\tint i = controlador.insertContrato(c, this.getEmpleadoActual().getDepartamentoId());\t\t\r\n\t\tc.setNumeroContrato(i);\r\n\t\t\r\n\t\tcontratos.add(c);\r\n\t\treturn i;\r\n\t}", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }", "public void inserir(Cliente cliente){\n\t\tclientes[indice++] = cliente;\n\t\t\n\t}", "public void add(Object objeto) throws BolsaCompletaException {\r\n\r\n\t\tif (lista.size() < tope) { // chequeamos que la bolsa ya no este llena\r\n\t\t\tlista.add(objeto);// agregamos el objeto a la bolsa\r\n\t\t\tSystem.out.println(\"Se Agrego el objeto a la bolsa\");\r\n\t\t} else {\r\n\r\n\t\t\t throw new BolsaCompletaException(\" Cosas \");//recordar agregar throws\r\n\t\t\t//throw new RuntimeException(\"No Caben Mas elementos\");\r\n\t\t}\r\n\r\n\t}", "public void add(int index, Object o) {\n try {\n Element element = (Element) o;\n if (element.type() == Element.CHUNK) {\n Chunk chunk = (Chunk) element;\n if (!font.isStandardFont()) {\n chunk.setFont(font.difference(chunk.font()));\n }\n super.add(index, chunk);\n }\n else if (element.type() == Element.PHRASE ||\n element.type() == Element.ANCHOR ||\n element.type() == Element.ANNOTATION ||\n element.type() == Element.TABLE || // line added by David Freels\n element.type() == Element.GRAPHIC) {\n super.add(index, element);\n }\n else {\n throw new ClassCastException(String.valueOf(element.type()));\n }\n }\n catch(ClassCastException cce) {\n throw new ClassCastException(\"Insertion of illegal Element: \" + cce.getMessage());\n }\n }", "int insertSelective(Movimiento record);", "public void addElement(Object obj);", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insertarcola(){\n Cola_banco nuevo=new Cola_banco();// se declara nuestro metodo que contendra la cola\r\n System.out.println(\"ingrese el nombre que contendra la cola: \");// se pide el mensaje desde el teclado\r\n nuevo.nombre=teclado.next();// se ingresa nuestro datos por consola yse almacena en la variable nombre\r\n if (primero==null){// se usa una condicional para indicar si primer dato ingresado es igual al null\r\n primero=nuevo;// se indica que el primer dato ingresado pasa a ser nuestro dato\r\n primero.siguiente=null;// se indica que el el dato ingresado vaya al apuntador siguente y que guarde al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo en la cabeza de nuestro cola\r\n }else{// se usa la condicon sino se cumple la primera\r\n ultimo.siguiente=nuevo;//se indica que ultimo dato ingresado apunte hacia siguente si es que hay un nuevo dato ingresado y que vaya aser el nuevo dato de la cola\r\n nuevo.siguiente=null;// se indica que el nuevo dato ingresado vaya y apunete hacia siguente y quees igual al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo dato\r\n }\r\n System.out.println(\"\\n dato ingresado correctamente\");// se imprime enl mensaje que el dato ha sido ingresado correctamente\r\n}", "public void asignarID(Object id) {\n\n propiedad temporal;\n for (int i = 0; i < this.listadoElementos.size(); i++) {\n temporal = listadoElementos.get(i);\n if (temporal instanceof propiedadId) {\n propiedadId v = (propiedadId) temporal;\n if (!id.toString().equalsIgnoreCase(\"\")) {\n v.idElemento = id.toString();\n this.listadoElementos.set(i, v);\n break;\n\n }\n }\n }\n \n propiedadId n =new propiedadId(id);\n this.listadoElementos.add(n);\n }", "@Override\r\n\tpublic void k_insert(ManufacturersVO MANUFACTURERSVO) {\n\t\t\r\n\t}" ]
[ "0.69179356", "0.67922056", "0.6726946", "0.6690927", "0.64472157", "0.6445441", "0.64437085", "0.64357257", "0.64247185", "0.6403321", "0.6340008", "0.6313056", "0.6303325", "0.6277244", "0.6184416", "0.6152284", "0.61363447", "0.6120668", "0.6083247", "0.6073207", "0.60705066", "0.60511875", "0.6035183", "0.60254645", "0.60183364", "0.6017588", "0.59999263", "0.5996317", "0.59739935", "0.5965964", "0.5965676", "0.5956771", "0.5952868", "0.5945769", "0.59349394", "0.59042454", "0.5902324", "0.5894758", "0.5887659", "0.58858675", "0.5876832", "0.5845573", "0.5843211", "0.58392376", "0.58321965", "0.582588", "0.58144224", "0.5807722", "0.5794736", "0.57852083", "0.57742727", "0.5773525", "0.5767143", "0.57602894", "0.5754506", "0.5743985", "0.57435095", "0.57423574", "0.57421106", "0.57179654", "0.571708", "0.5701476", "0.56987476", "0.5697271", "0.56944734", "0.56800985", "0.56772065", "0.5673694", "0.5673631", "0.5662999", "0.5659663", "0.5657754", "0.5652012", "0.5649529", "0.5646528", "0.56356186", "0.56355304", "0.56331074", "0.5627898", "0.56211764", "0.5619486", "0.56141746", "0.56139785", "0.56045455", "0.5603895", "0.5601041", "0.5594117", "0.55939656", "0.5590019", "0.5578132", "0.5572563", "0.5569386", "0.556106", "0.5560661", "0.55469775", "0.5546087", "0.55429363", "0.55386776", "0.5537682", "0.55337274" ]
0.591785
35
/======================================================================================== Metodo de insercao FIXUP
public void insertFixup(ArvoreRB A,Node z){ while ( z.pai.cor == "vermelho"){ if (z.pai == z.pai.pai.esq) { Node y = z.pai.pai.dir; if (y.cor== "vermelho") { z.pai.cor = "preto"; y.cor = "preto"; z.pai.pai.cor = "vermelho"; z = z.pai.pai; } else { if (z == z.pai.dir) { z = z.pai; rotacaoEsq(A,z); } z.pai.cor = "preto"; z.pai.pai.cor = "vermelho"; rotacaoDir(A,z.pai.pai); } }else { if (z.pai == z.pai.pai.dir) { Node y = z.pai.pai.esq; if (y.cor == "vermelho") { z.pai.cor = "preto"; y.cor = "preto"; z.pai.pai.cor = "vermelho"; z = z.pai.pai; } else{ if (z == z.pai.esq) { z = z.pai; rotacaoDir(A,z); } z.pai.cor = "preto"; z.pai.pai.cor = "vermelho"; rotacaoEsq(A,z.pai.pai); } } A.raiz.cor = "preto"; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void creatEmptyFixData() {\n fixInserts.put(ZcSettingConstants.FIX, \"上架费\");\r\n fixInserts.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n fixFVLs.put(ZcSettingConstants.FIX, \"成交费\");\r\n fixFVLs.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixFVLs.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixFVLs.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixFVLs.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n fixFVLs.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n fixFVLs.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n fixPayPalFees.put(ZcSettingConstants.FIX, \"paypal费\");\r\n fixPayPalFees.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixPayPalFees.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixPayPalFees.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixPayPalFees.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n fixPayPalFees.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n fixPayPalFees.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n fixProfits.put(ZcSettingConstants.FIX, \"利润\");\r\n fixProfits.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixProfits.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixProfits.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixProfits.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n fixProfits.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n fixProfits.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n fixProfitRates.put(ZcSettingConstants.FIX, \"利润率\");\r\n fixProfitRates.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixProfitRates.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixProfitRates.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixProfitRates.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n fixProfitRates.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n fixProfitRates.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n }", "@Test\n void shouldGenerateTheFixMessage()\n {\n assertThat(\n new String(asciiFixBody(\"FIX.4.2\", \"35=5^49=SellSide^56=BuySide^34=3^52=20190606-09:25:34.329^58=Logout acknowledgement^\")))\n .isEqualTo(\"8=FIX.4.2\\u00019=84\\u000135=5\\u000149=SellSide\\u000156=BuySide\\u000134=3\\u000152=20190606-09:25:34.329\\u000158=Logout acknowledgement\\u000110=079\\u0001\");\n }", "void saveNotifyDataToTable(HashSet<String> data)\n\t\t{\n\t\t\tsaveFIXDataSet(data);\n\t\t\t/*Iterator<String> itr=data.iterator();\n\t\t\twhile (itr.hasNext())\n\t\t\t{\n\t\t\t\tString fixLine=itr.next();\n\t\t\t\tint ix9=fixLine.indexOf(\"|120=\");\n\t\t\t\tif (ix9 < 0) ix9=fixLine.length()-1;\n\t\t\t\t\n\t\t\t\t//aAg.saveFIXData(fixLine.substring(0, ix9+1), this);\n\t\t\t}*/\n\t\t\t\n\t\t\treturn;\n\t\t}", "int insert(SmsCleanBagLine record);", "private String insertarCartaBurningSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 2,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "org.landxml.schema.landXML11.CrashDataDocument.CrashData insertNewCrashData(int i);", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "@Override\r\n public String getFixedPostFix(){return FixedPostFix;}", "@Override\n public int UpdataQuestion(QuestionBean question) {\n return 0;\n }", "@Override\n public synchronized int insert(final UfficioTecnico uff)\n throws SQLException {\n final Connection connection = connectionManager.getConnection();\n try {\n\n final PreparedStatement preparedStatement = connection\n .prepareStatement(INSERT_UFFICIO_TECNICO);\n int i = 1;\n preparedStatement.setString(i++, uff.getNome());\n preparedStatement.setString(i++, uff.getTel());\n preparedStatement.setString(i++, uff.getEmail());\n preparedStatement.setString(i, uff.getUbicazione());\n return preparedStatement.executeUpdate();\n } finally {\n connectionManager.freeConnection(connection);\n }\n }", "private String insertarCartaHealingSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n true,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "public boolean addNotification(Notification notification) throws SQLException{\n// connection = Db.instance().getConnection();\n try{\n ps = connection.prepareStatement(\"INSERT INTO notification(user_email, text) VALUES (?,?)\");\n ps.setString(1,notification.getUserEmail());\n ps.setString(2,notification.getText());\n int res = ps.executeUpdate();\n return res==1;\n }\n finally {\n Db.close(ps);\n }\n }", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "public CWE insertRxa9_AdministrationNotes(int rep) throws HL7Exception { \r\n return (CWE) super.insertRepetition(9, rep);\r\n }", "Integer insert(ChronicCheck record);", "int insert(SmsSendAndCheckPo record);", "int insertSelective(SmsCleanBagLine record);", "@Test\n public void fsckFIXTagkMissingForward() throws Exception {\n storage.flushColumn(\"host\".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(0, errors);\n assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_FAMILY, TAGK));\n }", "int insert(UserTips record);", "@Override\n\tpublic void update_in_DB() throws CouponSiteMsg \n\t{\n\t\t\n\t}", "org.landxml.schema.landXML11.CrashDataDocument.CrashData addNewCrashData();", "private void inserirQuests(){\n try {\n methods.InsereQuestsOnBD();\n //Toast.makeText(this,\"Inseridos dados com sucesso\",Toast.LENGTH_LONG).show();\n\n }\n catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Erro\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }", "@Test\n public void fsckFIXTagvMissingForward() throws Exception {\n storage.flushColumn(\"web01\".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(0, errors);\n assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_FAMILY, TAGV));\n }", "public CWE insertAdministrationNotes(int rep) throws HL7Exception { \r\n return (CWE) super.insertRepetition(9, rep);\r\n }", "int insert(BasicInfoAnodeBurningLossRate record);", "@Override\n\tpublic int insert(Sptasts sptasts) {\n\t\tConnection conn = this.connectionManager.openConnection();\n\t\t//锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷\n\t\tTransactionManager.conn = conn;\n\t\tTransactionManager.beginTransaction();\n\t\t\n\t\t//锟斤拷锟斤拷锟斤拷锟�\n\n\t\t//Date posttime=sptasts.getPosttime();\n\t\tString saname =sptasts.getSaname();\n\t\tString satype =sptasts.getSatype();\n\t\tint sastate =sptasts.getSastate();\n\t\tString samark = sptasts.getSamark();\n\t\tString saresource =sptasts.getSaresource();\n\t\tint uid=sptasts.getUid();\n\t\t\n\t\t\n\t\t\n\t\n\t\t//锟斤拷锟斤拷锟接Qo拷锟斤拷锟斤拷模锟斤拷\n\t\tString strSQL = \"insert into sptasts values(null,now(),?,?,?,?,?,?)\";\n\t\tObject[] params = new Object[]{saname,satype,sastate,samark,saresource,uid};\n\t\t// 锟斤拷锟斤拷dbutils锟斤拷锟襟,诧拷锟斤拷锟斤拷execothers锟斤拷锟斤拷实锟斤拷锟斤拷菘锟斤拷锟斤拷硬锟斤拷锟斤拷锟�\n\t\tint affectedRows = this.dbUtils.execOthers(conn, strSQL, params);\n\t\t//锟斤拷锟斤拷锟揭伙拷锟斤拷慕锟斤拷锟斤拷锟斤拷锟接︼拷锟斤拷锟斤拷锟斤拷锟�\n\t\tif(affectedRows > 0){\n\t\t\t// 锟结交锟斤拷锟斤拷\n\t\t\tTransactionManager.commit();\n\t\t}else{\n\t\t\t// 锟截癸拷锟斤拷锟斤拷\n\t\t\tTransactionManager.rollback();\n\t\t}\n\t\treturn affectedRows;\n\t}", "public void insertaMensaje(InfoMensaje m) throws Exception;", "private void saveCurrentAcknowledgment() {\n\t\tacknowledgment.setANumber(aNumberField.getText());\n\t\tacknowledgment.setDate(DateUtil.formatToString(dateField.getValue()));\n\t\tacknowledgment.setNotify(notifyField.getText());\n\t\tacknowledgment.setTag(tagField.getText());\n\t\tacknowledgment.setDateOrderReceived(DateUtil.formatToString(dateOrderReceivedField.getValue()));\n\t\tacknowledgment.setCustomerOrderNumber(customerOrderNumberField.getText());\n\t\tacknowledgment.setApproxShipDate(DateUtil.formatToString(approxShipDateField.getValue()));\n\t\tacknowledgment.setShippingCost(shippingCostField.getText());\n\t\tacknowledgment.setFob(fobField.getText());\n\t\tacknowledgment.setShipVia(shipViaField.getText());\n\t\tacknowledgment.setDocuments(documentsField.getText());\n\t\tacknowledgment.setPrice(priceField.getText());\n\t\tacknowledgment.setUsername(main.getPreferenceList().get(0).getUsername());\n\t}", "@Override\n\tpublic int insert(Message t) {\n\t\treturn 0;\n\t}", "private boolean insertaTbrCtaTipDocUsrMod(){\n boolean blnRes=true;\n String strColVec=\"\";\n int w=0;\n String strColTbl=\"\";\n String strCodUsrGrp=\"\";\n int intCodCta=0;\n String strInsCtaUsr=\"\";\n try{\n if(con!=null){\n strInsCtaUsr=\"\";\n stm=con.createStatement();\n for(int i=0; i<objTblModPlaCta.getRowCountTrue(); i++){\n if(objTblModPlaCta.getValueAt(i, INT_TBL_PLA_CTA_LIN)==\"M\"){\n for( int j=(numColModIni); j<=numColModFinGlb; j++ ){\n strColVec=strVecDat[w][2]==null?\"\":strVecDat[w][2];\n strColTbl=\"\"+j;\n while( !(strColVec.equals(\"\")) ){\n if(strColVec.toString().equals(strColTbl)){\n if(objTblModPlaCta.isChecked(i, j)){\n strCodUsrGrp=strVecDat[w][0]==null?\"\":strVecDat[w][0];\n intCodCta=Integer.parseInt(\"\"+objTblModPlaCta.getValueAt(i, INT_TBL_PLA_CTA_COD_CTA));\n \n strSQL=\"\";\n strSQL+=\"INSERT INTO tbr_ctatipdocusr(\";\n strSQL+=\" co_emp, co_loc, co_tipdoc, co_usr, co_cta)\";\n strSQL+=\" VALUES (\";\n strSQL+=\"\" + objParSis.getCodigoEmpresa() + \",\";\n strSQL+=\" \" + objParSis.getCodigoLocal() + \",\";\n strSQL+=\" \" + txtCodTipDoc.getText() + \",\";\n strSQL+=\" \" + strCodUsrGrp + \",\";\n strSQL+=\" \" + intCodCta + \"\";\n strSQL+=\" );\";\n strInsCtaUsr+=strSQL;\n \n }\n }\n w++;\n strColVec=strVecDat[w][2]==null?\"\":strVecDat[w][2];\n }\n w=0;\n } \n }\n }\n System.out.println(\"SQL: \" + strInsCtaUsr);\n stm.executeUpdate(strInsCtaUsr);\n stm.close();\n stm=null;\n }\n }\n catch (java.sql.SQLException e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch (Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }", "private String insertarCartaNaturalSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 2,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n true,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "int insert(Lbt72TesuryoSumDPkey record);", "int insertGenDetail(Integer uid, Integer merid, Double paymoney, Double sendmoney, Double tomoney, Double balance, Double topupbalance, Double givebalance, String ordernum, Date createTime, Integer paysource, String remark);", "int insert(TbaDeliveryinfo record);", "@Override\n public void insert(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n super.doInsert(j34SiscomexOrigemDi);\n }", "private void addMsg(String xmsg) {\n\r\n\t\tSQLiteDatabase db = dbh.getWritableDatabase();\r\n\t\tContentValues values = new ContentValues();\r\n\t\tLog.v(\"-->\", xmsg);\r\n\t\tvalues.put(\"M_ID\", Integer.parseInt(xmsg.substring(0, 2))); // msg id ==\r\n\t\tLog.v(\"values: \", xmsg.substring(0, 2)); // [0,1]\r\n\t\tvalues.put(\"SEQ\", Integer.parseInt(xmsg.substring(2, 4))); // seq\r\n\t\tLog.v(\"values: \", xmsg.substring(2, 4));\r\n\t\tvalues.put(\"MSG\", xmsg.substring(5)); // msg\r\n\t\tLog.v(\"values: \", xmsg.substring(5));\r\n\t\tdb.insertOrThrow(TABLE_NAME, null, values);\r\n\r\n\t}", "@Test\n public void t10() {\n try {\n sampleRule = \"&8=\\\"FIX.4.2Aqua\\\";&9000[0]->&9001=\\\"D\\\"\";\n rules = new InfixActions(sampleRule);\n result = rules.transformFIXMsg(TestCustomDictionary.customMsg42, \"FIX.4.2Aqua\"); // System.out.println(result);\n resultStore = StaticTestingUtils.parseMessage(result);\n String r = resultStore.get(\"9001\").get(0);\n Assert.assertEquals(r, \"D\");\n r = resultStore.get(\"8\").get(0);\n Assert.assertEquals(r, \"FIX.4.2Aqua\");\n System.out.println(StaticTestingUtils.rs(result));\n sampleRule = \"&8=\\\"FIX.4.2\\\"\";\n rules = new InfixActions(sampleRule);\n result = rules.transformFIXMsg(result, \"FIX.4.2Aqua\");\n resultStore = StaticTestingUtils.parseMessage(result);\n r = resultStore.get(\"8\").get(0);\n Assert.assertEquals(r, \"FIX.4.2\");\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail();\n }\n }", "int insert(Notifiction record);", "private String insertarCartaNaturalHelp() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 2,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "public static int insert(Notification n) {\n\t\tint status=0;\n\t\ttry {\n\t\t\tConnection connection=MyDBconnectionUtil.getDBconnection();\n\t\t\tPreparedStatement ps=connection.prepareStatement(\n\t\t\t\t\t\"insert into notifications (type,specialMsg) values(?,?)\");\n\t\t\t\t\tps.setInt(1, n.getType());\n\t\t\t\t\tps.setString(2, n.getSpecialMsg());\n\t\t\t\t\tstatus=ps.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn status;\n\t}", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "@Override\n\tpublic long insert(Map<String, String> msg) {\n\t\treturn 0;\n\t}", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "private void writefastxj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"xj\");\r\n\t\tedit.commit();\r\n\t}", "int insertSelective(UserTips record);", "@Override\n public void insert(J34SiscomexPaises j34SiscomexPaises) {\n super.doInsert(j34SiscomexPaises);\n }", "public int entryContractAppendix(ContractAppendixInfo info) throws SQLException{\n return this.contractAppendixManager.insert(info);\n }", "public void agregaAntNoPato(String id_antNP, String religion_antNP, String lugarNaci_antNP, String estaCivil_antNP, \n String escolaridad_antNP, String higiene_antNP, String actividadFisica_antNP, int frecuencia_antNP, \n String sexualidad_antNP, int numParejas_antNP, String sangre_antNP, String alimentacion_antNP, String id_paciente,\n boolean escoCompInco_antNP, String frecVeces_antNP, Connection conex){\n String sqlst = \"INSERT INTO antnopato\\n \"+\n \"(`id_antNP`,\\n\" +\n \"`religion_antNP`,\\n\" +\n \"`lugarNaci_antNP`,\\n\" +\n \"`estaCivil_antNP`,\\n\" +\n \"`escolaridad_antNP`,\\n\" +\n \"`higiene_antNP`,\\n\" +\n \"`actividadFisica_antNP`,\\n\" +\n \"`frecuencia_antNP`,\\n\" +\n \"`sexualidad_antNP`,\\n\" +\n \"`numParejas_antNP`,\\n\" +\n \"`sangre_antNP`,\\n\" +\n \"`alimentacion_antNP`,\\n\" +\n \"`id_paciente`,\\n\"+\n \"`escoCompInco_antNP`,\\n\"+\n \"`frecVeces_antNP`)\\n\"+\n \"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n try(PreparedStatement sttm = conex.prepareStatement(sqlst)) {\n conex.setAutoCommit(false);\n sttm.setString (1, id_antNP);\n sttm.setString (2, religion_antNP);\n sttm.setString (3, lugarNaci_antNP);\n sttm.setString (4, estaCivil_antNP);\n sttm.setString (5, escolaridad_antNP);\n sttm.setString (6, higiene_antNP);\n sttm.setString (7, actividadFisica_antNP);\n sttm.setInt (8, frecuencia_antNP);\n sttm.setString (9, sexualidad_antNP);\n sttm.setInt (10, numParejas_antNP);\n sttm.setString (11, sangre_antNP);\n sttm.setString (12, alimentacion_antNP);\n sttm.setString (13, id_paciente);\n sttm.setBoolean (14, escoCompInco_antNP);\n sttm.setString (15, frecVeces_antNP);\n sttm.addBatch();\n sttm.executeBatch();\n conex.commit();\n aux.informacionUs(\"Antecedentes personales no patológicos guardados\", \n \"Antecedentes personales no patológicos guardados\", \n \"Antecedentes personales no patológicos han sido guardados exitosamente en la base de datos\");\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void creatEmptyChineseData() {\n chineseInserts.put(ZcSettingConstants.CHINESE, \"上架费\");\r\n chineseInserts.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chineseFVLs.put(ZcSettingConstants.CHINESE, \"成交费\");\r\n chineseFVLs.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chinesePayPalFees.put(ZcSettingConstants.CHINESE, \"paypal费\");\r\n chinesePayPalFees.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chineseProfits.put(ZcSettingConstants.CHINESE, \"利润\");\r\n chineseProfits.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chineseProfitRates.put(ZcSettingConstants.CHINESE, \"利润率\");\r\n chineseProfitRates.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n }", "@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}", "public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insereFim(TinfoTransicao item) {\t\t\n\t\tTnodoTransicao novo = new TnodoTransicao(item);\n\t\tnovo.proximo = this.ultimo.proximo;\n\t\tthis.ultimo.proximo = novo;\n\t\tthis.ultimo = novo;\t\n\t}", "public void addCertainRow(String username, String num, String ISBN)\n {\n String insertStr;\n int tempt= (int) (Math.random()*500);\n String random=Integer.toString(tempt);\n try{\n\n insertStr=\"INSERT IGNORE INTO borrowlist (username, num, random, ISBN) VALUES(\"\n +quotate(username)+\",\"\n +quotate(num)+\",\"\n +quotate(random)+\",\"\n +quotate(ISBN)\n +\")\";\n\n stmt.executeUpdate(insertStr);\n\n } catch(Exception e){\n System.out.println(\"Error occurred in inserting data\");\n }\n return;\n }", "int insert(FctWorkguide record);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry insertNewDebts(int i);", "int insert(mailIdentify record);", "private String insertarCartaVitalTransfusion() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 3,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "Integer insertSelective(ChronicCheck record);", "@Override\r\n public String getSimPostFix(){return \"\";}", "public void insertarPaciente ( String dni, String nombre, String apellidos, String telefono,String emaail,float peso_actual, float peso_objetivo, float altura, int edad, String sexo, String password,String complexion);", "private String insertarCartaHeal() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 4,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private void InsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_InsertActionPerformed\n try{\n if(isEmpty())\n throw new Exception(\"Introdu toate datele!\");\n\n // if phone is frequency dont insert\n if(isExitsPhone())\n throw new Exception(\"Eroare nr telefon!\");\n\n boolean ok = insert();\n if(ok){\n Vector data = getData(\"\");\n showData(data);\n } else\n throw new Exception(\"Eroare la inserare!\");\n\n }catch(Exception e){\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }", "public void insertReply() {\n\r\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "public void addPatient(Patient P)\r\n {\r\n\t int age =0;\r\n\t String secQ =\"What is your favorite food?\";\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION ) \"; //added notification\r\n\t newPat = newPat+\"VALUES ('\"+P.firstName+\"', '\"+P.lastName+\"', \"+age+\", '\"+P.userName+\"', '\"+P.password+\"', '\"+secQ+\"', '\"+P.securityQuestionAnswer+\"',\"\r\n\t\t\t \t\t +P.getEnterSymptomLevel()[0]+\",\"+P.getEnterSymptomLevel()[1]+\",\"+P.getEnterSymptomLevel()[2]+\",\"+P.getEnterSymptomLevel()[3]+\",\"+P.getEnterSymptomLevel()[4]+\",\"+P.getEnterSymptomLevel()[5]+\",\"+P.getEnterSymptomLevel()[6]+\r\n\t\t\t \t\t\t\",\" +P.getPreviousSymptomLevel1()[0]+\",\"+P.getPreviousSymptomLevel1()[1]+\",\"+P.getPreviousSymptomLevel1()[2]+\",\"+P.getPreviousSymptomLevel1()[3]+\",\"+P.getPreviousSymptomLevel1()[4]+\",\"+P.getPreviousSymptomLevel1()[5]+\",\"+P.getPreviousSymptomLevel1()[6]+\",\"\r\n\t\t\t \t\t\t+P.getPreviousSymptomLevel2()[0]+\",\"+P.getPreviousSymptomLevel2()[1]+\",\"+P.getPreviousSymptomLevel2()[2]+\",\"+P.getPreviousSymptomLevel2()[3]+\",\"+P.getPreviousSymptomLevel2()[4]+\",\"+P.getPreviousSymptomLevel2()[5]+\",\"+P.getPreviousSymptomLevel2()[6]+\",\"\r\n\t\t\t \t\t\t+P.getSymptomsThreshold()[0]+\",\"+P.getSymptomsThreshold()[1]+\",\"+P.getSymptomsThreshold()[2]+\",\"+P.getSymptomsThreshold()[3]+\",\"+P.getSymptomsThreshold()[4]+\",\"+P.getSymptomsThreshold()[5]+\",\"+P.getSymptomsThreshold()[6]+\",'\"+P.getPatientsDoctor()+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "int insert(SysNotice record);", "int insertSelective(TbaDeliveryinfo record);", "public void testInsert() {\n ContentValues values = new ContentValues();\n values.put(SmsOpenHelper.SmsTable.FROM_ACCOUNT, \"12345\");\n values.put(SmsOpenHelper.SmsTable.TO_ACCOUNT, \"admin\");\n values.put(SmsOpenHelper.SmsTable.BODY, \"今晚约吗?\");\n values.put(SmsOpenHelper.SmsTable.TYPE, \"chat\");\n values.put(SmsOpenHelper.SmsTable.TIME, System.currentTimeMillis());\n values.put(SmsOpenHelper.SmsTable.STATUS, \"offline\");\n values.put(SmsOpenHelper.SmsTable.SESSION_ACCOUNT, \"admin\");\n\n getContext().getContentResolver().insert(SmsProvider.URI_SMS, values);\n }", "int insert(Lbm83ChohyokanriPkey record);", "private String insertarCartaMysticalSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "@Test\n public void fsckFIXMetricsUIDLow() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(0L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(1, errors);\n errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "private void insertDummyBook() {\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_NAME, getString(R.string.dummy_book_name));\n values.put(BookEntry.COLUMN_GENRE, BookEntry.GENRE_SELF_HELP);\n values.put(BookEntry.COLUMN_PRICE, getResources().getInteger(R.integer.dummy_book_price));\n values.put(BookEntry.COLUMN_QUANTITY, getResources().getInteger(R.integer.dummy_book_quantity));\n values.put(BookEntry.COLUMN_SUPPLIER, getString(R.string.dummy_book_supplier));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_PHONE, getString(R.string.dummy_supplier_phone_number));\n values.put(DatabaseContract.BookEntry.COLUMN_SUPPLIER_EMAIL, getString(R.string.dummy_book_supplier_email));\n getContentResolver().insert(BookEntry.CONTENT_URI, values);\n }", "public boolean insertTorfdao(ExTorf Torf) {\n\t\treturn false;\n\t}", "public void addTicket(phonecallTicket ticket){\n try {\n \n System.out.println(\"Number of tickets? \" + (total()+1));\n String insert =\"INSERT INTO JEREMY.TICKET \"\n + \"(ID,NAME,PHONE,TAG,DATE,PROBLEM,NOTES,STATUS) \"\n + \"VALUES \"\n \n + \"(\" + (total() +1) +\",'\"\n +ticket.who+\"','\"\n +ticket.phone+\"','\"\n +ticket.tag+\"',' \"\n +ticket.date+\"',' \"\n +ticket.problem+\"',' \"\n +ticket.notes+\"','\"\n +\"NEW\"+\"')\";\n \n System.out.println(insert);\n \n stmt.executeUpdate(insert);\n \n rs = stmt.executeQuery(\"SELECT * FROM JEREMY.TICKET\");\n total();\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n }\n tickets.add(ticket);\n }", "int insertSelective(mailIdentify record);", "public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "void insert(IrpSignInfo record) throws SQLException;", "public void insertErgebnis() \r\n\t{\r\n\t\tIntent callerIntent = getIntent(); \r\n\t\tBundle packageFromSpiel = callerIntent.getBundleExtra(\"SpielInformationen\");\r\n\r\n\t\ttry {\r\n\t\t\t//Toast.makeText(this, \"Insert_Ergebnis\",Toast.LENGTH_LONG).show();\r\n\t\t\t\r\n\t\t\tfinal String METHOD_NAME = \"insertErgebnis\";\r\n\t\t\tfinal String SOAP_ACTION = NAMESPACE + METHOD_NAME;\r\n\r\n\t\t\tSoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);\r\n\t\t\tSoapObject newErgebnis = new SoapObject(NAMESPACE, \"inputErgebnis\");\r\n\t\t\r\n\t\t\tnewErgebnis.addProperty(\"Ergebnis\",this.ergebnisString);\r\n\t\t\tnewErgebnis.addProperty(\"SpielID\", (packageFromSpiel.getInt(\"MaxSpielID\")+1));\r\n\t\t\trequest.addSoapObject(newErgebnis);\r\n\r\n\t\t\tSoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);\r\n\t\t\tenvelope.dotNet = true;\r\n\t\t\tenvelope.setOutputSoapObject(request);\r\n\t\t\tMarshalFloat marshal = new MarshalFloat();\r\n\t\t\tmarshal.register(envelope);\r\n\t\t\r\n\t\t\tHttpTransportSE androidHttpTransport = new HttpTransportSE(URL);\r\n\t\t\tandroidHttpTransport.call(SOAP_ACTION, envelope);\t\t\t\r\n\t\t\tSoapPrimitive soapPrimitive = (SoapPrimitive) envelope.getResponse();\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\tint ret = Integer.parseInt(soapPrimitive.toString());\r\n\t\t\tif (ret <= 0) {\r\n\t\t\t\tToast.makeText(this, \"Insert Ergebnis fail\", Toast.LENGTH_LONG).show();\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(this, \"Insert Ergebnis Successful\",Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t\t*/\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tToast.makeText(this, \"Insert Ergebnis Fehler Exception\",\r\n\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t}\r\n\r\n\t}", "public void insertNotice(BbsNotice notice);", "@Override\r\n\tpublic int inserta(ReservaBean bean) throws Exception {\n\t\treturn 0;\r\n\t}", "private void writefastjx() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"jx\");\r\n\t\tedit.commit();\r\n\t}", "public PostFixException(){\n\t\tsuper();\n\t}", "public abstract void addEPN();", "@Test\n\tpublic void testGpGGA_fixButFixAlreadyStored_doesNotStoreFix() throws SimulationException\n\t{\n\t\tm_simulation.acceptInput(\"$GPGGA,060932.448,2447.0959,S,12100.5204,W,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\t// This checksum is wrong. At time of writing the checksum was not checked.\n\t\tm_simulation.acceptInput(\"$GPGGA,184512.448,1234.5678,N,06012.9682,E,1,08,1.1,108.7,M,,,,0000*0E\\n\\r\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_TIME, \"060932\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_DEGMIN, \"2447\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LATITUDE_HUNDREDTHS, \"09\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NORTH, false);\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_DEGMIN, \"12100\");\n\t\tm_simulation.assertChars(GenerateGpsStateModel.VARIABLE_GPS_LONGITUDE_HUNDREDTHS, \"52\");\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_EAST, false);\n\t\tm_simulation.assertFlag(GenerateGpsStateModel.VARIABLE_GPS_FLAGS, GenerateGpsStateModel.GPS_FLAG_GPS_NEW_POSITION, true);\t\t\n\t}", "@Override\r\n\tpublic boolean addFeback(Feedback f) {\n\t\tString sql = \"insert into feedback(feedbackId,userId,feedbackInfo) values( ?,?, ? )\";\r\n\t\treturn BaseDao.execute(sql, f.getFeedbackId(), f.getUserId(), f.getFeedbackInfo()) > 0;\r\n\t}", "public void insere(Pessoa pessoa){\n\t\tdb.save(pessoa);\n\t}", "int insert(AoD5e466WorkingDay record);", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "protected abstract void insertQuestionTx(QuestionImpl question);", "com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();", "int insertSelective(BasicInfoAnodeBurningLossRate record);", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "@Override\n\t\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\t\tMZLog.e(\"J\", \"同步到购物车失败\");\n\t\t\t\t\t}", "int insert(Notice record);", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void insert(ReceiptFormPO po) throws RemoteException {\n\t\tSystem.out.println(\"Insert ReceiptFormPO Start!!\");\n\t\tioHelper = new IOHelper();\n\t\tallReceiptForm = ioHelper.readFromFile(file);\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\tSystem.out.println(df.format(new Date()));\n\t\tpo.setNO(df.format(new Date()));\n\t\tallReceiptForm.put(po.getNO(), po);\n\t\tSystem.out.println(po.getNO());\n\t\tioHelper.writeToFile(allReceiptForm, file);\n\t\tSystem.out.println(\"Add ReceiptFormPO Over!!\");\n\t}", "public RespuestaBD crearRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioInsercion) {\n/* 342 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* 344 */ int elSiguiente = siguienteRegistro(codigoFlujo);\n/* 345 */ if (elSiguiente == 0) {\n/* 346 */ rta.setMensaje(\"Generando secuencia\");\n/* 347 */ return rta;\n/* */ } \n/* */ \n/* */ try {\n/* 351 */ String s = \"insert into wkf_detalle(codigo_flujo,secuencia,servicio_inicio,accion,codigo_estado,servicio_destino,nombre_procedimiento,correo_destino,enviar_solicitud,ind_mismo_proveedor,ind_mismo_cliente,estado,caracteristica,valor_caracteristica,caracteristica_correo,metodo_seleccion_proveedor,ind_correo_clientes,enviar_hermana,enviar_si_hermana_cerrada,ind_cliente_inicial,usuario_insercion,fecha_insercion) values (\" + codigoFlujo + \",\" + \"\" + elSiguiente + \",\" + \"\" + servicioInicio + \",\" + \"\" + accion + \",\" + \"\" + codigoEstado + \",\" + \"\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \"'\" + nombreProcedimiento + \"',\" + \"'\" + correoDestino + \"',\" + \"'\" + enviar + \"',\" + \"'\" + mismoProveedor + \"',\" + \"'\" + mismoCliente + \"',\" + \"'\" + estado + \"',\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \"'\" + usuarioInsercion + \"',\" + \"\" + Utilidades.getFechaBD() + \"\" + \")\";\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/* 398 */ rta = this.dat.executeUpdate2(s);\n/* 399 */ rta.setSecuencia(elSiguiente);\n/* */ }\n/* 401 */ catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"%FlujoDetalleDAO:crearRegistro \", e);\n/* 404 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 406 */ return rta;\n/* */ }", "int insert(MsgContent record);", "public String upgradIns(String msg) {\r\n\t\tmsg = inst.ToJSON();\r\n\t\tInstruction upgraded = new NewBlockInstruction(\r\n\t\t\t\t(CopyBlockInstruction) inst);\r\n\t\tString msg2 = upgraded.ToJSON();\r\n\t\tSystem.err.println(\"Sending: \" + msg2);\r\n\t\treturn msg2;\r\n\t}" ]
[ "0.64386195", "0.6078991", "0.6039757", "0.5676744", "0.55375236", "0.53969985", "0.53742856", "0.5373011", "0.535833", "0.53412294", "0.52997583", "0.52972096", "0.52748036", "0.52671164", "0.5261917", "0.5259438", "0.52507603", "0.52186537", "0.52021134", "0.5189551", "0.5180875", "0.51614493", "0.5158701", "0.5149702", "0.51350147", "0.5134578", "0.51208764", "0.51203865", "0.5102455", "0.50741345", "0.50724566", "0.50520855", "0.5044607", "0.5042404", "0.5041934", "0.50373536", "0.5037313", "0.5036445", "0.50328857", "0.50129473", "0.50115395", "0.50095254", "0.5005556", "0.49904022", "0.49892706", "0.49855813", "0.49694014", "0.49651316", "0.49525115", "0.494234", "0.49384594", "0.4934033", "0.49333134", "0.49284992", "0.49267322", "0.4925825", "0.4920702", "0.49194962", "0.4918925", "0.49188665", "0.4918384", "0.4916717", "0.49061495", "0.49042445", "0.4895028", "0.4878627", "0.4870262", "0.48657802", "0.48625553", "0.48617774", "0.4857785", "0.48541752", "0.4848119", "0.48477846", "0.48456472", "0.48443043", "0.48368996", "0.4834645", "0.4834414", "0.48310396", "0.48298615", "0.48247197", "0.48218164", "0.48202997", "0.48120555", "0.48080793", "0.4803279", "0.4793902", "0.47935575", "0.47909847", "0.47903627", "0.47894135", "0.4787826", "0.47828436", "0.47817954", "0.47806618", "0.47805935", "0.4775485", "0.47690195", "0.476665", "0.47637397" ]
0.0
-1
DomHelper will transparently create HTML fragments when it can. Using HTML fragments instead of DOM can significantly boost performance. Element creation specification parameters may also be strings. If useDom is false, then the string is used as innerHTML. If useDom is true, a string specification results in the creation of a text node. Usage:
public static native void setUseDom(boolean value)/*-{ $wnd.Ext.DomHelper.useDom = value; }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element createDom(String rawHtml) /*-{\r\n\t\t$wnd.Ext.DomHelper.createDom(rawHtml);\r\n\t}-*/;", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "HTML createHTML();", "HTMLElement createHTMLElement();", "public Element generateElement(Document dom);", "public static native String markup(DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.markup(elem);\r\n\t}-*/;", "Element createElement();", "public String create()\n {\n return createHtml();\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "@Function DocumentFragment createDocumentFragment();", "public String createHtml()\n {\n StringBuffer strEditor = new StringBuffer();\n\n strEditor.append(\"<div>\");\n String encodedValue = escapeXml(value.replaceAll(\"((\\r?\\n)+|\\t*)\", \"\"));\n\n if (check(request.getHeader(\"user-agent\")))\n {\n strEditor.append(createInputForVariable(instanceName, instanceName, encodedValue));\n // create config html\n String configStr = config.getUrlParams();\n if (configStr != null && configStr.length() > 0)\n {\n configStr = configStr.substring(1);\n strEditor.append(createInputForVariable(null, instanceName.concat(\"___Config\"), configStr));\n }\n\n // create IFrame\n String sLink = basePath.concat(\"/editor/fckeditor.html?InstanceName=\").concat(instanceName);\n if (toolbarSet != null && toolbarSet.length() > 0)\n {\n sLink += \"&Toolbar=\".concat(toolbarSet);\n }\n XHtmlTagTool iframeTag = new XHtmlTagTool(\"iframe\", XHtmlTagTool.SPACE);\n iframeTag.addAttribute(\"id\", instanceName.concat(\"___Frame\"));\n iframeTag.addAttribute(\"src\", sLink);\n iframeTag.addAttribute(\"width\", width);\n iframeTag.addAttribute(\"height\", height);\n iframeTag.addAttribute(\"frameborder\", \"no\");\n iframeTag.addAttribute(\"scrolling\", \"no\");\n strEditor.append(iframeTag);\n\n }\n else\n {\n XHtmlTagTool textareaTag = new XHtmlTagTool(\"textarea\", encodedValue);\n textareaTag.addAttribute(\"name\", instanceName);\n textareaTag.addAttribute(\"rows\", \"4\");\n textareaTag.addAttribute(\"cols\", \"40\");\n textareaTag.addAttribute(\"wrap\", \"virtual\");\n textareaTag.addAttribute(\"style\", \"width: \".concat(width).concat(\"; height: \").concat(height));\n }\n strEditor.append(\"</div>\");\n return strEditor.toString();\n }", "@Override\n\tpublic Html makeHtml(Map<String, String> attributes, Head headObj, Body bodyObj) {\n\t\treturn new Html( attributes, headObj, bodyObj );\n\t}", "@FactoryFunc\r\n\t@Function Element createElement(String tagName);", "Div createDiv();", "@Override\n\tpublic Div makeDiv(Map<String, String> attributes, String data) {\n\t\treturn new Div( attributes, data );\n\t}", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(indentLevel + 1);\n \t\tHTMLElement body = generateBodyElement(indentLevel + 1);\n \t\thtml.addContent(head);\n \t\thtml.addContent(body);\n \t\treturn html;\n \t}", "public static native String insertHtml(String where, Element el, String html) /*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertHtml(where, el, html);\r\n\t}-*/;", "public static DocumentFragment produceDocFragmentFromString(String theText, String enc, reporter theReporter)\n throws Exception {\n if (theText == null) {\n return null;\n }\n if (enc == null) {\n enc = default_encoding;\n }\n theText = theText.trim();\n if (!theText.startsWith(\"<?xml\")) {\n // put in artificial root so we reckognize it if it\n // is wrapped during tidy\n theText = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + enc + \"\\\"?><\"+WXTROOT+\">\" + theText + \"</\"+WXTROOT+\">\";\n //?? does not seem to help\n byte[] data = theText.getBytes(enc);\n theText = new String(data, enc);\n }\n try {\n // dont block tidy in this attempt\n Document doc = domer.makeDomFromString(theText, false,enc);\n doc.normalize();\n DocumentFragment df = doc.createDocumentFragment();\n NodeList nlist = doc.getDocumentElement().getChildNodes();\n\n for (int ix = 0; ix < nlist.getLength(); ix++) {\n df.appendChild(nlist.item(ix).cloneNode(true));\n }\n\n return df;\n \n } catch (DOMException e) {\n throw (new Exception(e.getMessage()));\n } catch (Exception e) {\n throw (new Exception(e.getMessage()));\n }\n }", "public static String getHTML() {\n if (create()) {\n return tag.getInnerHTML();\n }\n return \"\";\n }", "public static String saveDomToString(Document doc, String encoding, boolean bIndent,String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n // find out how we should form output\n // make sure we have some encoding\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n try {\n DOMSource xmlDomSource = new DOMSource(doc);\n\n // make an identity transformation\n TransformerFactory transFac = TransformerFactory.newInstance();\n Transformer trans = transFac.newTransformer();\n // set transformatoion properties\n // this is an identity transformation\n // and no properties are set exept defaults\n\n //NOTE: we have a problem with HTML5 which wants a simple header: \n // <!DOCTYPE HTML>\n // we assume that the template is set accordingly\n // This will not give us PublicID and SystemID as null\n // we will have to detect this situastion before we return\n // the text, see below, after transformation\n\n // problem:\n // this will kill other transformed input that make html root\n // use explicit: html5 output option ? (yes)\n\n DocumentType dt = doc.getDoctype();\n String pid = null;\n String sid = null;\n String name = null;\n if (dt != null) {\n pid = dt.getPublicId();\n sid = dt.getSystemId();\n name = dt.getName();\n }\n\n boolean is_HTML5 = false;\n output=output.toLowerCase();\n switch(output){\n case Options.TEXT:\n trans.setOutputProperty(OutputKeys.MEDIA_TYPE, \"text/plain; charset=\" + encoding);\n break;\n \n case Options.XML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.XHTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.HTML5:\n case Options.HTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n is_HTML5 = true;\n break;\n \n default:\n throw new Exception(\"bad output type: \" + output);\n }\n \n\n trans.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\n trans.setOutputProperty(OutputKeys.ENCODING, encoding);\n\n if (bIndent) {\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n trans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"0\");\n } else {\n // use no to avoid prince-problems with toc targets ?????\n trans.setOutputProperty(OutputKeys.INDENT, \"no\");\n }\n\n java.io.StringWriter out = new java.io.StringWriter();\n java.io.BufferedWriter bos = new java.io.BufferedWriter(out);\n StreamResult outStream = new StreamResult(bos);\n trans.transform(xmlDomSource, outStream);\n bos.flush();\n\n // this is where we can clean up a doctype\n // prepared for html 5\n\n String result = out.toString().trim();\n if (is_HTML5 && ( (result.startsWith(\"<html\")) \n || (result.startsWith(\"<HTML\")))) {\n result = \"<!DOCTYPE HTML>\\n\" + result;\n }\n\n return result;\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveDomToString. \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveDomToString. \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveDomToString. \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveDomToString. \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveDomToString. \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveDomToString. \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "private static Element createNode(Document doc, Element element, String tagName, String value) {\n\t\tif (value == null || \"\".equals(value)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tif (EMPTY_STRING.equals(value)) {\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tElement node = doc.createElement(tagName);\n\t\t\telement.appendChild(node);\n\t\t\tnode.appendChild(doc.createTextNode(value));\n\t\t\treturn node;\n\t\t}\n\t}", "public static Document makeDomFromString(String S, boolean blockTidy,String encoding)\n throws Exception {\n if(encoding==null) {\n encoding=default_encoding;\n }\n reporter theReporter=m_Def.getReporter();\n DocumentBuilder dBuilder=makeDocBuilder(false);\n try {\n return doDomFromString(S,dBuilder);\n } \n catch (IOException iox) {\n // nothing more we can do\n throw iox;\n } \n catch (SAXParseException saxx) {\n // we may attempt to tidy if it is not blocked and the option is on\n if ( tidyIsPossibleAndAllowed(!blockTidy)) {\n try {\n // --------- attempt to tidy, final attempt ----------\n theReporter.pushSimpleMessage(\"\\t\" + saxx.getMessage());\n theReporter.pushMessage(\"attempt_to_tidy\");\n S = m_Def.getTidyTool().tidyAndMakeXML(S, encoding, theReporter);\n // block encoding in final attempt\n return doDomFromString(S,dBuilder);\n } catch (Exception sex3) {\n theReporter.pushSimpleMessage(\"Tidy of string failed\");\n // nothing more we can do\n System.out.println(\"tidy failed: \"+sex3.getMessage());\n throw sex3;\n }\n } \n else {\n // we will do nothing\n throw new Exception(\"no tidy: \"+saxx.getMessage());\n }\n } \n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "DIV createDIV();", "private StringBuilder createHtml(Match match)\r\n {\r\n\r\n MatchEquipe bleu = match.getBleu();\r\n MatchEquipe gris = match.getGris();\r\n MatchEquipe noir = match.getNoir();\r\n\r\n StringBuilder html = new StringBuilder();\r\n\r\n html.append(\"<input id=\\\"buttonMatch\" + match.getIdMatch() + \"\\\" src=\\\" \" + PLUS_SRC\r\n + \"\\\" type=\\\"image\\\" onclick=\\\"toggleVisibility('Match\" + match.getIdMatch() + \"');\\\">\" + RN);\r\n\r\n html.append(\"<div id=\\\"Match\" + match.getIdMatch() + \"Plus\\\" style=\\\"visibility: visible; display: block;\\\">\"\r\n + RN);\r\n html.append(\"D�tail du match<br><br>\" + RN);\r\n html.append(\"<table class=\\\"tableau_match\\\" cellspacing=\\\"0\\\">\" + RN);\r\n html.append(\"<tbody><tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Match #\" + match.getIdMatch() + \"</td>\" + RN);\r\n\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"bleu\\\">\" + bleu.getNomEquipe() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"gris\\\">\" + gris.getNomEquipe() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"noir\\\">\" + noir.getNomEquipe() + \"</td>\" + RN);\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">P�riodes gagn�es</td>\" + RN);\r\n\r\n if(!bleu.isForfait())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + bleu.getNbPeriode() + \"</td>\" + RN);\r\n }\r\n else\r\n {\r\n html.append(\"<td colspan=\\\"7\\\"> Forfait </td>\" + RN);\r\n }\r\n\r\n if(!gris.isForfait())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + gris.getNbPeriode() + \"</td>\" + RN);\r\n }\r\n else\r\n {\r\n html.append(\"<td colspan=\\\"7\\\"> Forfait </td>\" + RN);\r\n }\r\n\r\n if(!noir.isForfait())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + noir.getNbPeriode() + \"</td>\" + RN);\r\n }\r\n else\r\n {\r\n html.append(\"<td colspan=\\\"7\\\"> Forfait </td>\" + RN);\r\n }\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"</tbody></table>\" + RN);\r\n html.append(\"</div>\" + RN);\r\n\r\n html.append(\"<div id=\\\"Match\" + match.getIdMatch() + \"Moins\\\" style=\\\"display: none;\\\">\" + RN);\r\n\r\n html.append(\"Réduire le détail du match\" + RN);\r\n html.append(\"<br><br>\" + RN);\r\n\r\n html.append(\"<table class=\\\"tableau_match\\\" cellspacing=\\\"0\\\">\" + RN);\r\n html.append(\"<tbody><tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\"> Match #\" + idMatch.getText() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"bleu\\\">\" + equipeBleu.getText() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"gris\\\">\" + equipeGris.getText() + \"</td>\" + RN);\r\n html.append(\"<td colspan=\\\"7\\\" class=\\\"noir\\\">\" + equipeNoir.getText() + \"</td>\" + RN);\r\n html.append(\"</tr> \" + RN);\r\n html.append(\"<tr> \" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">P�riode</td>\" + RN);\r\n\r\n if(forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td class=\\\"p1\\\" rowspan=\\\"7\\\" colspan=\\\"7\\\">Forfait</td>\" + RN);\r\n }\r\n\r\n if(forfaitGris.isSelected())\r\n {\r\n html.append(\"<td class=\\\"p1\\\" rowspan=\\\"7\\\" colspan=\\\"7\\\">Forfait</td>\" + RN);\r\n }\r\n\r\n if(forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td class=\\\"p1\\\" rowspan=\\\"7\\\" colspan=\\\"7\\\">Forfait</td>\" + RN);\r\n }\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td>1</td>\" + RN);\r\n html.append(\"<td>2</td>\" + RN);\r\n html.append(\"<td>3</td>\" + RN);\r\n html.append(\"<td>4</td>\" + RN);\r\n html.append(\"<td>5</td>\" + RN);\r\n html.append(\"<td>6</td>\" + RN);\r\n html.append(\"<td>7</td>\" + RN);\r\n }\r\n\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td>1</td>\" + RN);\r\n html.append(\"<td>2</td>\" + RN);\r\n html.append(\"<td>3</td>\" + RN);\r\n html.append(\"<td>4</td>\" + RN);\r\n html.append(\"<td>5</td>\" + RN);\r\n html.append(\"<td>6</td>\" + RN);\r\n html.append(\"<td>7</td>\" + RN);\r\n }\r\n\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td>1</td>\" + RN);\r\n html.append(\"<td>2</td>\" + RN);\r\n html.append(\"<td>3</td>\" + RN);\r\n html.append(\"<td>4</td>\" + RN);\r\n html.append(\"<td>5</td>\" + RN);\r\n html.append(\"<td>6</td>\" + RN);\r\n html.append(\"<td>7</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Pointage</td>\" + RN);\r\n\r\n // p�riodes Bleu\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td>\" + P1B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P2B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P3B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P4B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P5B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P6B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P7B.getText() + \"</td>\" + RN);\r\n }\r\n\r\n // P�riode Gris\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td>\" + P1G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P2G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P3G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P4G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P5G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P6G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P7G.getText() + \"</td>\" + RN);\r\n }\r\n\r\n // P�riode noir\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td>\" + P1N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P2N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P3N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P4N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P5N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P6N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + P7N.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Prolongation 1</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td>\" + prol1B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol2B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol3B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol4B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol5B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol6B.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol7B.getText() + \"</td>\" + RN);\r\n }\r\n\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td>\" + prol1G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol2G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol3G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol4G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol5G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol6G.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol7G.getText() + \"</td>\" + RN);\r\n }\r\n\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td>\" + prol1N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol2N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol3N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol4N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol5N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol6N.getText() + \"</td>\" + RN);\r\n html.append(\"<td>\" + prol7N.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">P�riodes gagn�es</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + periodeGagneeBleu.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + periodeGagneeGris.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + periodeGagneeNoir.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Prolongation 2�me position</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + prol22B.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + prol22G.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + prol22N.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Esprit sportif</td>\" + RN);\r\n\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + espritSportifBleu.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + espritSportifGris.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + espritSportifNoir.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\"</tr>\" + RN);\r\n html.append(\"<tr>\" + RN);\r\n html.append(\"<td class=\\\"premiere_colonne\\\">Points championnats</td>\" + RN);\r\n if(!forfaitBleu.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + pointBleu.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitGris.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + pointGris.getText() + \"</td>\" + RN);\r\n }\r\n if(!forfaitNoir.isSelected())\r\n {\r\n html.append(\"<td colspan=\\\"7\\\">\" + pointNoir.getText() + \"</td>\" + RN);\r\n }\r\n\r\n html.append(\" </tr>\" + RN);\r\n html.append(\"</tbody>\" + RN);\r\n html.append(\"</table>\" + RN);\r\n\r\n html.append(\"<strong>Arbitres</strong> : \" + arbitreChef.getText() + \" & \" + arbitreAdjoint.getText() + RN);\r\n\r\n return html.append(\"</div>\" + RN);\r\n }", "@Test\n\tpublic void html_test() {\n\t\tString text = \"\";\n\t\tassertEquals(\"<html></html>\", createHTML(text));\n\t}", "public Element createElement(String localName, String text) {\n Element element = createElement(localName);\n Text textNode = getDocument().createTextNode(text);\n element.appendChild(textNode);\n\n return element;\n }", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public static void setHTML(String html) {\n if (create()) {\n tag.setInnerHTML(SimpleHtmlSanitizer.sanitizeHtml(html).asString());\n }\n }", "private void buildAndInitDivContainer() {\n // TODO(rdcastro): Use the same technique as in render() above.\n\n // Build the div that'll container the panel's HTML.\n Element element = Document.get().createDivElement();\n element.setInnerSafeHtml(getInnerHtml());\n\n // TODO(rdcastro): Implement something like\n // element.mergeFrom(getElement());\n String styleName = getStyleName();\n if (styleName != null) {\n element.setClassName(styleName);\n }\n\n setElement(element);\n\n // If there's any wrap callback to call, we have to attach the div before\n // calling it, and then detach again.\n if (wrapInitializationCallback != null) {\n ensureHiddenDiv();\n hiddenDiv.appendChild(element);\n wrapInitializationCallback.execute();\n element.getParentNode().removeChild(element);\n }\n\n // Call any detached init callbacks we might have.\n if (detachedInitializationCallback != null) {\n detachedInitializationCallback.execute();\n }\n }", "public Element createElement(String tagName, String nodeValue) {\r\n\t\tElement element = doc.createElement(tagName);\r\n\t\t\r\n\t\tif (nodeValue == null) {\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\telement.setNodeValue(nodeValue);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public UseTag createUseTag() {\n return new UseTag();\n }", "public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private OMElement createElement(String str) throws XMLStreamException {\n InputStream in = new ByteArrayInputStream(str.getBytes());\n return new StAXOMBuilder(in).getDocumentElement();\n }", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "String renderHTML();", "public interface SafeHtmlRenderer<T> {\n\n /**\n * Renders {@code object} as safe HTML.\n */\n SafeHtml render(T object);\n\n /**\n * Renders {@code object} as safe HTML, appended directly to {@code builder}.\n */\n void render(T object, SafeHtmlBuilder builder);\n}", "public String toString(){\n String html = \"<html>\\n<head>\\n</head>\\n<body>\";\n for (int i=0; i< dom.size(); i++){\n html+= dom.get(i);\n }\n /* TODO\nLoop through the elemments of the dom and append them to html */\n return html+\"</body>\\n</html>\";\n }", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "default HtmlFormatter wrapWith(String str) {\n return wrapWith(\n str,\n str\n );\n }", "public AdmClientePreferencialHTML(DocumentLoader loader, boolean buildDOM) {\n/* 224 */ this.fDocumentLoader = loader;\n/* */ \n/* 226 */ if (buildDOM)\n/* */ {\n/* 228 */ buildDocument();\n/* */ }\n/* */ }", "public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }", "public static Document makeTransformedDomFromString(String theString, boolean blockTidy, URI transUri,\n HashMap<String, String> parameters, String encoding)\n throws Exception {\n if (encoding == null) {\n encoding = default_encoding;\n }\n reporter theReporter=m_Def.getReporter();\n theString = theString.trim();\n if (!theString.startsWith(\"<?xml\")) {\n theString = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + encoding + \"\\\" ?>\\n\" + theString;\n }\n // trouble here. The source is not located anywhere, what is systemID\n // send systemId for translation?\n // send null?\n try {\n return doTransformString(theString,transUri.toString(), transUri, parameters);\n } catch (IOException iox) {\n //nothing more we can do\n throw iox;\n } catch (Exception ex) {\n if(tidyIsPossibleAndAllowed(!blockTidy)){\n // --------- attempt to tidy, final attempt ----------\n theReporter.pushSimpleMessage(\"\\t\" + ex.getMessage());\n theReporter.pushMessage(\"attempt_to_tidy\");\n try {\n theString = m_Def.getTidyTool().tidyAndMakeXML(theString, encoding, theReporter);\n return doTransformString(theString,transUri.toString(), transUri, parameters);\n } catch (Exception sex3) {\n theReporter.pushMessage(\"could_not_tidy\" ,\"string\",sex3.getMessage());\n // nothing more we can do\n System.out.println(\"tidy failed: \"+sex3.getMessage());\n throw sex3;\n }\n } else {\n // we will do nothing\n throw new Exception(\"no tidy\");\n }\n }\n\n }", "public static Element setInnerHTML(Element e, SafeHtml str) {\n e.setInnerHTML(str.asString());\n return e;\n }", "protected void markup( String text, boolean useIdent )\n {\n if ( useIdent )\n {\n // Very dirty hack to avoid opening space if this line start with inline raw HTML\n // (needs to be separated from surrounding text by one space)\n text = text.replaceAll( \"^\\\\s\", \"\" );\n }\n\n int spaces = useIdent ? indent * INDENT_SPACES : 0;\n String[] lines = text.split( NEW_LINE );\n\n for ( int i = 0; i < lines.length; ++i )\n {\n rst += StringUtils.repeat( \" \", spaces ) + lines[i];\n\n // Do not write a new line character if this is the last line of the markup\n if ( i < ( lines.length - 1 ) )\n {\n newLine();\n }\n }\n\n lastLineLength = lines[lines.length - 1].length();\n }", "default StringBuilder builder() {\n return templateBuilder.get();\n }", "private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public void createFragment() {\n\n }", "ElementText createElementText();", "public ContainerTag generateBody(List<HtmlData> data) {\n return div();\n }", "boolean generateEmbeddableWebComponents();", "MulOrDiv createMulOrDiv();", "public PoaMaestroMultivaloresHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "@Test(dataProvider = \"formsDesignDataProvider\")\n public void formsDesign(boolean useFormsDesign) throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.writeln(\"Hello world!\");\n\n // Set the \"FormsDesign\" property to \"false\" to keep forms design mode disabled.\n // Set the \"FormsDesign\" property to \"true\" to enable forms design mode.\n doc.getViewOptions().setFormsDesign(useFormsDesign);\n\n doc.save(getArtifactsDir() + \"ViewOptions.FormsDesign.xml\");\n //ExEnd\n\n if (useFormsDesign)\n TestUtil.fileContainsString(\"<w:formsDesign />\", getArtifactsDir() + \"ViewOptions.FormsDesign.xml\");\n else\n Assert.assertThrows(AssertionError.class, () -> TestUtil.fileContainsString(\"<w:formsDesign />\", getArtifactsDir() + \"ViewOptions.FormsDesign.xml\"));\n }", "private HTMLElement generateDivElement(String divId, int indentLevel) {\n \t\tHTMLElement div = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_DIV, indentLevel, true);\n \t\tif (divId != null)\n \t\t\tdiv.addAttribute(IIntroHTMLConstants.ATTRIBUTE_ID, divId);\n \t\treturn div;\n \t}", "@Override\n\tpublic String generateHTML() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString level = \"\\t\";\n\t\tstringBuilder.append(level.repeat(levelCount)+\"<div>\\n\");\n\t\tlevelCount++;\n\t\tfor (HTMLGenerator htmlGenerator : tags) {\n\t\t\tstringBuilder.append(level.repeat(levelCount)+htmlGenerator.generateHTML());\n\t\t}\n\t\tstringBuilder.append(\"</div>\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}", "public PoaMaestroMultivaloresHTML(DocumentLoader loader, boolean buildDOM) {\n/* 286 */ this.fDocumentLoader = loader;\n/* */ \n/* 288 */ if (buildDOM)\n/* */ {\n/* 290 */ buildDocument();\n/* */ }\n/* */ }", "private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }", "DsmlComponent createDsmlComponent();", "public void setHtmlFromString(String html, boolean useLocalDrawables) {\n Html.ImageGetter imgGetter;\n\n if (useLocalDrawables) {\n imgGetter = new LocalImageGetter(getContext());\n } else {\n imgGetter = new UrlImageGetter(this, getContext());\n }\n\n // this uses Android's Html class for basic parsing, and HtmlTagHandler\n setText(Html.fromHtml(html, imgGetter, new HtmlTagHandler()));\n\n // make links work\n setMovementMethod(LinkMovementMethod.getInstance());\n this.setTextColor(getResources().getColor(android.R.color.secondary_text_dark_nodisable));\n\n }", "@Test\n\tvoid transformTagWithHtmlEscape() throws JspException {\n\t\tPageContext pc = createPageContext();\n\t\tTestBean tb = new TestBean();\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tServletRequestDataBinder binder = new ServletRequestDataBinder(tb, \"tb\");\n\t\tCustomDateEditor l = new CustomDateEditor(df, true);\n\t\tbinder.registerCustomEditor(Date.class, l);\n\t\tpc.getRequest().setAttribute(BindingResult.MODEL_KEY_PREFIX + \"tb\", binder.getBindingResult());\n\n\t\t// try another time, this time using Strings\n\t\tBindTag bind = new BindTag();\n\t\tbind.setPageContext(pc);\n\t\tbind.setPath(\"tb.name\");\n\t\tbind.doStartTag();\n\n\t\tTransformTag transform = new TransformTag();\n\t\ttransform.setPageContext(pc);\n\t\ttransform.setValue(\"na<me\");\n\t\ttransform.setParent(bind);\n\t\ttransform.setVar(\"theString\");\n\t\ttransform.setHtmlEscape(true);\n\t\ttransform.doStartTag();\n\n\t\tassertThat(pc.getAttribute(\"theString\")).isNotNull();\n\t\tassertThat(pc.getAttribute(\"theString\")).isEqualTo(\"na&lt;me\");\n\t}", "private HTMLElement generateTextElement(String type, String spanID,\n \t\t\tString spanClass, String spanContent, int indentLevel) {\n \t\t// Create the span: <SPAN>spanContent</SPAN>\n \t\tHTMLElement span = new HTMLElement(IIntroHTMLConstants.ELEMENT_SPAN);\n \t\tif (spanID != null)\n \t\t\tspan.addAttribute(IIntroHTMLConstants.ATTRIBUTE_ID, spanID);\n \t\tif (spanClass != null)\n \t\t\tspan.addAttribute(IIntroHTMLConstants.ATTRIBUTE_CLASS, spanClass);\n \t\tif (spanContent != null)\n \t\t\tspan.addContent(spanContent);\n \t\t// Create the enclosing text element: <P><SPAN>spanContent</SPAN></P>\n \t\tHTMLElement text = new FormattedHTMLElement(type, indentLevel, false);\n \t\ttext.addContent(span);\n \t\treturn text;\n \t}", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Function Text createTextNode(String data);", "private static void addTag(StringBuilder xml, final String name,\n\t\t\tfinal String value) {\n\t\tString v = StringMethods.stripHTML(value, true);\n\t\t\n\t\tv = v.replace(\"&\", \"&amp;\");\n\t\tv = v.replace(\"<\", \"&lt;\").replace(\">\", \"&gt;\");\n\t\tv = v.replaceAll(\"\\\\s+\", \" \");\n\n\t\txml.append(\"\\t<\").append(name).append(\">\");\n\t\txml.append(v.trim());\n\t\txml.append(\"</\").append(name).append(\">\\n\");\n\t}", "protected View createCustomView(ViewFactory f,\n int startOffset, int maxEndOffset, int elementIndex) {\n\n\n/*\n // Default implementation delegating to view factory\n // is here just to show the possible functionality\n // and clarify the variables\n\n View v;\n if (parentElement != null) {\n Element elem = parentElement.getElement(elementIndex);\n if (elem.getStartOffset() != startOffset) {\n throw new IllegalStateException(\"Not element boundary\");\n }\n\n if (elem.getEndOffset() > maxEndOffset) {\n throw new IllegalStateException(\"Beyond maximum ending offset\");\n }\n\n v = f.create(elem);\n\n } else { // no element - need more information\n return null;\n }\n */\n \n return null;\n }", "public MarkupWriterMock() {\n this.document.newRootElement(\"html\");\n this.currentElement = this.document.getRootElement();\n }", "private View initUiComponents(LayoutInflater inflater, ViewGroup container){\n //Inflate a new view hierarchy from the specified XML node.\n View result = inflater.inflate(R.layout.test_fragment, container, false);\n btnFragment = (Button)result.findViewById(R.id.buttonFragment);\n txtFragment = (TextView)result.findViewById(R.id.txtFragment);\n btnFragment.setOnClickListener(this);\n return (result);\n }", "@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;", "private DefaultHTMLs(String contents){\r\n\t\tthis.contents = contents;\r\n\t}", "protected Element el(String tag, Node i){\n\t\tElement e = doc.createElement(tag);\n\t\tif (i instanceof Attr) { \n\t\t\te.setAttributeNode((Attr)i);\n\t\t} else {\n\t\t\te.appendChild(i);\n\t\t}\n\t\treturn e;\n\t}", "public static void makeHtmlFile(String s,PrintWriter pw,String first,String second,String third)\n \t{\n \t pw.println(\"<!DOCTYPE html><html lang=\\\"en\\\"><head><meta charset=\\\"UTF-8\\\"><title>\"+s+\"</title><link rel=\\\"stylesheet\\\" href=\\\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css\\\"></head>\");\n \t pw.println(\"<body id=\\\"body\\\"><div class=main id=\\\"main\\\"> </div>\");\n \t pw.println(\"<div id=\\\"\"+ first+\"\\\" class=\"+\"\\\"#\"+first+\"\\\"><h3>\"+first+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+second+\"\\\" class=\\\"#\"+second+\"\\\"><h3>\"+second+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+third+\"\\\" class=\\\"#\"+third+\"\\\"><h3>\"+third+\"</h3></div>\");\n \t pw.println(\"<script src=\\\"Main.js\\\"></script>\");\n \t pw.println(\"</body></html>\");\n\t \t pw.close();\n\t }", "public static XMLStringWriter create() {\r\n return new XMLStringWriter(new StringWriter());\r\n }", "public static Document makeDomFromUri(URI theUri, boolean blockTidy, String encoding)\n throws Exception {\n if (encoding == null) {\n encoding = default_encoding;\n }\n reporter theReporter=m_Def.getReporter();\n if (theUri == null) {\n throw new Exception(\"Missing URI\");\n }\n DocumentBuilder dBuilder = makeDocBuilder(false);\n // ----- strait ----\n try {\n return dBuilder.parse(theUri.toString());\n } \n catch (IOException ioex) {\n // nothing more we can do\n //throw ioex;\n throw new Exception(\"File not found or loaded\");\n } \n catch (Exception se) {\n if(tidyIsPossibleAndAllowed(!blockTidy)){ \n theReporter.pushSimpleMessage(\"\\t\" + se.getMessage());\n theReporter.pushMessage(\"attempt_to_tidy\");\n // ------- we must get the source -------\n System.out.println(\"loading source: \" + theUri.toString());\n try {\n // should this be made BOMsafe:\n //source=accessutils.getBOMSafeTextFile(theUri, encoding);\n String source = accessutils.getTextFile(theUri, encoding);\n source = source.trim();\n source=m_Def.getTidyTool().tidyAndMakeXML(source, encoding, theReporter);\n return doDomFromString(source, dBuilder);\n } catch (Exception sex) {\n theReporter.pushMessage(\"could_not_tidy\",theUri.toString(),sex.getMessage());\n // nothing more we can do\n System.out.println(\"tidy failed: \"+sex.getMessage()); \n throw sex;\n }\n }\n else\n {\n // we will do nothing\n throw new Exception(\"cannot parse\" +theUri.toString()+\", no tidy attempt: \"+se.getMessage());\n }\n }\n }", "private HTMLElement newtd(String contenido) {\n/* 375 */ HTMLElement td = (HTMLElement)this.pagHTML.createElement(\"td\");\n/* 376 */ td.appendChild(this.pagHTML.createTextNode(contenido));\n/* 377 */ td.setAttributeNode(newAttr(\"class\", \"ctd\"));\n/* 378 */ return td;\n/* */ }", "public DocumentBuilderFactory createDocumentBuilderFactory() throws FactoryConfigurationError {\n return DocumentBuilderFactory.newInstance();\n }", "ElementDefinition createElementDefinition();", "public static Element createElementNode(\r\n final Document doc, final String namespaceUri, final String prefix, final String tagName,\r\n final String textContent) throws Exception {\r\n\r\n Element newNode = doc.createElementNS(namespaceUri, tagName);\r\n newNode.setPrefix(prefix);\r\n if (textContent != null) {\r\n newNode.setTextContent(textContent);\r\n }\r\n return newNode;\r\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public static void saveDom(Document doc, URI theUri, String encoding, boolean bIndent, String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n if (theUri == null) {\n throw (new Exception(\"No_uri_to_save_to\"));\n }\n output = output.toLowerCase().trim();\n if ((!output.equals(Options.XML))\n && (!output.equals(Options.HTML))\n && (!output.equals(Options.HTML5))\n && (!output.equals(Options.TEXT))\n && (!output.equals(Options.XHTML))) {\n throw (new Exception(\"unknown_output_method\" + \": \" + output));\n }\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n String ds = saveDomToString(doc, encoding, bIndent, output);\n accessutils.saveTFile(theUri, ds, encoding);\n // It would be slightly faster to transform directly to URI\n // but making the string first gives better control and one place to\n // work with the rather tricky code\n\n }", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "private Element encapsulateString(String sentence){\n return new MyElement(sentence);\n }", "public static GraphNode createGraphNodeForUseCase() {\n GraphNode graphNode = new GraphNode();\n GraphNode graphNodeName = new GraphNode();\n\n for (int i = 0; i < 3; i++) {\n GraphNode childNode = new GraphNode();\n\n childNode.setPosition(AccuracyTestHelper.createPoint(60, 20 + 20 * i));\n childNode.setSize(AccuracyTestHelper.createDimension(100, 22));\n\n graphNodeName.addContained(childNode);\n }\n\n graphNode.addContained(graphNodeName);\n\n graphNode.setPosition(AccuracyTestHelper.createPoint(20, 20));\n graphNode.setSize(AccuracyTestHelper.createDimension(100, 100));\n\n // create a use case\n UseCase usecase = new UseCaseImpl();\n\n // set stereotype\n Stereotype stereotype = new StereotypeImpl();\n usecase.addStereotype(stereotype);\n\n // set namespace\n Namespace namespace = new MockAccuracyNamespaceImpl();\n usecase.setNamespace(namespace);\n\n // create a semantic model\n Uml1SemanticModelBridge semanticModel = new Uml1SemanticModelBridge();\n semanticModel.setElement(usecase);\n\n graphNode.setSemanticModel(semanticModel);\n\n return graphNode;\n }", "default HtmlFormatter decorate(String tag, Map<String, String> attributes) {\n if (attributes.isEmpty()) {\n return decorate(tag);\n }\n String attrs = attributes.entrySet().stream().map(entry -> String.join(\n \"\",\n entry.getKey(),\n \"=\\\"\",\n escapeHtml4(entry.getValue()),\n \"\\\"\"\n )).collect(Collectors.joining(\" \"));\n return andThen(s -> s.isEmpty() ? \"\" : String.join(\n \"\",\n \"<\",\n tag,\n \" \",\n attrs,\n \">\",\n s,\n \"</\",\n tag,\n \">\"\n ));\n }", "UL createUL();", "default HtmlFormatter decorate(String tag, String attribute, String value) {\n return andThen(s -> s.isEmpty() ? \"\" : String.join(\n \"\",\n \"<\",\n tag,\n \" \",\n attribute,\n \"=\\\"\",\n escapeHtml4(value),\n \"\\\">\",\n s,\n \"</\",\n tag,\n \">\"\n ));\n }", "public String getHtml() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(StringContainer sc : container) {\n\t\t\tsb.append(sc.getString());\n\t\t}\n\t\treturn \"<html><body>\"+sb.toString()+\"</body></html>\";\n\t}", "public void render(@NonNull HtmlStream stream) {\n validate();\n\n Boolean eol = (Boolean)componentAttributes.get(COMPONENT_ATTRIB_END_WITH_LINEBREAK);\n\n // Open Tag\n stream.write(\"<\");\n\n String tag = (String) componentAttributes.get(COMPONENT_ATTRIB_TAG_NAME);\n\n if (tag == null) {\n LOG.warn(\"Null tag name for component \" + getClass());\n }\n\n stream.write(tag);\n\n for ( int i = 0; i < tagAttributes.size(); i++ ) {\n String name = tagAttributes.get(i).getKey();\n String value = tagAttributes.get(i).getValue();\n\n if(value == null) {\n stream.write(\" \" + name );\n } else {\n stream.write(\" \" + name + \"=\\\"\" + value + \"\\\"\");\n }\n }\n\n stream.writeln(\">\");\n\n // Body\n renderBody(stream);\n\n // Close Tag\n Boolean tagClose = (Boolean)componentAttributes.get(COMPONENT_ATTRIB_TAG_CLOSE);\n\n if ( Boolean.TRUE.equals(tagClose) ) {\n stream.write(\"</\");\n stream.write((String) componentAttributes.get(COMPONENT_ATTRIB_TAG_NAME));\n\n if ( eol != null && eol.equals(Boolean.FALSE )) {\n stream.write(\">\");\n } else {\n stream.writeln(\">\");\n }\n\n }\n\n }", "private Attr newAttr(String tipo, String valor) {\n/* 341 */ Attr atrib = this.pagHTML.createAttribute(tipo);\n/* 342 */ atrib.setValue(valor);\n/* 343 */ return atrib;\n/* */ }", "protected abstract Fragment createFragment();", "public void generateHelper(StringBuilder sb, int left, int right, List<String> res){\n if ( left > 0 ){\n // StringBuilder sbnow = sb;// new StringBuilder(sb);\n sb.append(\"(\");\n generateHelper(sb, left - 1, right, res);\n }\n // if there are more ')' out there, put in first to ensure left >= right\n if ( left < right){\n // StringBuilder sbnow = sb; //new StringBuilder(sb);\n sb.append(\")\");\n generateHelper(sb, left, right - 1, res);\n }\n if ( left == 0 && right == 0 ) {\n res.add(sb.toString());\n // return;\n }\n if ( sb.length() > 0 ) sb.deleteCharAt(sb.length() - 1);\n }", "public JsStatement html(CharSequence htmlContents)\n\t{\n\t\tchain(AttributesHelper.html(htmlContents));\n\t\treturn this;\n\t}", "@Test\n\tpublic void two_paragraph_test() {\n\t\tString text = \"Paragraph1\\n\\nParagraph2\";\n\t\tassertEquals(\"<html><p>Paragraph1</p><p>Paragraph2</p></html>\", createHTML(text));\n\t}", "public void setHTML(String html);", "public Text createTextNode(String data, Element parent);" ]
[ "0.59949625", "0.55385745", "0.5523639", "0.5321127", "0.51566535", "0.48719507", "0.4855551", "0.47794154", "0.47607374", "0.4686919", "0.46034443", "0.4528317", "0.45184368", "0.45113182", "0.45020217", "0.4428448", "0.43813083", "0.43807936", "0.43748626", "0.43353233", "0.42608765", "0.42332596", "0.42247808", "0.42216912", "0.42211202", "0.42034125", "0.42013124", "0.4183102", "0.4176657", "0.41688454", "0.41628063", "0.4150045", "0.41395935", "0.41235602", "0.412031", "0.41197056", "0.41181266", "0.406703", "0.40536636", "0.4033069", "0.39921486", "0.39900523", "0.3948989", "0.3946509", "0.3939883", "0.39220798", "0.39068973", "0.38769907", "0.38752905", "0.38582504", "0.38413998", "0.38364562", "0.38364333", "0.38305515", "0.3819375", "0.3816875", "0.38108602", "0.38048798", "0.3795812", "0.37875128", "0.37623918", "0.37566292", "0.37452948", "0.374185", "0.3733005", "0.37321234", "0.37312815", "0.37237653", "0.37176824", "0.3711537", "0.3708855", "0.37019643", "0.3688345", "0.36880738", "0.36830884", "0.3670466", "0.36668575", "0.36564198", "0.365561", "0.36555064", "0.36496657", "0.36473972", "0.3632081", "0.36286122", "0.36217555", "0.36166734", "0.3608414", "0.35986155", "0.35927808", "0.35898393", "0.35880795", "0.3581383", "0.357806", "0.35780275", "0.35778248", "0.3575812", "0.35742664", "0.35678738", "0.35606828", "0.35604292" ]
0.53232646
3
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(String parentId, String rawHtml)/*-{ var obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "void append(E element);", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Override\n public abstract void addToXmlElement(Element element);", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6934326", "0.6729311", "0.67151415", "0.6327634", "0.6280155", "0.6107278", "0.5979133", "0.5975948", "0.5969701", "0.5943112", "0.58852", "0.58073974", "0.5792339", "0.57627416", "0.56742066", "0.5657014", "0.5598415", "0.5597287", "0.55729294", "0.5555935", "0.5552436", "0.5524947", "0.55105805", "0.5501568", "0.54465663", "0.54306", "0.53878653", "0.5372607", "0.53720444", "0.5370245", "0.5346787", "0.5346331", "0.532806", "0.5324051", "0.531345", "0.530804", "0.5292345", "0.52907634", "0.5273284", "0.52608764", "0.52498025", "0.52430665", "0.52347475", "0.5233259", "0.5230202", "0.5228792", "0.52182406", "0.52067775", "0.52055985", "0.51970714", "0.51866484", "0.51783437", "0.517016", "0.51691586", "0.5164408", "0.5163948", "0.5161856", "0.51593757", "0.5155967", "0.5134479", "0.5114775", "0.51107913", "0.51107913", "0.51107913", "0.51107913", "0.51107913", "0.51107913", "0.51107913", "0.51104695", "0.5091346", "0.5082174", "0.50643665", "0.5052036", "0.504753", "0.50459963", "0.50282663", "0.50282663", "0.5025176", "0.5020924", "0.5000119", "0.49995106", "0.4998094", "0.49938533", "0.498901", "0.49871767", "0.4987127", "0.49827018", "0.4977075", "0.49719313", "0.4966182", "0.4963942", "0.49617276", "0.49520785", "0.4946723", "0.49457175", "0.49440736", "0.49399918", "0.49387017", "0.49362326", "0.49138397" ]
0.5862157
11
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(String parentId, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var obj = $wnd.Ext.DomHelper.append(parentId, configJS, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "void append(E element);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6934233", "0.6729078", "0.6715031", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552559", "0.55254513", "0.55086833", "0.5501422", "0.54461676", "0.54302335", "0.53876156", "0.5375894", "0.5371145", "0.5369937", "0.534823", "0.5347738", "0.53262556", "0.5324817", "0.53136075", "0.5308575", "0.529355", "0.528932", "0.52738625", "0.5258635", "0.5248375", "0.52432626", "0.52355254", "0.52340597", "0.5232444", "0.522912", "0.5218805", "0.5206138", "0.52058613", "0.51974386", "0.518609", "0.5179467", "0.5170184", "0.51699454", "0.51653343", "0.51646686", "0.5162737", "0.515996", "0.5154465", "0.51337516", "0.5115507", "0.51112586", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5092433", "0.50829214", "0.5066869", "0.505229", "0.50473815", "0.504524", "0.5029606", "0.5029606", "0.5024464", "0.50210375", "0.500186", "0.50002974", "0.50002074", "0.49942538", "0.4988557", "0.49874023", "0.4986222", "0.49827343", "0.49756896", "0.4973319", "0.4967794", "0.4965525", "0.4962788", "0.49530646", "0.49471295", "0.4945694", "0.4944143", "0.49413648", "0.49386868", "0.4935216", "0.49125645" ]
0.5969781
8
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(Element parent, String rawHtml)/*-{ var obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "void append(E element);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6934233", "0.6729078", "0.6715031", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552559", "0.55254513", "0.55086833", "0.5501422", "0.54461676", "0.54302335", "0.53876156", "0.5375894", "0.5371145", "0.5369937", "0.534823", "0.5347738", "0.53262556", "0.5324817", "0.53136075", "0.5308575", "0.529355", "0.528932", "0.52738625", "0.5258635", "0.5248375", "0.52432626", "0.52355254", "0.52340597", "0.5232444", "0.522912", "0.5218805", "0.5206138", "0.52058613", "0.51974386", "0.518609", "0.5179467", "0.5170184", "0.51699454", "0.51653343", "0.51646686", "0.5162737", "0.515996", "0.5154465", "0.51337516", "0.5115507", "0.51112586", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5092433", "0.50829214", "0.5066869", "0.505229", "0.50473815", "0.504524", "0.5029606", "0.5029606", "0.5024464", "0.50210375", "0.500186", "0.50002974", "0.50002074", "0.49942538", "0.4988557", "0.49874023", "0.4986222", "0.49827343", "0.49756896", "0.4973319", "0.4967794", "0.4965525", "0.4962788", "0.49530646", "0.49471295", "0.4945694", "0.4944143", "0.49413648", "0.49386868", "0.4935216", "0.49125645" ]
0.6327539
3
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(Element parent, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var obj = $wnd.Ext.DomHelper.append(parent, configJS, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "void append(E element);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6934233", "0.6715031", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552559", "0.55254513", "0.55086833", "0.5501422", "0.54461676", "0.54302335", "0.53876156", "0.5375894", "0.5371145", "0.5369937", "0.534823", "0.5347738", "0.53262556", "0.5324817", "0.53136075", "0.5308575", "0.529355", "0.528932", "0.52738625", "0.5258635", "0.5248375", "0.52432626", "0.52355254", "0.52340597", "0.5232444", "0.522912", "0.5218805", "0.5206138", "0.52058613", "0.51974386", "0.518609", "0.5179467", "0.5170184", "0.51699454", "0.51653343", "0.51646686", "0.5162737", "0.515996", "0.5154465", "0.51337516", "0.5115507", "0.51112586", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5092433", "0.50829214", "0.5066869", "0.505229", "0.50473815", "0.504524", "0.5029606", "0.5029606", "0.5024464", "0.50210375", "0.500186", "0.50002974", "0.50002074", "0.49942538", "0.4988557", "0.49874023", "0.4986222", "0.49827343", "0.49756896", "0.4973319", "0.4967794", "0.4965525", "0.4962788", "0.49530646", "0.49471295", "0.4945694", "0.4944143", "0.49413648", "0.49386868", "0.4935216", "0.49125645" ]
0.6729078
1
/// Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(ExtElement parent, String rawHtml)/*-{ var obj = $wnd.Ext.DomHelper.append( parent.@com.ait.toolkit.core.client.JsObject::getJsObj()(), rawHtml, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public void newElement() {\r\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "protected abstract M createNewElement();", "Form addElement(Element element);", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "void append(E element);", "protected abstract void createNestedWidgets();", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "UL createUL();", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public void configure(Element parent) {\n }", "@Override\n public abstract void addToXmlElement(Element element);", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "Div createDiv();", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "void addElement(FormElement elt);", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "HTMLElement createHTMLElement();", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "ElementImage createElementImage();", "private void addSubnodes( Element root, String node_name ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement( node_name );\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\r\n\r\n\t\tint num = Inputs.getInt( \"¿Cuántos sub-elementos tiene <\" + node_name + \">?\" );\r\n\r\n\t\tfor ( int i = 0; i < num; i++ ) {\r\n\r\n\t\t\taddSubnodes( element, ( i + 1 ));\r\n\t\t}\r\n\t}", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private Node append(E element) {\n \treturn new Node(sentinel.pred, element);\n }", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "public abstract void addChild(Node node);", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "public Element generateElement(Document dom);", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "@Override\npublic void childComponentsAdditionStarted() {\n\t\n}", "BElement createBElement();", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "public void addChild(WSLNode node) {children.addElement(node);}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.709294", "0.68977034", "0.68601334", "0.68345076", "0.6507471", "0.64290875", "0.63490385", "0.6272137", "0.61602", "0.6146556", "0.61367315", "0.6130476", "0.60875785", "0.60758954", "0.60305035", "0.5904908", "0.58488846", "0.5794492", "0.57759744", "0.5775967", "0.57427776", "0.5742404", "0.5734916", "0.5732544", "0.57244575", "0.57241637", "0.57241595", "0.5697247", "0.56618005", "0.5647333", "0.5640311", "0.5621841", "0.56179374", "0.56166315", "0.5589314", "0.55845714", "0.55539453", "0.55445194", "0.55263144", "0.5518771", "0.5517998", "0.55173373", "0.5506739", "0.5495593", "0.5493376", "0.5491415", "0.54859686", "0.54819244", "0.5467836", "0.5465812", "0.5455115", "0.5441554", "0.5431395", "0.538501", "0.538501", "0.5383812", "0.53814304", "0.5376175", "0.5376175", "0.5376175", "0.5376175", "0.5376175", "0.5376175", "0.5376175", "0.53673583", "0.53633964", "0.53599674", "0.5353604", "0.533608", "0.53312534", "0.5330379", "0.5324733", "0.53197545", "0.53186584", "0.53182364", "0.5316488", "0.5315036", "0.53147084", "0.53140646", "0.5300635", "0.5290955", "0.5287894", "0.52868736", "0.5282368", "0.5276724", "0.52725434", "0.5264601", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549", "0.5262549" ]
0.6097041
12
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(ExtElement parent, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var obj = $wnd.Ext.DomHelper.append( parent.@com.ait.toolkit.core.client.JsObject::getJsObj()(), configJS, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "void append(E element);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6934233", "0.6729078", "0.6715031", "0.6327539", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552559", "0.55254513", "0.55086833", "0.5501422", "0.54461676", "0.54302335", "0.53876156", "0.5375894", "0.5371145", "0.5369937", "0.534823", "0.5347738", "0.53262556", "0.5324817", "0.53136075", "0.5308575", "0.529355", "0.528932", "0.52738625", "0.5258635", "0.5248375", "0.52432626", "0.52355254", "0.52340597", "0.5232444", "0.522912", "0.5218805", "0.5206138", "0.52058613", "0.51974386", "0.518609", "0.5179467", "0.5170184", "0.51699454", "0.51653343", "0.51646686", "0.5162737", "0.515996", "0.5154465", "0.51337516", "0.5115507", "0.51112586", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5092433", "0.50829214", "0.5066869", "0.505229", "0.50473815", "0.504524", "0.5029606", "0.5029606", "0.5024464", "0.50210375", "0.500186", "0.50002974", "0.50002074", "0.49942538", "0.4988557", "0.49874023", "0.4986222", "0.49827343", "0.49756896", "0.4973319", "0.4967794", "0.4965525", "0.4962788", "0.49530646", "0.49471295", "0.4945694", "0.4944143", "0.49413648", "0.49386868", "0.4935216", "0.49125645" ]
0.6280147
4
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(ExtElement parent, ExtElement child)/*-{ var obj = $wnd.Ext.DomHelper .append( parent.@com.ait.toolkit.core.client.JsObject::getJsObj()(), child.@com.ait.toolkit.core.client.JsObject::getJsObj()(), true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "void append(E element);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6934233", "0.6729078", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552559", "0.55254513", "0.55086833", "0.5501422", "0.54461676", "0.54302335", "0.53876156", "0.5375894", "0.5371145", "0.5369937", "0.534823", "0.5347738", "0.53262556", "0.5324817", "0.53136075", "0.5308575", "0.529355", "0.528932", "0.52738625", "0.5258635", "0.5248375", "0.52432626", "0.52355254", "0.52340597", "0.5232444", "0.522912", "0.5218805", "0.5206138", "0.52058613", "0.51974386", "0.518609", "0.5179467", "0.5170184", "0.51699454", "0.51653343", "0.51646686", "0.5162737", "0.515996", "0.5154465", "0.51337516", "0.5115507", "0.51112586", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5092433", "0.50829214", "0.5066869", "0.505229", "0.50473815", "0.504524", "0.5029606", "0.5029606", "0.5024464", "0.50210375", "0.500186", "0.50002974", "0.50002074", "0.49942538", "0.4988557", "0.49874023", "0.4986222", "0.49827343", "0.49756896", "0.4973319", "0.4967794", "0.4965525", "0.4962788", "0.49530646", "0.49471295", "0.4945694", "0.4944143", "0.49413648", "0.49386868", "0.4935216", "0.49125645" ]
0.6715031
2
Creates new Dom element(s) and appends them to the parent element.
public static native ExtElement append(Element parent, Element child)/*-{ var obj = $wnd.Ext.DomHelper.append(parent, child, true); return @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void appendChild(Object child);", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void newElement() {\r\n }", "protected abstract M createNewElement();", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "protected abstract void createNestedWidgets();", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "protected abstract T parentElementFor(T child) throws SAXException;", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Form addElement(Element element);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "public void addParent(Node parent) {\n\t\tprevLayerNodes.add(parent);\n\t}", "public void toChildXmlElement(final @NotNull Element parentEl) {\n final Element element = parentEl.getOwnerDocument().createElement(DynXmlObjLoader.XML_TAG);\n parentEl.appendChild(element);\n element.setAttribute(DynXmlObjLoader.XML_ATTR_CLASS, this.getClass().getName());\n element.setAttribute(DynXmlObjLoader.XML_ATTR_NAME, m_strName);\n // this is the MapNatural specific stuff\n if ((null != m_mtl) && (m_mtl instanceof IDynXmlObject)) {\n ((IDynXmlObject) m_mtl).toChildXmlElement(element);\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "void addExistingElement(final PipelineElement parent, final PipelineElement existingElement)\n throws PipelineModelException {\n\n final String id = existingElement.getId();\n\n if (combinedData.getElements().containsKey(id)) {\n throw new PipelineModelException(\"An element with this id already exists\");\n } else if (parent == null) {\n throw new PipelineModelException(\"No parent element has been selected\");\n }\n\n // Make sure this element isn't shadowed anymore.\n pipelineData.getRemovedElements().remove(existingElement);\n\n// debugLinks(\"LINKS 2\", pipelineData.getLinks());\n// debugLinks(\"LINKS 2\", combinedData.getLinks());\n\n // Make sure this link isn't marked as removed.\n final PipelineLink pipelineLink = PipelineDataUtil.createLink(parent.getId(), id);\n pipelineData.getLinks().getRemove().remove(pipelineLink);\n if (!pipelineData.getAddedLinks().contains(pipelineLink)) {\n pipelineData.addLink(pipelineLink);\n }\n\n// debugLinks(\"LINKS 3\", pipelineData.getLinks());\n// debugLinks(\"LINKS 3\", combinedData.getLinks());\n\n buildCombinedData();\n\n// debugLinks(\"LINKS 4\", pipelineData.getLinks());\n// debugLinks(\"LINKS 4\", combinedData.getLinks());\n\n refresh();\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "public Element addFormItem(Element parent, int commandCount) {\r\n\t\tElement item = mDocument.createElement(\"IppItem\");\r\n\t\titem.setAttribute(\"CommandCount\", String.valueOf(commandCount));\r\n\t\tparent.appendChild(item);\r\n\r\n\t\treturn item;\r\n\t}", "void append(E element);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void addGroup(LinearLayout parent, String title, String category, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n LinearLayout layout = new LinearLayout(this);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layout.setLayoutParams(params);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.addView(createViewByTitle(title, category));\n addThingsToParent(layout, category, genders, weatherTypes);\n parent.addView(layout);\n }", "private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "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}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }", "@Test\r\n public void testAppendChild_getChilds() {\r\n System.out.println(\"appendChild\");\r\n ConfigNode configNode = new ConfigNode(testLine);\r\n \r\n ConfigNode childNode1 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode1);\r\n ConfigNode childNode2 = new ConfigNode(testLine);\r\n configNode.appendChild(childNode2);\r\n \r\n List<ConfigNode> childs = configNode.getChilds();\r\n assertEquals(childNode1, childs.get(0));\r\n assertEquals(childNode2, childs.get(1));\r\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "@Override\n public abstract void addToXmlElement(Element element);", "public void add(Object child) \n\t{\n\t\tLog.w(LCAT, \"PickerRow does not support child controls\");\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public CMLElement makeElementInContext(Element parent) {\r\n return new CMLVector3();\r\n\r\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addChild(WSLNode node) {children.addElement(node);}", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "private void addThingsToParent(LinearLayout parent, String target, List<Gender> genders, List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n ThingSelectAsyncTask task = new ThingSelectAsyncTask();\n task.setCategory(target);\n ThingMapper mapper = new ThingMapper();\n List<Thing> things = filter(mapper.to(task.execute().get()), weatherTypes, genders);\n for (Thing thing : things) {\n parent.addView(createThingView(thing));\n }\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "protected void append_child(AstNode child) throws Exception {\r\n\t\tif (child == null)\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid child: null\");\r\n\t\telse {\r\n\t\t\tif (child instanceof AstNodeImpl)\r\n\t\t\t\t((AstNodeImpl) child).set_parent(this);\r\n\t\t\tthis.children.add(child);\r\n\t\t\tthis.update_location(); /* automatically update */\r\n\t\t}\r\n\t}", "private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void layoutContainer(Container parent);" ]
[ "0.6729078", "0.6715031", "0.6327539", "0.6280147", "0.6106647", "0.5980723", "0.59764063", "0.5969781", "0.5943057", "0.5886304", "0.58623147", "0.58082926", "0.57934356", "0.57620513", "0.5674498", "0.56594545", "0.5600951", "0.55982137", "0.55730987", "0.55575264", "0.5552559", "0.55254513", "0.55086833", "0.5501422", "0.54461676", "0.54302335", "0.53876156", "0.5375894", "0.5371145", "0.5369937", "0.534823", "0.5347738", "0.53262556", "0.5324817", "0.53136075", "0.5308575", "0.529355", "0.528932", "0.52738625", "0.5258635", "0.5248375", "0.52432626", "0.52355254", "0.52340597", "0.5232444", "0.522912", "0.5218805", "0.5206138", "0.52058613", "0.51974386", "0.518609", "0.5179467", "0.5170184", "0.51699454", "0.51653343", "0.51646686", "0.5162737", "0.515996", "0.5154465", "0.51337516", "0.5115507", "0.51112586", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5110339", "0.5092433", "0.50829214", "0.5066869", "0.505229", "0.50473815", "0.504524", "0.5029606", "0.5029606", "0.5024464", "0.50210375", "0.500186", "0.50002974", "0.50002074", "0.49942538", "0.4988557", "0.49874023", "0.4986222", "0.49827343", "0.49756896", "0.4973319", "0.4967794", "0.4965525", "0.4962788", "0.49530646", "0.49471295", "0.4945694", "0.4944143", "0.49413648", "0.49386868", "0.4935216", "0.49125645" ]
0.6934233
0
Applies a style specification to an element.
public static native void applyStyles(Element element, String styles)/*-{ return $wnd.Ext.DomHelper.applyStyles(element, styles); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean doesStyleApply(QName eltName, QName styleName);", "@Override\n\tpublic void visit(OdfElement element) {\n\t\tgetElementStyle(element);\n\t}", "protected void getElementStyle(OdfElement ele) {\n\t\tif(ele.getNodeName().equals(\"text:p\")) {\n\t\t\tString styleName = ((TextPElement) ele).getTextStyleNameAttribute();\n\t\t\thitStyle(styleName);\n\t\t\t\n\t\t\t//build up a map of used automatic styles\n\t\t\tOdfStyle autoStyle = ((TextPElement) ele).getAutomaticStyle();\n\t\t\tif (autoStyle != null) {\n\t\t\t\tautoStylesMap.put(styleName,autoStyle);\n\t\t\t}\n\t\t}\n\t\telse if(ele.getNodeName().equals(\"text:list\")) {\n\t\t\t//found the text list\n\t\t\tString styleName = ((TextListElement) ele).getTextStyleNameAttribute();\n\t\t\thitStyle(styleName);\n\t\t}\n\t\t\n\t\tNode child = ele.getFirstChild();\n\t\twhile (child != null) {\n\t\t\tif (child.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tOdfElement element = (OdfElement) child;\n\t\t\t\telement.accept(this);\n\t\t\t}\n\t\t\tchild = child.getNextSibling();\n\t\t}\n\t}", "public void apply() {\n\n\t\tfinal Multimap<Element, StyleApplication> elementMatches = ArrayListMultimap.create();\n\n\t\tfinal CSSOMParser inlineParser = new CSSOMParser();\n\t\tinlineParser.setErrorHandler( new ExceptionErrorHandler() );\n\n\t\t// factor in elements' style attributes\n\t\tnew NodeTraversor( new NodeVisitor() {\n\t\t\t@Override\n\t\t\tpublic void head( Node node, int depth ) {\n\t\t\t\tif ( node instanceof Element && node.hasAttr( \"style\" ) ) {\n\t\t\t\t\t// parse the CSS into a CSSStyleDeclaration\n\t\t\t\t\tInputSource input = new InputSource( new StringReader( node.attr( \"style\" ) ) );\n\t\t\t\t\tCSSStyleDeclaration declaration = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdeclaration = inlineParser.parseStyleDeclaration( input );\n\t\t\t\t\t} catch ( IOException e ) {\n\t\t\t\t\t\t// again, this should never happen, cuz we're just reading from a string\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tnode.removeAttr( \"style\" );\n\t\t\t\t\telementMatches.put( ((Element) node), new InlineStyleApplication( declaration ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void tail( Node node, int depth ) {}\n\t\t}).traverse( htmlDocument.body() );\n\n\t\t// compute which rules match which elements\n\t\tCSSRuleList rules = styleSheet.getCssRules();\n\t\tfor ( int i = 0; i < rules.getLength(); i++ ) {\n\t\t\tif ( rules.item( i ) instanceof CSSStyleRule) {\n\t\t\t\tCSSStyleRuleImpl rule = (CSSStyleRuleImpl) rules.item( i );\n\t\t\t\t// for each selector in the rule... (separated by commas)\n\t\t\t\tfor ( int j = 0; j < rule.getSelectors().getLength(); j++ ) {\n\t\t\t\t\tSelector selector = rule.getSelectors().item( j );\n\t\t\t\t\tElements matches = null;\n\t\t\t\t\tmatches = htmlDocument.select( selector.toString() );\n\t\t\t\t\t// for each matched element....\n\t\t\t\t\tfor ( Element match: matches ) {\n\t\t\t\t\t\telementMatches.put( match, new RuleStyleApplication( selector, rule.getStyle() ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMap<Element, CSSStyleDeclaration> inlinedStyles = new HashMap<Element, CSSStyleDeclaration>();\n\n\t\t// calculate overrides\n\t\tfor ( Element element : elementMatches.keySet() ) {\n\t\t\tCSSStyleDeclaration properties = new CSSStyleDeclarationImpl();\n\t\t\tList<StyleApplication> matchedRules = new ArrayList<StyleApplication>( elementMatches.get( element ) );\n\t\t\tCollections.sort( matchedRules, orderBySpecificity );\n\t\t\tfor ( StyleApplication matchedRule : matchedRules ) {\n\t\t\t\tCSSStyleDeclaration cssBlock = matchedRule.getCssBlock();\n\t\t\t\tfor ( int i = 0; i < cssBlock.getLength(); i++ ) {\n\t\t\t\t\tString propertyKey = cssBlock.item( i );\n\t\t\t\t\tCSSValue propertyValue = cssBlock.getPropertyCSSValue( propertyKey );\n\t\t\t\t\t// TODO: !important\n\t\t\t\t\tproperties.setProperty( propertyKey, propertyValue.getCssText(), \"\" );\n\t\t\t\t}\n\t\t\t}\n\t\t\tinlinedStyles.put(element, properties);\n\t\t}\n\n\t\t// apply to DOM\n\t\tfor ( Map.Entry<Element, CSSStyleDeclaration> entry : inlinedStyles.entrySet() ) {\n\t\t\tentry.getKey().attr( \"style\", entry.getValue().getCssText() );\n\t\t}\n\n\t}", "public void handleStyle(HtmlObjects.Style t)\n {\n }", "public StyleId setStyleId ( StyleId id );", "void setStyle(String style);", "public void styleMe(){\n\t}", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "protected StyleExtractor(OdfElement element) {\n\t\tmElement = element;\n\t}", "public void assertStyle(final String elementLocator, final String styleText);", "@Override\n\tpublic void visit(TextPElement ele) {\n\t\tgetElementStyle(ele);\n\t}", "@Override\n\tpublic void visit(TextHElement ele) {\n\t\tgetElementStyle(ele);\n\t}", "public void applyCurrentStyle()\n\t{\n\t\tthis.getCurrentStyleTree().saveCurrentStyle();\n\t\tthis.guiController.rebuildStyle();\n\n\t\tThreadService.executeOnEDT(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tgetCurrentStyleTree().repaint();\n\t\t\t}\n\t\t});\n\t}", "public void applyStyle(long themePtr, int defStyleAttr, int defStyleRes, XmlBlock.Parser parser, int[] inAttrs, long outValuesAddress, long outIndicesAddress) {\n XmlBlock.Parser parser2 = parser;\n int[] iArr = inAttrs;\n Preconditions.checkNotNull(iArr, \"inAttrs\");\n synchronized (this) {\n ensureValidLocked();\n nativeApplyStyle(this.mObject, themePtr, defStyleAttr, defStyleRes, parser2 != null ? parser2.mParseState : 0, iArr, outValuesAddress, outIndicesAddress);\n }\n }", "public void accept(StyleVisitor visitor);", "private void applyStyle() {\n\t\tmenu.getStyleClass().add(menuColor);\n\t}", "public void setStyle(String st){\n style = st;\n }", "@attribute(value = \"\", required = false, defaultValue=\"NONE\")\r\n\tpublic void setStyle(String style) {\r\n\t\t// dummy function for comment\r\n\t}", "public final String getStyleAttribute() {\n return getAttributeValue(\"style\");\n }", "public interface Styleable\n{\n /**\n * Returns component style ID.\n *\n * @return component style ID\n */\n public StyleId getStyleId ();\n\n /**\n * Sets new component style ID.\n * If style for the specified ID cannot be found in skin then its default style will be used instead.\n * This method forces component to instantly apply style with the specified ID to itself.\n *\n * @param id custom component style ID\n * @return previously used style ID\n */\n public StyleId setStyleId ( StyleId id );\n}", "public boolean hasStyle(final String elementLocator, final String style);", "public static StyleStyle warp(final ODPackage pkg, final Element styleElem) {\r\n final StyleStyle generic = new StyleStyle(pkg, styleElem);\r\n loadDescs();\r\n final Map<String, StyleDesc<?>> map = family2Desc.get(pkg.getVersion());\r\n if (map.containsKey(generic.getFamily())) {\r\n final StyleDesc<?> styleClass = map.get(generic.getFamily());\r\n return styleClass.create(pkg, styleElem);\r\n } else\r\n return generic;\r\n }", "public void getStyles() {\n\t\tvisit(mElement);\n\t}", "Style getStyle();", "public void modify( CellStyle style );", "public Stylesheet makeStylesheet(SyntaxTreeNode element)\n throws CompilerException {\n try {\n Stylesheet stylesheet;\n\n if (element instanceof Stylesheet) {\n stylesheet = (Stylesheet)element;\n }\n else {\n stylesheet = new Stylesheet();\n stylesheet.setSimplified();\n stylesheet.addElement(element);\n stylesheet.setAttributes((AttributesImpl) element.getAttributes());\n\n // Map the default NS if not already defined\n if (element.lookupNamespace(EMPTYSTRING) == null) {\n element.addPrefixMapping(EMPTYSTRING, EMPTYSTRING);\n }\n }\n stylesheet.setParser(this);\n return stylesheet;\n }\n catch (ClassCastException e) {\n ErrorMsg err = new ErrorMsg(ErrorMsg.NOT_STYLESHEET_ERR, element);\n throw new CompilerException(err.toString());\n }\n }", "public void applyStyleToTheme(long themePtr, int resId, boolean force) {\n synchronized (this) {\n ensureValidLocked();\n nativeThemeApplyStyle(this.mObject, themePtr, resId, force);\n }\n }", "public void setStyle(String style) {\n this.style = style;\n }", "public void setStyle(String style) {\r\n this.style = style;\r\n }", "public void setStyle(String style) {\r\n this.style = style;\r\n }", "protected abstract void useStyleAttributes(TypedArray attrs);", "public void setStyleName(java.lang.String styleName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLENAME$32);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STYLENAME$32);\n }\n target.setStringValue(styleName);\n }\n }", "public void addStyling(HTMLConfigComponent stylingConfig) { \n stylingList.add(stylingConfig);\n }", "public Encoding setStyle(String value) {\n\t\tstyle = value;\n\t\treturn this;\n\t}", "@DISPID(-2147418038)\n @PropGet\n ms.html.IHTMLStyle style();", "private void updateStyleFromHTMLElements() {\n\t\tNodeList nl = document.getElementsByTagName(\"link\");\n\t\tint len = nl.getLength();\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tNode n = nl.item(i);\n\t\t\tif (!linkedStyle.isEmpty()) {\n\t\t\t\t// Check whether we already have the sheet (by PI)\n\t\t\t\tString href = ((Element) n).getAttribute(\"href\").trim();\n\t\t\t\tif (href.length() == 0 || isAlreadyLoaded(linkedStyle, href)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCSSNode mynode = getMappedCSSNode(n);\n\t\t\tif (mynode == null) {\n\t\t\t\tmynode = new LinkElement((Element) n);\n\t\t\t\tnodemap.put(n, mynode);\n\t\t\t}\n\t\t\tLinkStyleDefiner link = (LinkStyleDefiner) mynode;\n\t\t\tif (link.getSheet() != null) {\n\t\t\t\tlinkedStyle.add(link);\n\t\t\t}\n\t\t}\n\t\t// Find the embedded styles\n\t\tnl = document.getElementsByTagName(\"style\");\n\t\tlen = nl.getLength();\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tNode n = nl.item(i);\n\t\t\tif (!embeddedStyle.isEmpty()) {\n\t\t\t\t// Check whether we already have the sheet (by PI)\n\t\t\t\tString id = ((Element) n).getAttribute(\"id\");\n\t\t\t\tif (id.length() != 0 && isAlreadyLoaded(embeddedStyle, id)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCSSNode mynode = getMappedCSSNode(n);\n\t\t\tif (mynode == null) {\n\t\t\t\tmynode = new StyleElement((Element) n);\n\t\t\t\tnodemap.put(n, mynode);\n\t\t\t}\n\t\t\tembeddedStyle.add((LinkStyleDefiner) mynode);\n\t\t}\n\t}", "private void applyFontStyle() {\r\n\t\tfinal Font font = SWTGraphicUtil.buildFontFrom(this.control, PromptSupport.getFontStyle(this.control));\r\n\t\tthis.control.setFont(font);\r\n\t\tSWTGraphicUtil.addDisposer(this.control, font);\r\n\t}", "private String getStyleName(OdfStylableElement element) {\n\t\tString stylename = element.getStyleName();\n\t\tif (stylename == null) {\n\t\t\tif (element.getParentNode() instanceof OdfStylableElement) {\n\t\t\t\tgetStyleName((OdfStylableElement) element.getParentNode());\n\t\t\t} else {\n\t\t\t\tstylename = \"defaultstyle\";\n\t\t\t}\n\t\t}\n\t\treturn stylename;\n\t}", "protected WebXStyleElementImpl() {\n }", "@DISPID(1003)\n @PropGet\n ms.html.IHTMLStyleSheetRulesAppliedCollection appliedRules();", "public void setStylePanel(StylePanel stylePanel);", "protected void renderStyleAndStyleClass(\r\n String style, String styleClass, Element root)\r\n {\n }", "private static boolean isSuitableElement(Element element) {\n \n \t\tif (element instanceof ElementCSSInlineStyle\n \t\t\t\t&& isAttributeAvailable(element, STYLE_TAG_NAME)) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}", "public static void addStyleSheetReference(final Document document, final String href, final MediaType mediaType) {\n\t\tfinal String target = XML_STYLESHEET_PROCESSING_INSTRUCTION; //the PI target will be the name of the stylesheet processing instruction\n\t\tfinal StringBuilder dataStringBuilder = new StringBuilder(); //create a string buffer to construct the data parameter (with its pseudo attributes)\n\t\t//add: href=\"href\"\n\t\tdataStringBuilder.append(HREF_ATTRIBUTE).append(EQUAL_CHAR).append(DOUBLE_QUOTE_CHAR).append(href).append(DOUBLE_QUOTE_CHAR);\n\t\tdataStringBuilder.append(SPACE_CHAR); //add a space between the pseudo attributes\n\t\t//add: type=\"type\"\n\t\tdataStringBuilder.append(TYPE_ATTRIBUTE).append(EQUAL_CHAR).append(DOUBLE_QUOTE_CHAR).append(mediaType).append(DOUBLE_QUOTE_CHAR);\n\t\tfinal String data = dataStringBuilder.toString(); //convert the data string buffer to a string\n\t\tfinal ProcessingInstruction processingInstruction = document.createProcessingInstruction(target, data); //create a processing instruction with the correct information\n\t\tdocument.appendChild(processingInstruction); //append the processing instruction to the document\n\t}", "public void setFillStyle(STYLE style);", "Object accept(StyleVisitor visitor, Object extraData);", "@Override\n public void addStyleName(String style) {\n super.addStyleName(style);\n }", "public void updateStylesheet(Pathway pathway, String espece) {\n\t\tfor (Reaction r : pathway.getReactionList()) {\n\t\t\tfor (String org : r.getEspece()) {\n\t\t\t\tif (org.equals(espece)) {\n\t\t\t\t\tgetNode(r.getEnzymeList().get(0)).setAttribute(\"ui.class\", \"enzyme\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected interface CellStyleModifier {\n /**\n * Changes the given cell style\n * @param style style to modify\n */\n public void modify( CellStyle style );\n }", "public native final String style(String name) /*-{\n\t\treturn this.style(name);\n\t}-*/;", "public void setStrokeStyle(STYLE style);", "public void addStyleModifier(int newStyle) {\n\t\tif (style == null) {\n\t\t\tstyle = newStyle;\n\t\t\treturn;\n\t\t}\n\t\tif (style == Font.PLAIN || newStyle == Font.PLAIN) {\n\t\t\tthrow new IllegalStateException(\"Attempted to set incompable styles\");\n\t\t}\n\t\tstyle = style | newStyle;\n\t}", "private void forEachCssImportApply(final Function<String, ChangeStatus> func, final Resource resource, final Reader reader)\n throws IOException {\n final ResourcePreProcessor processor = createCssImportProcessor(func);\n InjectorBuilder.create(getManagerFactory()).build().inject(processor);\n processor.process(resource, reader, new StringWriter());\n }", "Collection<QName> getApplicableStyleNames(QName elementName);", "public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}", "public void setStyleName(String styleName) {\r\n setAttribute(\"styleName\", styleName, true);\r\n }", "public void xsetStyleId(org.openxmlformats.schemas.drawingml.x2006.main.STGuid styleId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.STGuid target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.STGuid)get_store().find_attribute_user(STYLEID$30);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.STGuid)get_store().add_attribute_user(STYLEID$30);\n }\n target.set(styleId);\n }\n }", "void onStyleModify() {\n\t\tif (mergedStyleSheet != null) {\n\t\t\tmergedStyleSheet = null;\n\t\t\tsheets.setNeedsUpdate(true);\n\t\t} else if (sheets != null) {\n\t\t\tsheets.setNeedsUpdate(true);\n\t\t}\n\t}", "public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }", "@DISPID(1002)\n @PropGet\n ms.html.IHTMLStyle inlineStyles();", "final public void setStyleClass(String styleClass)\n {\n setProperty(STYLE_CLASS_KEY, (styleClass));\n }", "boolean isInheritableStyle(QName eltName, QName styleName);", "public void setStyleId(java.lang.String styleId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STYLEID$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STYLEID$30);\n }\n target.setStringValue(styleId);\n }\n }", "public WebXStyleElementImpl(String prefix, WebXDocumentImpl owner) {\n super(prefix, owner);\n }", "public void xsetStyleName(org.apache.xmlbeans.XmlString styleName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(STYLENAME$32);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(STYLENAME$32);\n }\n target.set(styleName);\n }\n }", "public interface StyleSource {\n /**\n * Returns the appropriate style for the given style-group and style-name, or {@code null} if missing.\n *\n * @param group the group\n * @param name the style name\n * @return the style\n */\n @Nullable\n String get(String group, String name);\n\n /**\n * Set a specific style in a style-group.\n *\n * @param group the group\n * @param name the style name\n * @param style the style to set\n */\n void set(String group, String name, String style);\n\n /**\n * Remove all styles for given style-group.\n *\n * @param group the group\n */\n void remove(String group);\n\n /**\n * Remove a specific style from style-group.\n *\n * @param group the group\n * @param name the style name to remove\n */\n void remove(String group, String name);\n\n /**\n * Clear all styles.\n */\n void clear();\n\n /**\n * Returns configured style-group names.\n *\n * @return Immutable collection.\n */\n Iterable<String> groups();\n\n /**\n * Returns configured styles for given style-group.\n *\n * @param group the style group\n * @return Immutable map.\n */\n Map<String, String> styles(String group);\n}", "public void addStyling(List<HTMLConfigComponent> stylingList) { \n this.stylingList.addAll(stylingList);\n }", "public void styleforOne() {\r\n\t\t\r\n\r\n\t\tsuper.styleforOne();\r\n\t\t\r\n\t}", "STYLE createSTYLE();", "public StyleId getStyleId ();", "public void ardublockStyling(Document doc) {\n\t\tif (styleList != null) {\n\t\t\tXPathFactory factory = XPathFactory.newInstance();\n\t\t\tfor (String[] style : styleList) {\n\t\t\t\tXPath xpath = factory.newXPath();\n\t\t\t\ttry {\n\t\t\t\t\t// XPathExpression expr = xpath.compile(\"//BlockGenus[@name[starts-with(.,\\\"Tinker\\\")]]/@color\");\n\t\t\t\t\tXPathExpression expr = xpath.compile(style[0]);\n\t\t\t\t\tNodeList bgs = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);\n\t\t\t\t\tfor (int i = 0; i < bgs.getLength(); i++) {\n\t\t\t\t\t\tNode bg = bgs.item(i);\n\t\t\t\t\t\tbg.setNodeValue(style[1]);\n\t\t\t\t\t\t// bg.setAttribute(\"color\", \"128 0 0\");\n\t\t\t\t\t}\n\t\t\t\t} catch (XPathExpressionException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addToStyle(ApplContext ac, CssStyle style) {\r\n\tif (((Css3Style) style).cssBackgroundClip != null)\r\n\t style.addRedefinitionWarning(ac, this);\r\n\t((Css3Style) style).cssBackgroundClip = this;\r\n }", "public final synchronized void setStyle(int style){\n this.style = style;\n\n if (isLoggedIn()){\n sendCommand(\"$set style \"+style);\n filterLine(\"Style \"+style+\" set.\");\n }\n }", "public String getStyle() {\n\t\treturn style;\n\t}", "public void updateStyles()\n\t{\n\t\tIterator<StyleEditorTree> trees = this.getStyleTrees();\n\t\tStyleEditorTree current;\n\n\t\twhile (trees.hasNext())\n\t\t{\n\t\t\tcurrent = trees.next();\n\t\t\tcurrent.updateTreeRendering();\n\t\t}\n\t}", "@Override\n\t\tpublic ComputedCSSStyle getComputedStyle(String pseudoElt) {\n\t\t\tCondition peCond;\n\t\t\tif (pseudoElt != null) {\n\t\t\t\tCSSParser parser = new CSSParser();\n\t\t\t\tpeCond = parser.parsePseudoElement(pseudoElt);\n\t\t\t} else {\n\t\t\t\tpeCond = null;\n\t\t\t}\n\t\t\treturn (ComputedCSSStyle) getStyleSheet().getComputedStyle(this, peCond);\n\t\t}", "protected void apply(AttributedString as) {\n\t\t\tas.addAttribute(textAttribute, value, begin, end);\n\t\t}", "public TextStyle getStyle(\n )\n {return style;}", "public void testIsStylisticElement() throws Exception {\n assertFalse(cfg.isStylisticElement(\"test\"));\n cfg.associateStylisticAndAntiElements(\"test\", null, permittedChildren);\n cfg.associateStylisticAndAntiElements(\"stylistic\", null,\n permittedChildren);\n assertTrue(cfg.isStylisticElement(\"test\"));\n assertTrue(cfg.isStylisticElement(\"stylistic\"));\n assertFalse(cfg.isStylisticElement(\"child\"));\n }", "public abstract BossStyle getStyle();", "private void setCellStyle( CellStyle style, int rowIx, int colIx )\n {\n \tcells[colIx][rowIx].setCellStyle( style );\n }", "public static void main(String[] args) throws Exception {\n\t\tString dataDir = Utils.getSharedDataDir(ReuseStyleObjects.class) + \"TechnicalArticles/\";\n\t\t// Create an instance of Workbook & load an existing spreadsheet\n\t\tWorkbook workbook = new Workbook(dataDir + \"Book1.xls\");\n\n\t\t// Retrieve the Cell Collection of the first Worksheet\n\t\tCells cells = workbook.getWorksheets().get(0).getCells();\n\n\t\t// Create an instance of Style and add it to the pool of styles\n\t\tStyle styleObject = workbook.createStyle();\n\n\t\t// Retrieve the Font object of newly created style\n\t\tFont font = styleObject.getFont();\n\n\t\t// Set the font color to Red\n\t\tfont.setColor(Color.getRed());\n\n\t\t// Set the newly created style on two different cells\n\t\tcells.get(\"A1\").setStyle(styleObject);\n\t\tcells.get(\"A2\").setStyle(styleObject);\n\n\t}", "public String getStyle() {\r\n return style;\r\n }", "public String applyRule(String identifier, Object arg) throws IllegalFormatException\n {\n FormattingRule rule = formattingRules.get(identifier);\n if (rule == null)\n {\n throw new UnknownFormatConversionException(\"Formatting rule not available corresponding \" +\n \"to given identifier \" + identifier);\n }\n\n return rule.apply(identifier, arg);\n }", "public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "void set(String group, String name, String style);", "public void setStyle(String style) {\n this.style = style == null ? null : style.trim();\n }", "public void setStyle(String style) {\n this.style = style == null ? null : style.trim();\n }", "public void setStyle(String style) {\n this.style = style == null ? null : style.trim();\n }", "public Button addExplicitStyle(String name, String value){\n if(this.explicitStyle==null){\n this.explicitStyle = name + \":\" + value + \";\";\n }else{\n this.explicitStyle += name + \":\" + value + \";\";\n }\n return this;\n }", "private synchronized void strokeStyle(Rule rule, InstanceWaypoint context){\t\n \t\t\n \t\t// retrieve stroke\n \t\tStroke stroke = null;\n \t\t\n \t\t//try the Symbolizers from the Rule\n \t\tint i = -1;\n \t\twhile(rule != null && stroke == null && i < rule.getSymbolizers().length){\n \t\t\ti++;\n \t\t\tif (rule.getSymbolizers()[i] instanceof LineSymbolizer){\n \t\t\t\tstroke = SLD.stroke((LineSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\telse if (rule.getSymbolizers()[i] instanceof PolygonSymbolizer){\n \t\t\t\tstroke = SLD.stroke((PolygonSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\telse if (rule.getSymbolizers()[i] instanceof PointSymbolizer){\n \t\t\t\tstroke = SLD.stroke((PointSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n \t\t\t\t}\n \t\t\t}\n \t\t\n \t\n \t\t//if we have a stroke now\n \t\tif (stroke != null) {\n \t\t\t//XXX is there any Geotools stroke to AWT stroke lib/code somewhere?!\n \t\t\t//XXX have a look at the renderer code (StreamingRenderer)\n \t\t\t\n \t\t\t// stroke color\n \t\t\tColor sldColor = SLD.color(stroke);\n \t\t\tdouble opacity = SLD.opacity(stroke);\n \t\t\tif (Double.isNaN(opacity)) {\n \t\t\t\t// fall back to default opacity\n \t\t\t\topacity = StyleHelper.DEFAULT_FILL_OPACITY;\n \t\t\t}\n \t\t\tif (sldColor != null) {\n \t\t\t\tstyleStrokeColor = new Color(sldColor.getRed(), sldColor.getGreen(), \n \t\t\t\t\t\tsldColor.getBlue(), (int) (opacity * 255));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstyleStrokeColor = super.getBorderColor(context);\n \t\t\t}\n \t\t\t\n \t\t\t// stroke width\n \t\t\tint strokeWidth = SLD.width(stroke);\n \t\t\tif (strokeWidth == SLD.NOTFOUND) {\n \t\t\t\t// fall back to default width\n \t\t\t\tstrokeWidth = StylePreferences.getDefaultWidth(); \n \t\t\t}\n \t\t\tstyleStroke = new BasicStroke(strokeWidth);\n \t\t}\n \t\telse {\n \t\t\tstyleStroke = null;\n \t\t\tstyleStrokeColor = null;\n \t\t}\n \t}", "public abstract TC createStyle();", "private synchronized void fillStyle(Rule rule, InstanceWaypoint context){\n \t\t\t\t\n \t\t// retrieve fill\n \t\tFill fill = null;\n \t\t\n \t\t//try the Symbolizers from the Rule\n\t\tint i = -1;\n\t\twhile(rule != null && fill == null && i < rule.getSymbolizers().length){\n\t\t\ti++;\n\t\t\tif (rule.getSymbolizers()[i] instanceof PolygonSymbolizer){\n\t\t\t\tfill = SLD.fill((PolygonSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n\t\t\t\t}\n\t\t\telse if (rule.getSymbolizers()[i] instanceof PointSymbolizer){\n\t\t\t\tfill = SLD.fill((PointSymbolizer)rule.getSymbolizers()[i]);\t\t\t\t\n\t\t\t\t}\n \t\t\t}\n \t\n \t\t\n \t\t//if we have a fill now\n \t\tif (fill != null) {\n \t\t\tColor sldColor = SLD.color(fill);\n \t\t\tdouble opacity = SLD.opacity(fill);\n \t\t\tif (sldColor != null) {\n \t\t\t\tstyleFillColor = new Color(sldColor.getRed(), sldColor.getGreen(), \n \t\t\t\t\t\tsldColor.getBlue(), (int) (opacity * 255));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstyleFillColor = super.getPaintColor(context);\n \t\t\t}\n \t\t\thasFill = true;\n \t\t}\n \t\t//if we still don't have a fill\n \t\telse {\n \t\t\tstyleFillColor = null;\n \t\t\thasFill = false;\n \t\t}\n \t\t\n \t\t\n \t}", "public GridBagPanel style(String... styles)\n {\n myStyleQueue.clear();\n for (String style : styles)\n {\n myStyleQueue.add(style);\n }\n useNextStyle();\n return this;\n }", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}" ]
[ "0.64592403", "0.5999907", "0.5736306", "0.57235414", "0.5227696", "0.51778394", "0.5157797", "0.5142496", "0.51166093", "0.50315344", "0.4991569", "0.49079055", "0.48776737", "0.4876826", "0.48598826", "0.48595878", "0.48150173", "0.47990122", "0.47835857", "0.4774672", "0.4758831", "0.47409505", "0.47205004", "0.47071666", "0.4660705", "0.46567646", "0.46397883", "0.46146986", "0.46133152", "0.4610082", "0.4610082", "0.4582172", "0.45480746", "0.45257777", "0.4504838", "0.44911712", "0.44546998", "0.44491524", "0.44355962", "0.44167978", "0.44158426", "0.43854904", "0.43817556", "0.43763053", "0.43756282", "0.43659833", "0.43425596", "0.43421173", "0.43243045", "0.43166524", "0.43003732", "0.42828715", "0.4267239", "0.42641065", "0.4246179", "0.42265683", "0.42220578", "0.42184186", "0.42143396", "0.42100367", "0.42095268", "0.4189672", "0.4181635", "0.41766682", "0.41708994", "0.41548026", "0.4153875", "0.41466445", "0.41358835", "0.41233432", "0.4110422", "0.40974697", "0.408876", "0.4069768", "0.40627024", "0.40602273", "0.40471378", "0.404475", "0.4043947", "0.40386972", "0.40386692", "0.40110773", "0.4010197", "0.4007788", "0.39966956", "0.39944997", "0.3993455", "0.3993455", "0.3993455", "0.3993455", "0.39833868", "0.39828572", "0.39828572", "0.39828572", "0.39731163", "0.3964101", "0.39618275", "0.3959359", "0.39562342", "0.39498115" ]
0.63566774
1
Creates a new Template from the Dom config spec.
public static native Template createTemplate(DomConfig config) /*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); var tpl = $wnd.Ext.DomHelper.createTemplate(configJS); return @com.ait.toolkit.sencha.shared.client.core.Template::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(tpl); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }", "private static Template template(Configuration configuration, TemplateSource templateSource) {\n switch (templateSource.getOrigin()) {\n case TEMPLATE_LOADER:\n return fromTemplatePath(configuration, templateSource);\n case TEMPLATE_CODE:\n return fromTemplateCode(configuration, templateSource);\n default:\n throw new IllegalArgumentException(\"Don't know how to create a template: \" + templateSource.getOrigin());\n }\n }", "public TemplateFactoryImpl()\n {\n super();\n }", "public TrexTemplateBuilder template() {\r\n\t\treturn new TrexTemplateBuilder(new TrexConfiguration(interpreter, parser, additionalModifications));\r\n\t}", "public static final Document loadTemplate(final String absoluteFilePath) {\r\n if ((absoluteFilePath == null) || (absoluteFilePath.length() == 0)) {\r\n logB.error(\"XmlFactory.loadTemplate : unable to load template : empty file name !\");\r\n\r\n return null;\r\n }\r\n\r\n Document doc = cacheDOM.get(absoluteFilePath);\r\n\r\n if (doc == null) {\r\n final File file = new File(absoluteFilePath);\r\n\r\n if (!file.exists()) {\r\n logB.error(\"XmlFactory.loadTemplate : unable to load template : no file found for : \" + absoluteFilePath);\r\n\r\n return null;\r\n }\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.loadTemplate : file : \" + file);\r\n }\r\n\r\n doc = parse(file);\r\n\r\n if (doc != null) {\r\n cacheDOM.put(absoluteFilePath, doc);\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\r\n \"XmlFactory.loadTemplate : template : \" + Integer.toHexString(doc.hashCode()) + \" : \\n\" + asString(doc));\r\n }\r\n }\r\n }\r\n\r\n if (doc != null) {\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.loadTemplate : template in use : \" + Integer.toHexString(doc.hashCode()));\r\n }\r\n\r\n doc = (Document) doc.cloneNode(true);\r\n }\r\n\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.loadTemplate : xml document :\\n\" + asString(doc));\r\n }\r\n\r\n return doc;\r\n }", "public Template(String name) throws IOException, TemplateException, JDOMException {\n this(Assets.loadTemplate(name));\n }", "PSTemplateSummary createTemplate(String name, String srcId, String siteId) throws PSDataServiceException;", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp\", line = 948,\n FQN=\"clang::VarTemplateDecl::Create\", NM=\"_ZN5clang15VarTemplateDecl6CreateERNS_10ASTContextEPNS_11DeclContextENS_14SourceLocationENS_15DeclarationNameEPNS_21TemplateParameterListEPNS_7VarDeclE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl6CreateERNS_10ASTContextEPNS_11DeclContextENS_14SourceLocationENS_15DeclarationNameEPNS_21TemplateParameterListEPNS_7VarDeclE\")\n //</editor-fold>\n public static VarTemplateDecl /*P*/ Create(final ASTContext /*&*/ C, DeclContext /*P*/ DC, \n SourceLocation L, DeclarationName Name, \n TemplateParameterList /*P*/ Params, \n VarDecl /*P*/ Decl) {\n return /*NEW_EXPR [Decl::new]*//*new (C, DC)*/ Decl.$new(C, DC, (type$ptr<?> Mem)->{\n return new VarTemplateDecl(C, DC, new SourceLocation(L), new DeclarationName(Name), Params, Decl);\n });\n }", "private Template() {\r\n\r\n }", "public JasperDesign create(Template template) throws JRException, ParserConfigurationException, SAXException, FileNotFoundException, ClassNotFoundException\n\t{\n\t\tJasperDesign design = new JasperDesign();\n\t\t\n\t\t//Create basic elements\n\t\tdesign.setName(template.getId());\n\t\tJRDesignQuery query = new JRDesignQuery();\n\t\tquery.setText(\"//*\");\n\t\tquery.setLanguage(\"XPath\");\n\t\tdesign.setQuery(query);\n\t\tdesign.setBottomMargin(72);\n\t\tdesign.setTopMargin(72);\n\t\tdesign.setLeftMargin(72);\n\t\tdesign.setRightMargin(72);\n\t\tdesign.setLanguage(\"groovy\");\n\t\tdesign.setColumnWidth(450);\n\t\t\n\t\t//Load the elements from template\n\t\tfor (Element element : template.getElement())\n\t\t{\n\t\t\tInputStream is = mrl.searchIs(reportRoot +\"/templates/\" +element.getFile() +\".jrxml\");\n\t\t\t\n\t\t\tlogger.warn(ReportUtilTemplate.class.getSimpleName()+\" code is commented out, will be fixed asap!\");\n//\t\t\tJRXmlLoader jlo = new JRXmlLoader(JRXmlDigesterFactory.createDigester());\n\t\t\tJRXmlLoader jlo = null;\n\t\t\n\t\t\t\n\t\t\tJasperDesign elementDesign = jlo.loadXML(is); \n\t\t\tif (element.getType().equals(\"header\"))\n\t\t\t{\n\t\t\t\tlogger.debug(\"entering header section\");\n\t\t\t\tdesign.setPageHeader(elementDesign.getTitle());\n\t\t\t}\n\t\t\tif (element.getType().equals(\"footer\"))\n\t\t\t{\n\t\t\t\tlogger.debug(\"entering footer section\");\n\t\t\t\tdesign.setPageFooter(elementDesign.getPageFooter());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Now, the standard fields need to be declared (holding title, subtitle, logo, footer and record date)\n\t\tfor (Field field : template.getField())\n\t\t{\n\t\t\tif (field.getType().equals(\"field\"))\n\t\t\t{\n\t\t\t\tJRDesignField reportField = new JRDesignField();\n\t\t\t\treportField.setName(field.getName());\n\t\t\t\treportField.setDescription(field.getExpression());\n\t\t\t\treportField.setValueClassName(field.getClassName());\n\t\t\t\tdesign.addField(reportField);\n\t\t\t}\n\t\t\telse if (field.getType().equals(\"parameter\"))\n\t\t\t{\n\t\t\t\tJRDesignParameter parameter = new JRDesignParameter();\n\t\t\t\tparameter.setName(field.getName());\n\t\t\t\tparameter.setValueClassName(field.getClassName());\n\t\t\t\tdesign.addParameter(parameter);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//JRXmlWriter cares about writing the in-memory design to an OutputStream\n\t\tJRXmlWriter.writeReport(design, System.out, \"UTF-8\");\n\t\treturn design;\n\t}", "public void createTemp(String TemplateType){\r\n ts.create(TemplateType);\r\n }", "PSTemplateSummary createTemplate(String name, String srcId, String siteId, PSTemplateTypeEnum type) throws PSDataServiceException;", "public Template(String html) {\r\n\t\tjsObj = create(html.replaceAll(\"'\", \"\\\"\"));\r\n\t\tthis.html = html;\r\n\t}", "public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}", "public Builder setTemplateId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n templateId_ = value;\n onChanged();\n return this;\n }", "public Template getTemplate(final String name) throws IOException\n {\n return this.cfg.getTemplate(name);\n }", "TemplatePreview generateTemplatePreview(String templateId, Map<String, String> personalisation) throws NotificationClientException;", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "public static TemplateFactory init()\n {\n try\n {\n TemplateFactory theTemplateFactory = (TemplateFactory)EPackage.Registry.INSTANCE.getEFactory(TemplatePackage.eNS_URI);\n if (theTemplateFactory != null)\n {\n return theTemplateFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new TemplateFactoryImpl();\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp\", line = 955,\n FQN=\"clang::VarTemplateDecl::CreateDeserialized\", NM=\"_ZN5clang15VarTemplateDecl18CreateDeserializedERNS_10ASTContextEj\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl18CreateDeserializedERNS_10ASTContextEj\")\n //</editor-fold>\n public static VarTemplateDecl /*P*/ CreateDeserialized(final ASTContext /*&*/ C, \n /*uint*/int ID) {\n return /*NEW_EXPR [Decl::new]*//*new (C, ID)*/ Decl.$new(C, ID, (type$ptr<?> Mem)->{\n return new VarTemplateDecl(C, (DeclContext /*P*/ )null, new SourceLocation(), \n new DeclarationName(), (TemplateParameterList /*P*/ )null, (NamedDecl /*P*/ )null);\n });\n }", "@Test\n public void createTemplateTest() throws IdfyException, Exception {\n CreatePdfTemplate model = new CreatePdfTemplate.Builder().build();\n PdfTemplate response = api.createTemplate(model);\n assertNotNull(response);\n }", "TemplateParameter createTemplateParameter();", "public LitTemplateInitializer(LitTemplate template, VaadinService service) {\n this.template = template;\n\n boolean productionMode = service.getDeploymentConfiguration()\n .isProductionMode();\n\n Class<? extends LitTemplate> templateClass = template.getClass();\n\n ParserData data = null;\n if (productionMode) {\n data = CACHE.get(templateClass);\n }\n if (data == null) {\n data = new LitTemplateDataAnalyzer(templateClass).parseTemplate();\n }\n parserData = data;\n }", "@Test\n @Transactional\n public void createTemplate() throws Exception {\n assertThat(templateRepository.findAll()).hasSize(0);\n\n // Create the Template\n restTemplateMockMvc.perform(post(\"/api/templates\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(template)))\n .andExpect(status().isCreated());\n\n // Validate the Template in the database\n List<Template> templates = templateRepository.findAll();\n assertThat(templates).hasSize(1);\n Template testTemplate = templates.iterator().next();\n assertThat(testTemplate.getXML()).isEqualTo(DEFAULT_XML);\n assertThat(testTemplate.getVersion()).isEqualTo(DEFAULT_VERSION);\n assertThat(testTemplate.getMaster()).isEqualTo(DEFAULT_MASTER);\n assertThat(testTemplate.getXmlId()).isEqualTo(DEFAULT_XML_ID);\n }", "protected Document getTemplate() throws TransformException {\n\t\ttry {\n\t\t\treturn XMLUtils.getDocument(FileSystemReader.getInstance().getValidationTemplate());\n\t\t} catch (ToolsException e) {\n\t\t\tString msg = Language.getMessage(LanguageKeys.TRAN_006);\n\t\t\tLOGGER.error(msg, e);\n\t\t\tthrow new TransformException(TransformException.TEMPLATE_ERROR, msg);\n\t\t}\n\t}", "public static TemplateBasedScriptBuilder fromTemplateScript(String scriptTemplate) {\n return new TemplateBasedScriptBuilder(scriptTemplate);\n }", "protected static final Templates newTemplate(final StreamSource source) {\r\n try {\r\n return getTransformerFactory().newTemplates(source);\r\n } catch (final TransformerConfigurationException tce) {\r\n logB.error(\"XmlFactory.newTransformer : failure on creating new template : \" + source, tce);\r\n }\r\n\r\n return null;\r\n }", "public void testBlogEntryTemplateAccessible() throws Exception {\n assertEquals(0, rootBlog.getBlogEntryTemplates().size());\n BlogEntry draft = rootBlog.getBlogForToday().createBlogEntry();\n draft.setType(BlogEntry.TEMPLATE);\n draft.store();\n assertEquals(1, rootBlog.getBlogEntryTemplates().size());\n assertEquals(draft, rootBlog.getBlogEntryTemplate(draft.getId()));\n }", "public ST createSingleton(Token templateToken) {\n\t\tString template;\n\t\tif (templateToken.getType() == GroupParser.BIGSTRING) {\n\t\t\ttemplate = Misc.strip(templateToken.getText(), 2);\n\t\t} else {\n\t\t\ttemplate = Misc.strip(templateToken.getText(), 1);\n\t\t}\n\t\tCompiledST impl = compile(getFileName(), null, null, template, templateToken);\n\t\tST st = createStringTemplateInternally(impl);\n\t\tst.groupThatCreatedThisInstance = this;\n\t\tst.impl.setHasFormalArgs(false);\n\t\tst.impl.setName(ST.UNKNOWN_NAME);\n\t\tst.impl.defineImplicitlyDefinedTemplates(this);\n\t\treturn st;\n\t}", "public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }", "@Override\n\tpublic Node decode(Element xmlDoc) {\n\t\tNode rootNode = new Node();\n\t\tElement rootElement = xmlDoc.getDocument().getRootElement();\n\t\tdefaultNs = rootElement.getNamespace();\n\n\t\trootNode.setType(TemplateId.PLACEHOLDER);\n\t\trootNode.setElementForLocation(rootElement);\n\n\t\taddLineAndColumnToNode(rootElement, rootNode);\n\n\t\tQrdaDecoder rootDecoder = null;\n\t\tfor (Element element : rootElement.getChildren(TEMPLATE_ID, rootElement.getNamespace())) {\n\t\t\trootDecoder = getDecoder(getTemplateId(element));\n\t\t\tif (rootDecoder != null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (rootDecoder != null) {\n\t\t\trootNode = this.decodeTree(rootElement, rootNode).getNode().getChildNodes().get(0);\n\t\t} else {\n\t\t\trootNode = this.decodeTree(rootElement, rootNode).getNode();\n\t\t}\n\n\t\treturn rootNode;\n\t}", "public Function2<Object, TemplateOptions, String> template(String templateString);", "public Template(String... htmlfrags) {\r\n\t\tString htmlfrag = \"\";\r\n\t\tfor (int i = 0; i < htmlfrags.length; i++) {\r\n\t\t\thtmlfrag += htmlfrags[i];\r\n\t\t}\r\n\t\thtml = htmlfrag.replaceAll(\"'\", \"\\\"\");\r\n\t\tjsObj = create(html);\r\n\t}", "public SupervisedTemplates() {\n\t\tsuper();\n\t\tm_analyzer = new InteriorAnalyzer();\n\t\t// Explore the supervised template path\n\t\tString stpath = System.getProperty(STXML_PATH_PROPERTY);\n\t\tif (stpath != null) {\n\t\t\ttraversePath(stpath,\n\t\t\t\tnew DefDocumentProcessor() { \n\t\t\t\t\tpublic void processElement(File documentPath) \n\t\t\t\t\t\tthrows XMLFormatException\n\t\t\t\t\t{ m_analyzer.absorbDefinitions(documentPath); }\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t}", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }", "default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }", "private Templates load(URL fileSource) throws Exception {\n return m_factory.newTemplates(new StreamSource(fileSource.openStream()));\n }", "public ClassTemplate() {\n\t}", "@Test\n public void templateTest() throws ApiException {\n Long clientId = null;\n Long productId = null;\n String templateType = null;\n GetSelfLoansTemplateResponse response = api.template(clientId, productId, templateType);\n\n // TODO: test validations\n }", "public Template(InputStream is) throws IOException, TemplateException, JDOMException {\n super(is, new ScriptEngineDataModel(new ScriptEngineManager().getEngineByName(\"javascript\")));\n }", "@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString template2 = wTempData.getWikiTemplate(1);\n\t\tString title2 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template2);\n\t\tString template3 = wTempData.getWikiTemplate(2);\n\t\tString title3 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template3);\n\t\tString template4 = wTempData.getWikiTemplate(3);\n\t\tString title4 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template4);\n\t\tString template5 = wTempData.getWikiTemplate(4);\n\t\tString title5 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template5);\n\t\t\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- By default, the [Create Wiki page] is displayed in the [Rich Text] mode */\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t \n\t /*Step Number: 2\n\t\t*Step Name: Step 2: Create new page with Two Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Two Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with two column layout*/\n\t\twikiMg.addSimpleWikiPageByTemplate(template1,title1);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title1);\n\t\tarrayPage.add(title1);\n\t \n\t\t /*Step Number: 3\n\t\t*Step Name: Step 3: Create new page with Three Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Three Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with three column layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template2,title2);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title2);\n\t\tarrayPage.add(title2);\n\t\t\n\t\t /*Step Number: 4\n\t\t*Step Name: Step 4: Create new page with Status Meeting layout\n\t\t*Step Description: \n\t\t\t- Choose template \"Status Meeting\" in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Status Meeting layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template3,title3);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title3);\n\t\tarrayPage.add(title3);\n\t\t\n\t\t /*Step Number: 5\n\t\t*Step Name: Step 5: Create new page with HOW-TO Guide layout\n\t\t*Step Description: \n\t\t\t- Choose template [HOW-TO Guide] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with HOW-TO Guide layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template4,title4);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title4);\n\t\tarrayPage.add(title4);\n\t\t\n\t\t/*Step Number: 6\n\t\t*Step Name: Step 6: Create new page with Leave Planning layout\n\t\t*Step Description: \n\t\t\t- Choose template [Leave Planning] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Leave Planning layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template5,title5);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title5);\n\t\tarrayPage.add(title5);\n \t}", "protected Representation getTemplateRepresentation(String templateName,\n Map<String, Object> dataModel, MediaType mt) {\n return new TemplateRepresentation(templateName, getFmcConfiguration(),\n dataModel, mt);\n }", "Map<String, Object> createConfig(VirtualHost vhost, String configtype, Map<String, Object> doc);", "@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1PodTemplateSpec getTemplate();", "public void setTemplateId(String tmp) {\n this.setTemplateId(Integer.parseInt(tmp));\n }", "public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }", "StringTemplate createStringTemplate();", "public static ConceptTemplate getInstance(){\n\t\tif (instance == null){\n\t\t\tinstance = new ConceptTemplate(\"src/main/resources/conceptMapping.csv\");\n\t\t}\n\t\treturn instance;\n\t}", "public <T extends Entity> T constructEntity(Class<? extends T> clazz, EntitySpec<T> spec) {\n try {\n FactoryConstructionTracker.setConstructing();\n try {\n if (isNewStyleEntity(clazz)) {\n return clazz.newInstance();\n } else {\n return constructOldStyle(clazz, MutableMap.copyOf(spec.getFlags()));\n }\n } finally {\n FactoryConstructionTracker.reset();\n }\n } catch (Exception e) {\n throw Exceptions.propagate(e);\n }\n }", "public HibernateGenerator(String templateDir)\n {\n super(templateDir);\n\n hibernateOnlineTemplates = new STGroupFile(templateGroupToFileName(HIBERNATE_ONLINE_TEMPLATES_GROUP));\n hibernateOnlineTemplates.registerRenderer(String.class, new CamelCaseRenderer());\n\n hibernateUserTypeConfigTemplates =\n new STGroupFile(templateGroupToFileName(HIBERNATE_USERTYPE_CONFIG_TEMPLATES_GROUP));\n hibernateUserTypeConfigTemplates.registerRenderer(String.class, new CamelCaseRenderer());\n\n hibernateWarehouseTemplates = new STGroupFile(templateGroupToFileName(HIBERNATE_WAREHOUSE_TEMPLATES_GROUP));\n hibernateWarehouseTemplates.registerRenderer(String.class, new CamelCaseRenderer());\n\n hibernateUserTypeTemplates = new STGroupFile(templateGroupToFileName(HIBERNATE_USERTYPE_TEMPLATES_GROUP));\n hibernateUserTypeTemplates.registerRenderer(String.class, new CamelCaseRenderer());\n }", "public com.walgreens.rxit.ch.cda.II addNewTemplateId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().add_element_user(TEMPLATEID$4);\n return target;\n }\n }", "void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;", "String getTemplate();", "@Test\n public void previewTemplateFromModelTest() throws IdfyException, Exception {\n TemplatePreview model = new TemplatePreview.Builder().build();\n String xmlTemplate = new String(\"123\");\n api.previewTemplateFromModel(model, xmlTemplate);\n }", "public Builder setTemplateIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n templateId_ = value;\n onChanged();\n return this;\n }", "public Template(File f) throws IOException, TemplateException, JDOMException {\n super(f, new ScriptEngineDataModel(new ScriptEngineManager().getEngineByName(\"javascript\")));\n }", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private TemplateReader() {\n }", "<T> T newInstance(URI description) throws EnvironmentException;", "public interface StringTemplateFactory {\n \n /**\n * Get a fresh StringTemplate instance that can be safely used in the current thread of execution.\n * StringTemplates should not be shared between threads.\n * \n * @param templateName\n * name of the template.\n * @param locale\n * for which template is to be retrieved.\n * @param templateType\n * templateType\n * @param isEmailManagement\n * wheather email maangement is present or not for the company.\n * @return the {@link StringTemplate}\n */\n StringTemplate getStringTemplate(String templateName, String locale, String companyId,\n String templateType, boolean isEmailManagement);\n \n /**\n * localizedTemplateString method will return the localized template string for the passed locale.\n * \n * @param templateName\n * name of the template.\n * @return the template string.\n */\n String localizedTemplateString(String templateName);\n}", "private void populateTemplate(String templateFile, BeanDefinition beanDefinition, File outputFile) {\r\n\t\t\r\n\t\tlogger.trace(\"enterCreateBean\");\r\n\t\t\r\n\t\t// set the serial version UID if one has not been specified.\r\n\t\tif (beanDefinition.getSerialVersionUID() == null || beanDefinition.getSerialVersionUID().isEmpty()) {\r\n\t\t\tbeanDefinition.setSerialVersionUID(new Date().getTime() + \"L\");\r\n\t\t}\r\n\t\t\r\n\t\tVelocityContext context = createContext(beanDefinition);\r\n\t\tString populatedTemplate =populateVelocityTemplate (templateFile, context); \r\n\t\t\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(outputFile);\t\t\t\r\n\t\t\tfw.write(populatedTemplate);\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"exitCreateBean\");\r\n\r\n\t}", "public interface TemplateEngineService {\n\n /**\n * Get the EngineFactory for the template engine name given.\n * \n * @param name\n * of the TemplateEngine to be retrieved.\n * @return TemplateEngine for the given engine name or null for an unknown\n * engine name.\n */\n public TemplateEngine getEngine( String name );\n\n /**\n * Gets the collection with all available template engines.\n * \n * @return A collection of available template engines. If there are no\n * template engines availabel the collection will be empty.\n */\n public Collection<TemplateEngine> getEngines();\n\n /**\n * Convenience method that immediately creates a Template based on the actual\n * template file/reader. To accomplish this the TemplateEngine is determined\n * by the contents of the template file/reader. That particular template\n * engine is used to create the Template.\n * \n * TODO: describe shebang\n * \n * @param reader\n * The reader to be used for the Template\n * @return A valid Template object for the given reader.\n * @throws IOException\n * when using the reader fails\n * @throws TemplateCompilationException\n * when compiling the template fails.\n * @throws MissingShebangException\n * when the template lacks a shebang.\n * @throws UnknownEngineException\n * when the shebang refers to an engine that is not known to the\n * engine factory.\n */\n public Template getTemplate( Reader reader ) throws IOException, TemplateCompilationException,\n MissingShebangException, UnknownEngineException;\n\n}", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public Document getTemplateAsDocument() {\n // Creates a blank document\n Document doc = new Document();\n\n // Fills the document with data\n // Includes the id if one exists\n if (id != null)\n doc.append(\"_id\", new ObjectId(id));\n doc.append(\"userID\", new ObjectId(userID));\n // Creates the array if it is not already created\n if (questions == null)\n questions = new ArrayList<Question>();\n\n doc.append(\"questions\",\n (List<Document>) (questions.stream().map(x -> x.getQuestionAsDocument()).collect(Collectors.toList())));\n\n // Returns the filled document\n return doc;\n }", "public Template getTemplate(String sheetName) {\n try {\n if (sheetName == null) {\n throw new RuntimeException(\"urlSheet was null\");\n }\n\n log.debug(\"Parsing velocity template - \" + sheetName);\n Template template = this.velocityEngineBean.getEngine().getTemplate(sheetName);\n\n return template;\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error loading the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error loading the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error loading the velocity template\", errAny);\n }\n }", "TargetTemplate(String antName, String bundleKey, boolean mandatory, String artifactIncludes, String artifactExcludes,\n String javadocDir, boolean checkForTests, String testResults, String properties) {\n this.antName = antName;\n this.bundleKey = bundleKey;\n assert !mandatory || !checkForTests;\n this.mandatory = mandatory;\n this.artifactIncludes = artifactIncludes;\n this.artifactExcludes = artifactExcludes;\n this.javadocDir = javadocDir;\n this.checkForTests = checkForTests;\n this.testResults = testResults;\n this.properties = properties;\n }", "private FileObject makeConfigFile(TemplatePair p, NrfConfig configObj){\n ST tmpl_sd = getConfigGroup().getInstanceOf(\"sdk_config\");\n tmpl_sd.add(\"config\", configObj);\n FileObject sdk_config_file = new FileObject();\n sdk_config_file.setSubPath(\"config/\");\n sdk_config_file.setFileName( p.getValue()+\".h\");\n sdk_config_file.setContent(tmpl_sd.render());\n return sdk_config_file;\n }", "public Template getTemplate (String templateName)\n\tthrows TemplateException\n\t{\n\t\tif (! isInitialized())\n\t\t{\n\t\t\tthrow new TemplateException (\"Templating system not initialized\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\treturn new Template (Velocity.getTemplate(templateName,\"UTF-8\"));\n\t\t}\n\t\tcatch (ResourceNotFoundException e)\n\t\t{\n\t\t\tthrow new TemplateException (\"template not found: \" + e);\n\t\t}\n\t\t//rather annoyingly Velocity.getTemplate() returns a general Exception!\n\t\tcatch (Exception e) {\t\n\t\t\tthrow new TemplateException (e);\n\t\t}\n\t\t\n\t}", "public TemplateHelper() {\r\t\tsuper();\r\t}", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "private TemplateService() {\n }", "protected void createTemporaryModel(Compound compound) {\n Project tmpModel = new Project(\"tmp\");\n for (int e = 0; e < compound.getElementCount(); e++) {\n DecisionVariableDeclaration elt = compound.getElement(e);\n DecisionVariableDeclaration tmpDecl = new DecisionVariableDeclaration(\n elt.getName(), elt.getType(), tmpModel);\n tmpDecl.setComment(elt.getComment()); // take over .text information\n tmpModel.add(tmpDecl);\n }\n augmentTemporaryModel(tmpModel);\n tmpConfig = new net.ssehub.easy.varModel.confModel.Configuration(tmpModel);\n uiCfg = ConfigurationTableEditorFactory.createConfiguration(tmpConfig, \n new DelegatingEasyEditorPage(tableViewer.getTable()), parentParameters);\n }", "private NotificationTemplate buildNotificationTemplateFromEmailTemplate(EmailTemplate emailTemplate) {\n\n NotificationTemplate notificationTemplate = new NotificationTemplate();\n notificationTemplate.setNotificationChannel(NotificationChannels.EMAIL_CHANNEL.getChannelType());\n notificationTemplate.setSubject(emailTemplate.getSubject());\n notificationTemplate.setBody(emailTemplate.getBody());\n notificationTemplate.setFooter(emailTemplate.getFooter());\n notificationTemplate.setType(emailTemplate.getTemplateType());\n notificationTemplate.setDisplayName(emailTemplate.getTemplateDisplayName());\n notificationTemplate.setLocale(emailTemplate.getLocale());\n notificationTemplate.setContentType(emailTemplate.getEmailContentType());\n return notificationTemplate;\n }", "@Test\n public void ctor(){\n assertNotNull(CuT.templateEngine, \"The Template Engine is Null and should not be\");\n }", "private Element createConfigElement(PentahoConfig config) {\n\t\tElement configElem = new Element(ROOT);\n\t\tthis.addConfigElement(configElem, String.valueOf(config.isDebug()), DEBUG);\n\t\tthis.addConfigElement(configElem, config.getServerUsername(), serverUsername_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerPassword(), serverPassword_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalUrl(), serverLocalUrl_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalPort(), serverLocalPort_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalProtocol(), serverLocalProtocol_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerUrl(), serverUrl_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerPort(), serverPort_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerProtocol(), serverProtocol_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerContextPath(), serverContextPath_ELEM);\n\t\tthis.addConfigElement(configElem, config.getReportDefBasePath(), reportDefBasePath_ELEM);\n\t\tthis.addConfigElement(configElem, config.isServerVisibleFromClient(), serverVisibleFromClient_ELEM);\n\t\tthis.addConfigElement(configElem, config.getReportDetailPage(), reportDetailPage_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationRepositoryName(), dataIntegrationRepositoryName_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationUsername(), dataIntegrationUsername_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationPassword(), dataIntegrationPassword_ELEM);\n\t\treturn configElem;\n\t}", "For createFor();", "public final ElemTemplate getTemplate() {\n/* 220 */ return this.m_template;\n/* */ }", "private TemplateBasedScriptBuilder(String scriptTemplate) {\n if (!scriptTemplate.contains(BODY_PLACEHOLDER)) {\n throw new CitrusRuntimeException(\"Invalid script template - please define '\" + \n BODY_PLACEHOLDER + \"' placeholder where your code comes in\");\n }\n \n scriptHead = scriptTemplate.substring(0, scriptTemplate.indexOf(BODY_PLACEHOLDER));\n scriptTail = scriptTemplate.substring((scriptTemplate.indexOf(BODY_PLACEHOLDER) + BODY_PLACEHOLDER.length()));\n }", "public static AppTest create(Config config) {return null;}", "protected final TemplateLoader getTemplateLoader(Configuration config, String themeDir) {\n \n ServletContext context = getServletContext();\n String themeTemplateDir = context.getRealPath(themeDir) + \"/templates\";\n String vitroTemplateDir = context.getRealPath(\"/templates/freemarker\");\n\n try {\n FileTemplateLoader themeFtl = new FileTemplateLoader(new File(themeTemplateDir));\n FileTemplateLoader vitroFtl = new FileTemplateLoader(new File(vitroTemplateDir));\n ClassTemplateLoader ctl = new ClassTemplateLoader(getClass(), \"\");\n TemplateLoader[] loaders = new TemplateLoader[] { themeFtl, vitroFtl, ctl };\n MultiTemplateLoader mtl = new MultiTemplateLoader(loaders);\n return mtl;\n } catch (IOException e) {\n log.error(\"Error loading templates\");\n return null;\n }\n \n }", "Template getTemplateById(String templateId) throws NotificationClientException;", "public SaxTemplatesImpl( Templates templates, SAXTransformerFactory factory )\n {\n this.templates = templates;\n this.factory = factory;\n }", "public FtlConfig() {\n cfg = new Configuration(Configuration.VERSION_2_3_30);\n cfg.setClassLoaderForTemplateLoading(this.getClass().getClassLoader(), \"ftl\");\n cfg.setDefaultEncoding(\"UTF-8\");\n cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\n cfg.setSharedVariable(\"random\",\n new BeansWrapperBuilder(Configuration.VERSION_2_3_30).build().getStaticModels());\n cfg.setLogTemplateExceptions(false);\n cfg.setWrapUncheckedExceptions(true);\n cfg.setFallbackOnNullLoopVariable(false);\n }", "HTMLElement createHTMLElement();", "public TemplateView() {\n\t\ttry {\n\t\t\tloader = new FXMLLoader(this.getClass().getResource(\"Template.fxml\"), Messages.getBundle());\n\t\t\tParent root = loader.load();\n\t \tsetScene(new Scene(root));\n\t\t} catch (IOException e) {\n\t\t\tlogger.log(Level.WARNING, \"Failed to load view\", e);\n\t\t}\n\t\tsetTitle(Messages.TITLE_TEMPLATES_DIALOG.localize());\n\t}", "private static File generateTemplateFile(String templateFilename) {\n\t\treturn new File(templateFilename);\n\t}", "public ListTemplate() {\n }", "public Config createConfig(String filename);", "public Transformer newTransformer()\n throws TransformerConfigurationException\n {\n return templates.newTransformer();\n }", "DirectiveDefinition createDirectiveDefinition();", "public static TemplateBasedScriptBuilder fromTemplateResource(Resource scriptTemplateResource) {\n try {\n return new TemplateBasedScriptBuilder(FileUtils.readToString(scriptTemplateResource.getInputStream()));\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Error loading script template from file resource\", e);\n }\n }", "public static Document createXsd(Principal principal, CoalesceEntityTemplate template)\n throws ParserConfigurationException\n {\n CoalesceEntity entity = template.createNewEntity();\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n\n Document doc = factory.newDocumentBuilder().newDocument();\n\n Element element = doc.createElementNS(NS_XML_URI, \"schema\");\n element.setPrefix(NS_XML);\n doc.appendChild(element);\n\n String nameSpace = createNameSpace(template.getClassName(), template.getName());\n\n element.setAttribute(\"targetNamespace\", nameSpace);\n element.setAttribute(\"xmlns:\" + NS_TARGET, nameSpace);\n element.setAttribute(\"xmlns:jxb\", \"http://java.sun.com/xml/ns/jaxb\");\n element.setAttribute(\"elementFormDefault\", \"qualified\");\n element.setAttribute(\"attributeFormDefault\", \"qualified\");\n element.setAttribute(\"jxb:version\", \"2.1\");\n element.setAttribute(\"version\", template.getVersion());\n\n createComplexType(principal, doc, entity);\n\n try\n {\n // TODO Something with how the Document is created prevents it from\n // being used as a DOMSource. Serializing it and Deserializing it\n // appears to resolve the issue at a performance hit. It would be\n // nice to remove this step.\n return XmlHelper.loadXmlFrom(XmlHelper.formatXml(doc));\n }\n catch (SAXException | IOException e)\n {\n throw new ParserConfigurationException(e.getMessage());\n }\n\n }", "private void initializeTemplate(StatefulKnowledgeSession session) throws Exception {\n CamelContext context = configure(session);\n this.template = context.createProducerTemplate();\n context.start();\n }", "ConfigModel createInstanceOfConfigModel();", "@Test\n public void templateTest() throws ApiException {\n GetInterestRateChartsTemplateResponse response = api.template();\n\n // TODO: test validations\n }", "public static TemplateElement buildTemplate(String labelURI, String file, Locale locale) {\r\n // Search the extension\r\n int lastDotIndex = file.lastIndexOf(\".\");\r\n if (lastDotIndex < 0) {\r\n XMLTemplateBuilder.logger.info(\"Dot not found in the name of the file.\");\r\n lastDotIndex = file.length();\r\n }\r\n XMLTemplateBuilder.logger.debug(\"Loading template for the locale : {}\", locale.toString());\r\n\r\n String sLocaleSuffix = \"_\" + locale.getLanguage() + \"_\" + locale.getCountry();\r\n String variant = locale.getVariant();\r\n if ((variant != null) && !variant.equals(\"\")) {\r\n sLocaleSuffix = sLocaleSuffix + \"_ \" + variant;\r\n }\r\n // File name:\r\n String sFileName = file.substring(0, lastDotIndex);\r\n String extension = file.substring(lastDotIndex, file.length());\r\n String sCompleteName = sFileName + sLocaleSuffix + extension;\r\n XMLTemplateBuilder constructor = new XMLTemplateBuilder();\r\n constructor.setLabelFile(labelURI);\r\n URL url = constructor.getClass().getClassLoader().getResource(sCompleteName);\r\n if (url == null) {\r\n XMLTemplateBuilder.logger.warn(\"Not found : {}\", sCompleteName);\r\n // Try without the locale\r\n url = constructor.getClass().getClassLoader().getResource(file);\r\n if (url == null) {\r\n XMLTemplateBuilder.logger.warn(\"Neither found : {}\", file);\r\n } else {\r\n return constructor.buildTemplate(url.toString());\r\n }\r\n } else {\r\n return constructor.buildTemplate(url.toString());\r\n }\r\n return null;\r\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Configuration createConfiguration();", "public void fromConfig (VoxConfig conf);" ]
[ "0.59812945", "0.5938419", "0.5644193", "0.5487949", "0.5427442", "0.5403297", "0.53940576", "0.5308251", "0.5297539", "0.5257304", "0.51751924", "0.51218593", "0.5065268", "0.5059578", "0.5047849", "0.4982573", "0.49812508", "0.49580625", "0.4946262", "0.49433625", "0.49023902", "0.48930436", "0.48849255", "0.48347297", "0.4831694", "0.48233202", "0.4821526", "0.48092437", "0.47672218", "0.47606114", "0.4746316", "0.47265664", "0.46979558", "0.46910664", "0.4689112", "0.46842316", "0.4681868", "0.46503106", "0.4642875", "0.4628586", "0.46275836", "0.46240538", "0.46191552", "0.46080106", "0.45981625", "0.45919502", "0.456402", "0.45635986", "0.45560503", "0.4540538", "0.45381653", "0.45327297", "0.4527727", "0.45095816", "0.45049495", "0.44918975", "0.44850907", "0.44797808", "0.44688773", "0.4467052", "0.44474027", "0.4431814", "0.44286096", "0.44282016", "0.4422532", "0.44205293", "0.44084", "0.4406759", "0.43984127", "0.43930086", "0.43851343", "0.437548", "0.437444", "0.4370971", "0.43687496", "0.43615836", "0.43509853", "0.4348307", "0.43482065", "0.43474516", "0.43427807", "0.43370795", "0.4332999", "0.4330095", "0.43282676", "0.43223697", "0.4320472", "0.4315887", "0.43130773", "0.43055704", "0.43054977", "0.43047243", "0.43037403", "0.42956004", "0.4295083", "0.4293247", "0.42880327", "0.42853498", "0.42850992", "0.42812824" ]
0.6916138
0
Creates new DOM element(s) without inserting them to the document.
public static native Element createDom(DomConfig config) /*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.createDom(configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element createElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "HTMLElement createHTMLElement();", "protected abstract M createNewElement();", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "E createDefaultElement();", "public Element generateElement(Document dom);", "public void newElement() {\r\n }", "@FactoryFunc\r\n\t@Function Element createElement(String tagName);", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "BElement createBElement();", "ObjectElement createObjectElement();", "public View create(Element elem) {\n return null;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private Element createXmlElementForUndefined(Undefined undefined, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_UNDEFINED);\n\t\treturn element;\n\t}", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "DomainElement createDomainElement();", "public static native Element createDom(String rawHtml) /*-{\r\n\t\t$wnd.Ext.DomHelper.createDom(rawHtml);\r\n\t}-*/;", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public Element createEmptyElement(EmptyTask task) {\n\t\tElement empty = this.document.createElement(\"empty\");\n\t\t\n//\t\tBPELUtil.setStandardAttributes(empty, task);\n\t\t\n//\t\treturn createScopeForAttachedHandlers(empty, task);\n\t\treturn null;\n\t\t\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "Div createDiv();", "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "private Node() {\n // Start empty.\n element = null;\n }", "@Nonnull\r\n private static Document _createDummyPayload () {\n final Document aXMLDoc = XMLFactory.newDocument ();\r\n final Node aRoot = aXMLDoc.appendChild (aXMLDoc.createElement (\"test\"));\r\n aRoot.appendChild (aXMLDoc.createTextNode (\"Text content\"));\r\n return aXMLDoc;\r\n }", "public WebElement() {}", "private DOMs() {\n }", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "private void makeInvalidNode(final Document doc) {\n Element element;\n\n // create INVALID-textnode in DOM tree\n element = doc.createElement(\"mi\");\n element.setAttribute(\"mathcolor\", \"#F00\");\n element.appendChild(doc.createTextNode(\"#\"));\n\n if (this.getNode().getParentNode() == null) {\n doc.replaceChild(element, this.getNode());\n } else {\n this.getNode().getParentNode()\n .replaceChild(element, this.getNode());\n }\n\n // remove bi-subtree\n this.setNode(element);\n this.child = null;\n this.invalid = true;\n }", "private static Element createNode(Document doc, Element element, String tagName, String value) {\n\t\tif (value == null || \"\".equals(value)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tif (EMPTY_STRING.equals(value)) {\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tElement node = doc.createElement(tagName);\n\t\t\telement.appendChild(node);\n\t\t\tnode.appendChild(doc.createTextNode(value));\n\t\t\treturn node;\n\t\t}\n\t}", "DataElement createDataElement();", "ElementDefinition createElementDefinition();", "protected Element el(String tag, Node i){\n\t\tElement e = doc.createElement(tag);\n\t\tif (i instanceof Attr) { \n\t\t\te.setAttributeNode((Attr)i);\n\t\t} else {\n\t\t\te.appendChild(i);\n\t\t}\n\t\treturn e;\n\t}", "public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public View create(Element elem, int p0, int p1) {\n return null;\n }", "HTML createHTML();", "UL createUL();", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "DIV createDIV();", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone insertNewNoPassingZone(int i);", "@Function DocumentFragment createDocumentFragment();", "private void createNewWebView()\n {\n //Remove the webView from it's parent if the webView exists\n if(webView != null) {\n ViewGroup parent = (ViewGroup) webView.getParent();\n parent.removeView(webView);\n }\n\n //Create a new WebView\n webView = new WebView(getContext());\n webView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n\n //Add the new WebView to the webViewContainer\n webViewContainer.addView(webView);\n }", "@Override\r\n\tpublic ElectricityElement createElement() {\r\n\t\treturn new DefaultElectricityElement(\r\n\t\t\t\tgetTemplateName(), \r\n\t\t\t\tgetName(), \r\n\t\t\t\tgetOrigin(),\r\n\t\t\t\tgetDestination(),\r\n\t\t\t\tgetLifecycleModel().createLifecycleModel(), \r\n\t\t\t\tgetMaxElectricityProduction(), \r\n\t\t\t\tgetInitialElectricityProduction(), \r\n\t\t\t\tgetPetroleumIntensityOfElectricityProduction(),\r\n\t\t\t\tgetWaterIntensityOfElectricityProduction(), \r\n\t\t\t\tgetVariableOperationsCostOfElectricityProduction(),\r\n\t\t\t\tgetDistributionEfficiency(), \r\n\t\t\t\tgetMaxElectricityInput(), \r\n\t\t\t\tgetInitialElectricityInput(),\r\n\t\t\t\tgetVariableOperationsCostOfElectricityDistribution()\r\n\t\t\t);\r\n\t}", "public void createEmptyDocument()\n throws IOException, SAXException {\n URL url = WPVSCapabilitiesDocument.class.getResource( XML_TEMPLATE );\n if ( url == null ) {\n throw new IOException( \"The resource '\" + XML_TEMPLATE + \" could not be found.\" );\n }\n load( url );\n }", "public Element createElement(String tagName, String nodeValue) {\r\n\t\tElement element = doc.createElement(tagName);\r\n\t\t\r\n\t\tif (nodeValue == null) {\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\telement.setNodeValue(nodeValue);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t}", "private static boolean create() {\n if (removed) return false;\n else if (tag != null) return true;\n else {\n tag = DOM.getElementById(STATUS_TAG_NAME);\n if (tag != null) {\n return true;\n } else {\n removed = true;\n return false;\n }\n } \n }", "protected Node newNode() {\n\t\treturn new RCPOMDocument();\n\t}", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }", "Element() {\n\t}", "private BoardElement createBoardElement(Element eElement) {\r\n\t\treturn new BoardElement(\r\n\t\t\teElement.getAttribute(\"id\")\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"topLeftX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"topLeftY\").item(0).getTextContent()))\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"bottomRightX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"bottomRightY\").item(0).getTextContent()))\r\n\t\t);\r\n\t}", "public static Document createDocument(final Element element) {\n\t\tfinal DOMImplementation domImplementation = element.getOwnerDocument().getImplementation(); //get the DOM implementation used to create the document\n\t\t//create a new document corresponding to the element\n\t\t//TODO bring over the doctype, if needed\n\t\tfinal Document document = domImplementation.createDocument(element.getNamespaceURI(), element.getNodeName(), null);\n\t\tfinal Node importedNode = document.importNode(element, true); //import the element into our new document\n\t\tdocument.replaceChild(importedNode, document.getDocumentElement()); //set the element clone as the document element of the new document\n\t\treturn document; //return the document we created\n\t}", "ElementText createElementText();", "public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}", "@org.junit.Test\n public void constrCompelemDoc1() {\n final XQuery query = new XQuery(\n \"element elem {., .}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root></elem>\", false)\n );\n }", "Form addElement(Element element);", "ElementImage createElementImage();", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "public static native Element overwrite(String oldId, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml);\r\n\t}-*/;", "public Element createElement(String localName, String text) {\n Element element = createElement(localName);\n Text textNode = getDocument().createTextNode(text);\n element.appendChild(textNode);\n\n return element;\n }", "void addElement(FormElement elt);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(indentLevel + 1);\n \t\tHTMLElement body = generateBodyElement(indentLevel + 1);\n \t\thtml.addContent(head);\n \t\thtml.addContent(body);\n \t\treturn html;\n \t}", "protected Element toDOMElement(CoreDocumentImpl document) {\n ElementImpl element = new ElementImpl(document, \"user\");\n element.setAttribute(\"id\", this.getId());\n element.setAttribute(\"name\", this.getName());\n element.setAttribute(\"email\", this.getEmail());\n element.setAttribute(\"password\", this.getPassword());\n return element;\n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "private OMElement createElement(String str) throws XMLStreamException {\n InputStream in = new ByteArrayInputStream(str.getBytes());\n return new StAXOMBuilder(in).getDocumentElement();\n }", "public Element createElement(String localName) {\n return getDocument().createElementNS(getNamespaceURI(),\n getQualifiedName(getPrefix(), localName));\n }", "SSElements createSSElements();", "private XMLDocument startElement(String name, Object[] attributes, boolean closeTag) {\r\n return this.startElement(name, attributes, closeTag, true);\r\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "public GongDomObject() throws ParserConfigurationException {\r\n super();\r\n \r\n // Remove the previous anchor\r\n Document document = getDocument();\r\n document.removeChild(document.getDocumentElement());\r\n \r\n // Create the default anchor element\r\n anchor = document.createElementNS(XmlConstants.NAMESPACE_URI, getTag().toString());\r\n document.appendChild(anchor);\r\n }", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "private static Node getReceiverElements(Document doc, Element element, String name, String value) {\r\n\t\tElement node = doc.createElement(name);\r\n\t\tnode.appendChild(doc.createTextNode(value));\r\n\t\treturn node;\r\n\t}", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }" ]
[ "0.73177433", "0.67791164", "0.6682571", "0.6568797", "0.6189695", "0.61723447", "0.6147519", "0.6013237", "0.60109156", "0.59619445", "0.5919733", "0.58297294", "0.5786944", "0.5750905", "0.57286024", "0.5714299", "0.5707724", "0.5690428", "0.5690288", "0.5662585", "0.5647571", "0.5633106", "0.55992943", "0.55820316", "0.5579798", "0.55740094", "0.55656296", "0.5553185", "0.5537164", "0.5482882", "0.5417069", "0.54049087", "0.5395577", "0.53924423", "0.5366653", "0.5349554", "0.53492683", "0.5342159", "0.5322953", "0.53171337", "0.53131664", "0.5311232", "0.5310416", "0.5298537", "0.5287854", "0.52578783", "0.52494574", "0.5244883", "0.5228337", "0.5227487", "0.52263355", "0.52248317", "0.5200783", "0.51959735", "0.51923066", "0.5182588", "0.51724535", "0.5165275", "0.51610845", "0.5160037", "0.5137701", "0.5132096", "0.5093501", "0.50847816", "0.50805163", "0.5061026", "0.5053625", "0.504495", "0.50441253", "0.5040575", "0.5026663", "0.50260735", "0.50056434", "0.5004223", "0.4988684", "0.49811003", "0.4954168", "0.49347094", "0.4931008", "0.49277273", "0.49195504", "0.48976362", "0.48874447", "0.4866611", "0.48657325", "0.48639852", "0.48583207", "0.48571432", "0.4849551", "0.48433995", "0.48379973", "0.48309982", "0.48266187", "0.48154643", "0.48154643", "0.48154643", "0.48154643", "0.48127654", "0.48113176", "0.48051882" ]
0.52410394
48
Creates new DOM element(s) without inserting them to the document.
public static native Element createDom(String rawHtml) /*-{ $wnd.Ext.DomHelper.createDom(rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element createElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "HTMLElement createHTMLElement();", "protected abstract M createNewElement();", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "E createDefaultElement();", "public Element generateElement(Document dom);", "public void newElement() {\r\n }", "@FactoryFunc\r\n\t@Function Element createElement(String tagName);", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "BElement createBElement();", "ObjectElement createObjectElement();", "public View create(Element elem) {\n return null;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private Element createXmlElementForUndefined(Undefined undefined, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_UNDEFINED);\n\t\treturn element;\n\t}", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "DomainElement createDomainElement();", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public Element createEmptyElement(EmptyTask task) {\n\t\tElement empty = this.document.createElement(\"empty\");\n\t\t\n//\t\tBPELUtil.setStandardAttributes(empty, task);\n\t\t\n//\t\treturn createScopeForAttachedHandlers(empty, task);\n\t\treturn null;\n\t\t\n\t}", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "Div createDiv();", "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "private Node() {\n // Start empty.\n element = null;\n }", "@Nonnull\r\n private static Document _createDummyPayload () {\n final Document aXMLDoc = XMLFactory.newDocument ();\r\n final Node aRoot = aXMLDoc.appendChild (aXMLDoc.createElement (\"test\"));\r\n aRoot.appendChild (aXMLDoc.createTextNode (\"Text content\"));\r\n return aXMLDoc;\r\n }", "public WebElement() {}", "private DOMs() {\n }", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "private void makeInvalidNode(final Document doc) {\n Element element;\n\n // create INVALID-textnode in DOM tree\n element = doc.createElement(\"mi\");\n element.setAttribute(\"mathcolor\", \"#F00\");\n element.appendChild(doc.createTextNode(\"#\"));\n\n if (this.getNode().getParentNode() == null) {\n doc.replaceChild(element, this.getNode());\n } else {\n this.getNode().getParentNode()\n .replaceChild(element, this.getNode());\n }\n\n // remove bi-subtree\n this.setNode(element);\n this.child = null;\n this.invalid = true;\n }", "private static Element createNode(Document doc, Element element, String tagName, String value) {\n\t\tif (value == null || \"\".equals(value)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tif (EMPTY_STRING.equals(value)) {\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tElement node = doc.createElement(tagName);\n\t\t\telement.appendChild(node);\n\t\t\tnode.appendChild(doc.createTextNode(value));\n\t\t\treturn node;\n\t\t}\n\t}", "DataElement createDataElement();", "ElementDefinition createElementDefinition();", "protected Element el(String tag, Node i){\n\t\tElement e = doc.createElement(tag);\n\t\tif (i instanceof Attr) { \n\t\t\te.setAttributeNode((Attr)i);\n\t\t} else {\n\t\t\te.appendChild(i);\n\t\t}\n\t\treturn e;\n\t}", "public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public View create(Element elem, int p0, int p1) {\n return null;\n }", "HTML createHTML();", "UL createUL();", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "DIV createDIV();", "org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone insertNewNoPassingZone(int i);", "@Function DocumentFragment createDocumentFragment();", "private void createNewWebView()\n {\n //Remove the webView from it's parent if the webView exists\n if(webView != null) {\n ViewGroup parent = (ViewGroup) webView.getParent();\n parent.removeView(webView);\n }\n\n //Create a new WebView\n webView = new WebView(getContext());\n webView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n\n //Add the new WebView to the webViewContainer\n webViewContainer.addView(webView);\n }", "@Override\r\n\tpublic ElectricityElement createElement() {\r\n\t\treturn new DefaultElectricityElement(\r\n\t\t\t\tgetTemplateName(), \r\n\t\t\t\tgetName(), \r\n\t\t\t\tgetOrigin(),\r\n\t\t\t\tgetDestination(),\r\n\t\t\t\tgetLifecycleModel().createLifecycleModel(), \r\n\t\t\t\tgetMaxElectricityProduction(), \r\n\t\t\t\tgetInitialElectricityProduction(), \r\n\t\t\t\tgetPetroleumIntensityOfElectricityProduction(),\r\n\t\t\t\tgetWaterIntensityOfElectricityProduction(), \r\n\t\t\t\tgetVariableOperationsCostOfElectricityProduction(),\r\n\t\t\t\tgetDistributionEfficiency(), \r\n\t\t\t\tgetMaxElectricityInput(), \r\n\t\t\t\tgetInitialElectricityInput(),\r\n\t\t\t\tgetVariableOperationsCostOfElectricityDistribution()\r\n\t\t\t);\r\n\t}", "public void createEmptyDocument()\n throws IOException, SAXException {\n URL url = WPVSCapabilitiesDocument.class.getResource( XML_TEMPLATE );\n if ( url == null ) {\n throw new IOException( \"The resource '\" + XML_TEMPLATE + \" could not be found.\" );\n }\n load( url );\n }", "public Element createElement(String tagName, String nodeValue) {\r\n\t\tElement element = doc.createElement(tagName);\r\n\t\t\r\n\t\tif (nodeValue == null) {\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\telement.setNodeValue(nodeValue);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t}", "private static boolean create() {\n if (removed) return false;\n else if (tag != null) return true;\n else {\n tag = DOM.getElementById(STATUS_TAG_NAME);\n if (tag != null) {\n return true;\n } else {\n removed = true;\n return false;\n }\n } \n }", "protected Node newNode() {\n\t\treturn new RCPOMDocument();\n\t}", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }", "Element() {\n\t}", "private BoardElement createBoardElement(Element eElement) {\r\n\t\treturn new BoardElement(\r\n\t\t\teElement.getAttribute(\"id\")\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"topLeftX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"topLeftY\").item(0).getTextContent()))\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"bottomRightX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"bottomRightY\").item(0).getTextContent()))\r\n\t\t);\r\n\t}", "public static Document createDocument(final Element element) {\n\t\tfinal DOMImplementation domImplementation = element.getOwnerDocument().getImplementation(); //get the DOM implementation used to create the document\n\t\t//create a new document corresponding to the element\n\t\t//TODO bring over the doctype, if needed\n\t\tfinal Document document = domImplementation.createDocument(element.getNamespaceURI(), element.getNodeName(), null);\n\t\tfinal Node importedNode = document.importNode(element, true); //import the element into our new document\n\t\tdocument.replaceChild(importedNode, document.getDocumentElement()); //set the element clone as the document element of the new document\n\t\treturn document; //return the document we created\n\t}", "ElementText createElementText();", "public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}", "@org.junit.Test\n public void constrCompelemDoc1() {\n final XQuery query = new XQuery(\n \"element elem {., .}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root></elem>\", false)\n );\n }", "Form addElement(Element element);", "ElementImage createElementImage();", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "public static native Element overwrite(String oldId, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml);\r\n\t}-*/;", "public Element createElement(String localName, String text) {\n Element element = createElement(localName);\n Text textNode = getDocument().createTextNode(text);\n element.appendChild(textNode);\n\n return element;\n }", "void addElement(FormElement elt);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(indentLevel + 1);\n \t\tHTMLElement body = generateBodyElement(indentLevel + 1);\n \t\thtml.addContent(head);\n \t\thtml.addContent(body);\n \t\treturn html;\n \t}", "protected Element toDOMElement(CoreDocumentImpl document) {\n ElementImpl element = new ElementImpl(document, \"user\");\n element.setAttribute(\"id\", this.getId());\n element.setAttribute(\"name\", this.getName());\n element.setAttribute(\"email\", this.getEmail());\n element.setAttribute(\"password\", this.getPassword());\n return element;\n }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "private OMElement createElement(String str) throws XMLStreamException {\n InputStream in = new ByteArrayInputStream(str.getBytes());\n return new StAXOMBuilder(in).getDocumentElement();\n }", "public Element createElement(String localName) {\n return getDocument().createElementNS(getNamespaceURI(),\n getQualifiedName(getPrefix(), localName));\n }", "SSElements createSSElements();", "private XMLDocument startElement(String name, Object[] attributes, boolean closeTag) {\r\n return this.startElement(name, attributes, closeTag, true);\r\n }", "private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}", "public GongDomObject() throws ParserConfigurationException {\r\n super();\r\n \r\n // Remove the previous anchor\r\n Document document = getDocument();\r\n document.removeChild(document.getDocumentElement());\r\n \r\n // Create the default anchor element\r\n anchor = document.createElementNS(XmlConstants.NAMESPACE_URI, getTag().toString());\r\n document.appendChild(anchor);\r\n }", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "private static Node getReceiverElements(Document doc, Element element, String name, String value) {\r\n\t\tElement node = doc.createElement(name);\r\n\t\tnode.appendChild(doc.createTextNode(value));\r\n\t\treturn node;\r\n\t}", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }" ]
[ "0.73177433", "0.67791164", "0.6682571", "0.6568797", "0.6189695", "0.61723447", "0.6147519", "0.6013237", "0.60109156", "0.59619445", "0.5919733", "0.58297294", "0.5786944", "0.5750905", "0.57286024", "0.5714299", "0.5707724", "0.5690428", "0.5690288", "0.5662585", "0.5647571", "0.5633106", "0.55992943", "0.5579798", "0.55740094", "0.55656296", "0.5553185", "0.5537164", "0.5482882", "0.5417069", "0.54049087", "0.5395577", "0.53924423", "0.5366653", "0.5349554", "0.53492683", "0.5342159", "0.5322953", "0.53171337", "0.53131664", "0.5311232", "0.5310416", "0.5298537", "0.5287854", "0.52578783", "0.52494574", "0.5244883", "0.52410394", "0.5228337", "0.5227487", "0.52263355", "0.52248317", "0.5200783", "0.51959735", "0.51923066", "0.5182588", "0.51724535", "0.5165275", "0.51610845", "0.5160037", "0.5137701", "0.5132096", "0.5093501", "0.50847816", "0.50805163", "0.5061026", "0.5053625", "0.504495", "0.50441253", "0.5040575", "0.5026663", "0.50260735", "0.50056434", "0.5004223", "0.4988684", "0.49811003", "0.4954168", "0.49347094", "0.4931008", "0.49277273", "0.49195504", "0.48976362", "0.48874447", "0.4866611", "0.48657325", "0.48639852", "0.48583207", "0.48571432", "0.4849551", "0.48433995", "0.48379973", "0.48309982", "0.48266187", "0.48154643", "0.48154643", "0.48154643", "0.48154643", "0.48127654", "0.48113176", "0.48051882" ]
0.55820316
23
Converts the styles from the given object to text. The styles are CSS style names with their associated value.
public static native String generateStyle(StyleConfig config) /*-{ var configJS = config.@com.ait.toolkit.core.client.JsObject::getJsObj()(); return $wnd.Ext.DomHelper.generateStyle(configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String format(Object object){\n return \"<font\"+(this == NO_COLOR ? \"\" : \" color=#\"+getHexValue())+\">\"+object+\"</font>\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStyle() != null)\n sb.append(\"Style: \").append(getStyle());\n sb.append(\"}\");\n return sb.toString();\n }", "private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }", "private String getStyleAttribute() {\n StringBuilder sb = new StringBuilder();\n\n styleAttribute.forEach((key, value) -> {\n sb.append(key).append(\":\").append(value).append(\";\");\n });\n\n return sb.toString();\n }", "public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}", "public static String getCssString(XMLDataObject xml) {\n\n //Style string\n StringBuilder styleString = new StringBuilder();\n\n //Get the list of properties\n List<XMLDataObject> objects = xml.getList(\"property\");\n\n //Loop through properties to get the style\n for (XMLDataObject object : objects) {\n\n String value = object.getTextContent();\n String name = object.getString(\"@name\");\n\n if (STYLE_TO_CSS.containsKey(name)) {\n name = STYLE_TO_CSS.get(name);\n styleString.append(name).append(\":\").append(value).append(\";\");\n }\n }\n\n String css = styleString.toString();\n return (css.length() == 0) ? null : css;\n }", "public mxStyleSheet getTextStyle()\n\t{\n\t\treturn textStyle;\n\t}", "public String toString() {\n \t\treturn getCssText();\n \t}", "public TextStyle getStyle(\n )\n {return style;}", "public FontStyle getStyle();", "public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }", "public TextStyle getTextStyle() {\n return this.textStyle;\n }", "public List<CSSProperty> mapCSSProperty(String elementKey, Object object) {\n\t\t\tList<CSSProperty> properties = new ArrayList<CSSProperty>();\n\n\t\t\tswitch (elementKey) {\n\t\t\tcase \"alignment\":\n\t\t\t\tproperties.add(createProperty(\"text-align\", (String) object));\n\t\t\t\tbreak;\n\t\t\tcase \"margin\":\n\t\t\t\tproperties.addAll(mapMargin((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"size\":\n\t\t\t\tproperties.addAll(mapCSSSize((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"position\":\n\t\t\t\tproperties.add(createProperty(\"float\", \"left\"));\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"padding\":\n\t\t\t\tproperties.addAll(mapCSSPadding((JSONObject) object));\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tproperties.add(createProperty(elementKey, (String) object));\n\t\t\t}\n\t\t\treturn properties;\n\t\t}", "private void writeObject(final ObjectOutputStream oos) throws IOException {\n oos.defaultWriteObject();\n StyleContext.writeAttributeSet(oos, styles);\n }", "public void setStyles(String text) {\n getState().styles = text;\n }", "public String toString() {\n\tString\tstrStyle;\n\n\tif (isBold()) {\n\t strStyle = isItalic() ? \"bolditalic\" : \"bold\";\n\t} else {\n\t strStyle = isItalic() ? \"italic\" : \"plain\";\n\t}\n\n\treturn getClass().getName() + \"[family=\" + getFamily() + \",name=\" + name + \",style=\" +\n\t strStyle + \",size=\" + size + \"]\";\n }", "public String toCSS(){\n return new StringBuilder()\n .append(\"display:\")\n .append(this.toString().replace(\"_\", \"-\"))\n .append(\";\").toString();\n }", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\tHorizontalMappingStrategyDef horizontalMappingStrategyDef = (HorizontalMappingStrategyDef) object;\r\n\t\treturn getString(\"_UI_HorizontalMappingStrategyDef_type\") + \" \"\r\n\t\t\t\t+ horizontalMappingStrategyDef.isForceNamesWithID();\r\n\t}", "public Object convertTo(String value) {\r\n return toFont(value);\r\n }", "public abstract String getStyle();", "@Override\n\tpublic String getText(Object object) {\n\t\t// We use the pretty-printer in the edge implementation:\n\t\treturn ((Edge) object).toString();\n\t}", "public String getStyle() {\r\n return style;\r\n }", "public T caseUbqColorStyle(UbqColorStyle object) {\r\n\t\treturn null;\r\n\t}", "public T caseUbqFontStyle(UbqFontStyle object) {\r\n\t\treturn null;\r\n\t}", "Map<String, String> styles(String group);", "public String getCssText() {\n \t\treturn getCssText(unitType, floatValue);\n \t}", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "public List<ResultDisplay.StyledText> getStyledText() {\n List<ResultDisplay.StyledText> ans = new ArrayList<>();\n for (Node node : getRootNode().getChildren()) {\n if (node instanceof Text) {\n Text tNode = (Text) node;\n ans.add(new ResultDisplay.StyledText(tNode.getText(), tNode.getStyleClass().get(0)));\n }\n }\n return ans;\n }", "Style getStyle();", "StyleValue getCSSValue();", "private static TextStyle styleString(String color) {\n switch (color.toLowerCase().trim()) {\n case \"bold\":\n case \"&l\":\n return TextStyles.BOLD;\n case \"italic\":\n case \"&o\":\n return TextStyles.ITALIC;\n case \"random\":\n case \"obfuscated\":\n case \"magic\":\n case \"&k\":\n return TextStyles.OBFUSCATED;\n case \"strike\":\n case \"strikethru\":\n case \"strikethrough\":\n case \"&m\":\n return TextStyles.STRIKETHROUGH;\n case \"reset\":\n case \"&r\":\n return TextStyles.RESET;\n case \"underline\":\n case \"&n\":\n return TextStyles.UNDERLINE;\n default:\n return TextStyles.NONE;\n }\n }", "public String getStyle() {\n\t\treturn style;\n\t}", "@Override\n\tpublic String getText(Object object)\n\t{\n\t\tCadence cadence = (Cadence)object;\n\t\treturn getString(\"_UI_Cadence_type\") + \" \" + cadence.getFrequency();\n\t}", "public StringItemStyle getStringStyle() {\r\n\t\treturn stringStyle;\r\n\t}", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\treturn super.getText(object);\r\n\t}", "public String getStyles() {\n return getState().styles;\n }", "public native final String style(String name) /*-{\n\t\treturn this.style(name);\n\t}-*/;", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((Cell)object).getCellID();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Cell_type\") :\n\t\t\tgetString(\"_UI_Cell_type\") + \" \" + label;\n\t}", "protected CellStyle getTextCellStyle(final Workbook workbook) {\n final CellStyle myStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n myStyle.setAlignment(CellStyle.ALIGN_LEFT);\n return myStyle;\n }", "public void buildTextStyle( ITextContent text, StringBuffer styleBuffer,\n \t\t\tint display, String url )\n \t{\n \t\tIStyle style = text.getStyle( );\n \t\t// check 'can-shrink' property\n \t\thandleShrink( display,\n \t\t\t\tstyle,\n \t\t\t\ttext.getHeight( ),\n \t\t\t\ttext.getWidth( ),\n \t\t\t\tstyleBuffer );\n \n \t\tif ( url != null )\n \t\t{\n \t\t\tsetDisplayProperty( display, HTMLEmitterUtil.DISPLAY_BLOCK\n \t\t\t\t\t| HTMLEmitterUtil.DISPLAY_INLINE_BLOCK, styleBuffer );\n \t\t\tAttributeBuilder.checkHyperlinkTextDecoration( style, styleBuffer );\n \t\t}\n \t\telse\n \t\t{\n \t\t\tsetDisplayProperty( display,\n \t\t\t\t\tHTMLEmitterUtil.DISPLAY_INLINE_BLOCK,\n \t\t\t\t\tstyleBuffer );\n \t\t}\n \n \t\t// build the text-align\n \t\tString textAlign = text.getComputedStyle( ).getTextAlign( );\n \t\tif ( textAlign != null )\n \t\t{\n \t\t\tstyleBuffer.append( \" text-align:\" );\n \t\t\tstyleBuffer.append( textAlign );\n \t\t\tstyleBuffer.append( \";\" );\n \t\t}\n \t\tbuildStyle( text, styleBuffer );\n \t}", "public String getPageStyle()\n {\n if (this.pageStyle == null) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<style type='text/css'>\\n\");\n sb.append(\" a:hover { color:#00CC00; }\\n\");\n sb.append(\" h1 { font-family:Arial; font-size:16pt; white-space:pre; }\\n\");\n sb.append(\" h2 { font-family:Arial; font-size:14pt; white-space:pre; }\\n\");\n sb.append(\" h3 { font-family:Arial; font-size:12pt; white-space:pre; }\\n\");\n sb.append(\" h4 { font-family:Arial; font-size:10pt; white-space:pre; }\\n\");\n sb.append(\" form { margin-top:0px; margin-bottom:0px; }\\n\");\n sb.append(\" body { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" td { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input:focus { background-color: #FFFFC9; }\\n\");\n sb.append(\" select { font-size:7pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" select:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" textarea { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" textarea:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" .\"+CommonServlet.CSS_TEXT_INPUT+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#FFFFFF; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_TEXT_READONLY+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#E7E7E7; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_FRAME[1]+\" { padding:5px; width:300px; border-style:double; border-color:#555555; background-color:white; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_MESSAGE+\" { padding-top:5px; font-style:oblique; text-align:center; }\\n\");\n sb.append(\"</style>\\n\");\n this.pageStyle = sb.toString();\n } \n return this.pageStyle;\n }", "TextStyle and(TextStyle... styles);", "@Override\n\tprotected TextAttribute createTextAttribute(String[] stylePrefs) {\n\t\tint fontModifier = SWT.NORMAL;\n\t\tif (Boolean.valueOf(stylePrefs[2]).booleanValue()) { // bold\n\t\t\tfontModifier |= SWT.BOLD;\n\t\t}\n\t\tif (Boolean.valueOf(stylePrefs[3]).booleanValue()) { // italic\n\t\t\tfontModifier |= SWT.ITALIC;\n\t\t}\n\t\tif (Boolean.valueOf(stylePrefs[4]).booleanValue()) { // strikethrough\n\t\t\tfontModifier |= TextAttribute.STRIKETHROUGH;\n\t\t}\n\t\tif (Boolean.valueOf(stylePrefs[5]).booleanValue()) { // underline\n\t\t\tfontModifier |= TextAttribute.UNDERLINE;\n\t\t}\n\t\treturn new TextAttribute(EditorUtility.getColor(ColorHelper.toRGB(stylePrefs[0])),\n\t\t\t\tEditorUtility.getColor(ColorHelper.toRGB(stylePrefs[1])), fontModifier);\n\t}", "protected static Style getStyle(XMLDataObject xml) {\n\n Style style = new Style();\n style.setName(xml.getString(\"@name\"));\n style.setValue(getCssString(xml));\n\n return style;\n }", "public Encoding setStyle(String value) {\n\t\tstyle = value;\n\t\treturn this;\n\t}", "@Override\n\tpublic AttributedCharacterIterator formatToCharacterIterator(final Object obj) {\n\t\tCalendar cal = calendar;\n\t\tif (obj instanceof Calendar) {\n\t\t\tcal = (Calendar) obj;\n\t\t} else if (obj instanceof Date) {\n\t\t\tcalendar.setTime((Date) obj);\n\t\t} else if (obj instanceof Number) {\n\t\t\tcalendar.setTimeInMillis(((Number) obj).longValue());\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot format given Object as a Date\");\n\t\t}\n\t\tStringBuffer toAppendTo = new StringBuffer();\n\t\tFieldPosition pos = new FieldPosition(0);\n\t\tList<FieldPosition> attributes = new ArrayList<FieldPosition>();\n\t\tformat(cal, capitalizationSetting, toAppendTo, pos, attributes);\n\n\t\tAttributedString as = new AttributedString(toAppendTo.toString());\n\n\t\t// add DateFormat field attributes to the AttributedString\n\t\tfor (int i = 0; i < attributes.size(); i++) {\n\t\t\tFieldPosition fp = attributes.get(i);\n\t\t\tFormat.Field attribute = fp.getFieldAttribute();\n\t\t\tas.addAttribute(attribute, attribute, fp.getBeginIndex(), fp.getEndIndex());\n\t\t}\n\t\t// return the CharacterIterator from AttributedString\n\t\treturn as.getIterator();\n\t}", "public String getStyleName() {\r\n return getAttributeAsString(\"styleName\");\r\n }", "AttributedCharacterIterator formatToCharacterIterator(Object obj) {\n CharacterIteratorFieldDelegate delegate = new CharacterIteratorFieldDelegate();\n StringBuffer sb = new StringBuffer();\n\n if (obj instanceof Long) {\n format(((Long) obj).longValue(), sb, delegate);\n } else if (obj == null) {\n throw new NullPointerException(\"formatToCharacterIterator must be passed non-null object\");\n } else if (obj instanceof Double) {\n format(((Double) obj).doubleValue(), sb, delegate);\n } else {\n throw new IllegalArgumentException(\"Cannot format given Object as a Number\");\n }\n return delegate.getIterator(sb.toString());\n }", "void setStyle(String style);", "public interface StyleSource {\n /**\n * Returns the appropriate style for the given style-group and style-name, or {@code null} if missing.\n *\n * @param group the group\n * @param name the style name\n * @return the style\n */\n @Nullable\n String get(String group, String name);\n\n /**\n * Set a specific style in a style-group.\n *\n * @param group the group\n * @param name the style name\n * @param style the style to set\n */\n void set(String group, String name, String style);\n\n /**\n * Remove all styles for given style-group.\n *\n * @param group the group\n */\n void remove(String group);\n\n /**\n * Remove a specific style from style-group.\n *\n * @param group the group\n * @param name the style name to remove\n */\n void remove(String group, String name);\n\n /**\n * Clear all styles.\n */\n void clear();\n\n /**\n * Returns configured style-group names.\n *\n * @return Immutable collection.\n */\n Iterable<String> groups();\n\n /**\n * Returns configured styles for given style-group.\n *\n * @param group the style group\n * @return Immutable map.\n */\n Map<String, String> styles(String group);\n}", "public void handleStyle(HtmlObjects.Style t)\n {\n }", "@Override\n public String getPreviewString(Object value) {\n assert value instanceof Font;\n Font fontVal = (Font) value;\n if (isIndeterminate()) {\n return \"-\"; //NOI18N\n } else {\n String size = EditorUtils.valAsStr(fontVal.getSize());\n return fontVal.getFamily() + \" \" + size + \"px\" //NOI18N\n + (!fontVal.getName().equals(fontVal.getFamily()) && !\"Regular\".equals(fontVal.getStyle()) ? //NOI18N\n \" (\" + fontVal.getStyle() + \")\" : \"\"); //NOI18N\n }\n }", "@Override\n\tpublic String getText(Object object) {\n\t\tShape labelValue = ((Line)object).getShape();\n\t\tString label = labelValue == null ? null : labelValue.toString();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Line_type\") :\n\t\t\tgetString(\"_UI_Line_type\") + \" \" + label;\n\t}", "public static native JsArrayString generateStyleAsArray(StyleConfig config,\r\n\t\t\tJsArrayString buffer) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\treturn $wnd.Ext.DomHelper.generateStyle(configJS, buffer);\r\n\t}-*/;", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((SecuritySchema)object).getName();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_SecuritySchema_type\") :\n\t\t\tgetString(\"_UI_SecuritySchema_type\") + \" \" + label;\n\t}", "public static String toCSSString(String inText)\n {\n return inText.replaceAll(\"\\\\W\", \"\");\n }", "public static String deCamelCaseStyle(String style){\n\t\t\n\t\tString property = \"\";\n\t\tfor (int j = 0; j < style.length(); j++) {\n\t\t\tchar character = style.charAt(j);\n\t\t\tif (Character.isUpperCase(character)) {\n\t\t\t\tproperty += \"-\" + Character.toLowerCase(character);\n\t\t\t} else {\n\t\t\t\tproperty += character;\n\t\t\t}\n\t\t}\n\t\treturn property;\n\t}", "public final String getStyleAttribute() {\n return getAttributeValue(\"style\");\n }", "public void setStyle(String st){\n style = st;\n }", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((Bean)object).getClass_();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Bean_type\") :\n\t\t\tgetString(\"_UI_Bean_type\") + \" \" + label;\n\t}", "@Override\r\n public @Nullable String getFormattedText(RenderContext ctx)\r\n {\n String oorPrefix = getOORPrefix(ctx);\r\n String formattedValue = \"\";\r\n Object value = getDisplayValue(ctx);\r\n if (null != value)\r\n {\r\n formattedValue = super.getFormattedText(ctx);\r\n if (null == formattedValue)\r\n formattedValue = ConvertUtils.convert(value);\r\n }\r\n assert null != formattedValue;\r\n return oorPrefix + formattedValue;\r\n }", "private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedStyle(wb);\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n style.setFont(headerFont);\n styles.put(\"header\", style);\n\n style = createBorderedStyle(wb);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n styles.put(\"body\", style);\n\n return styles;\n }", "private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "STYLE createSTYLE();", "public static ScriptStyle getStyle(int val)\r\n/* 31: */ {\r\n/* 32: 92 */ for (int i = 0; i < styles.length; i++) {\r\n/* 33: 94 */ if (styles[i].getValue() == val) {\r\n/* 34: 96 */ return styles[i];\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37:100 */ return NORMAL_SCRIPT;\r\n/* 38: */ }", "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "public T caseUbqWidgetStyle(UbqWidgetStyle object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public String getCSSStyle() {\n return null;\n }", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "public String format(Object value);", "private static final void buildSpannedFromTextCSSNode(\n WXTextDomObject textCSSNode, SpannableStringBuilder sb,\n List<SetSpanOperation> ops) {\n int start = sb.length();\n if (textCSSNode.mText != null) {\n sb.append(textCSSNode.mText);\n }\n int end = sb.length();\n if (end >= start) {\n if (textCSSNode.mTextDecoration == WXTextDecoration.UNDERLINE) {\n ops.add(new SetSpanOperation(start, end,\n new UnderlineSpan()));\n }\n if (textCSSNode.mTextDecoration == WXTextDecoration.LINETHROUGH) {\n ops.add(new SetSpanOperation(start, end,\n new StrikethroughSpan()));\n }\n if (textCSSNode.mIsColorSet) {\n ops.add(new SetSpanOperation(start, end,\n new ForegroundColorSpan(textCSSNode.mColor)));\n }\n if (textCSSNode.mIsBackgroundColorSet) {\n ops.add(new SetSpanOperation(start, end,\n new BackgroundColorSpan(textCSSNode.mBackgroundColor)));\n }\n if (textCSSNode.mFontSize != UNSET) {\n ops.add(new SetSpanOperation(start, end, new AbsoluteSizeSpan(\n textCSSNode.mFontSize)));\n }\n if (textCSSNode.mFontStyle != UNSET\n || textCSSNode.mFontWeight != UNSET\n || textCSSNode.mFontFamily != null) {\n ops.add(new SetSpanOperation(start, end, new WXCustomStyleSpan(\n textCSSNode.mFontStyle, textCSSNode.mFontWeight,\n textCSSNode.mFontFamily)));\n }\n ops.add(new SetSpanOperation(start, end, new WXTagSpan(\n textCSSNode.ref)));\n }\n }", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((CompositeNode)object).getName();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_CompositeNode_type\") :\n\t\t\tgetString(\"_UI_CompositeNode_type\") + \" \" + label;\n\t}", "public ColorStyle getColorStyle(int i){\n\t\tif(i >=0 && i < styles.size()) return styles.get(i);\n\t\treturn null;\n\t}", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o)\n {\n if (o == null) { return \"null\"; }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }", "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "@Override\r\n\tpublic String asString(Object object) {\r\n\t\t// at this point object is guaranteed to be a Locale instance\r\n\t\tLocale locale = (Locale) object;\r\n\t\tStringBuilder builder = new StringBuilder(5);\r\n\t\tbuilder.append(locale.getLanguage());\r\n\t\tbuilder.append('-');\r\n\t\tbuilder.append(locale.getCountry());\r\n\t\treturn builder.toString();\r\n\t}", "private String toIndentedString(java.lang.Object o) {\n if (o == null) { return \"null\"; }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.6191645", "0.5971326", "0.596327", "0.5886538", "0.5864826", "0.57683414", "0.5692738", "0.5479733", "0.543496", "0.534623", "0.5303871", "0.52823466", "0.5245913", "0.5243227", "0.523543", "0.52255523", "0.5184642", "0.5159944", "0.515852", "0.5139854", "0.5137844", "0.5135475", "0.5119641", "0.50876373", "0.5083283", "0.50767785", "0.50745034", "0.50745034", "0.50745034", "0.50745034", "0.50673956", "0.50646466", "0.50646114", "0.5011706", "0.4995162", "0.49805838", "0.49707937", "0.4963554", "0.49132055", "0.49029988", "0.48978814", "0.48885834", "0.48854303", "0.48769364", "0.48730177", "0.4858415", "0.4857801", "0.48388627", "0.4837856", "0.4835319", "0.481094", "0.48036748", "0.47988722", "0.47929233", "0.47927815", "0.47780108", "0.47775432", "0.4771313", "0.47430435", "0.4738938", "0.47212774", "0.47205886", "0.47156945", "0.47146037", "0.46940947", "0.46933338", "0.4684096", "0.46758783", "0.4667553", "0.46624538", "0.46504238", "0.46426183", "0.46327063", "0.4619102", "0.46096954", "0.46089292", "0.46006122", "0.45975944", "0.45935473", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45902655", "0.45831266", "0.458086", "0.45794934", "0.45794177", "0.4574592" ]
0.50187194
33
Converts the styles from the given object to text. The styles are CSS style names with their associated value.
public static native JsArrayString generateStyleAsArray(StyleConfig config, JsArrayString buffer) /*-{ var configJS = config.@com.ait.toolkit.core.client.JsObject::getJsObj()(); return $wnd.Ext.DomHelper.generateStyle(configJS, buffer); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String format(Object object){\n return \"<font\"+(this == NO_COLOR ? \"\" : \" color=#\"+getHexValue())+\">\"+object+\"</font>\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStyle() != null)\n sb.append(\"Style: \").append(getStyle());\n sb.append(\"}\");\n return sb.toString();\n }", "private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }", "private String getStyleAttribute() {\n StringBuilder sb = new StringBuilder();\n\n styleAttribute.forEach((key, value) -> {\n sb.append(key).append(\":\").append(value).append(\";\");\n });\n\n return sb.toString();\n }", "public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}", "public static String getCssString(XMLDataObject xml) {\n\n //Style string\n StringBuilder styleString = new StringBuilder();\n\n //Get the list of properties\n List<XMLDataObject> objects = xml.getList(\"property\");\n\n //Loop through properties to get the style\n for (XMLDataObject object : objects) {\n\n String value = object.getTextContent();\n String name = object.getString(\"@name\");\n\n if (STYLE_TO_CSS.containsKey(name)) {\n name = STYLE_TO_CSS.get(name);\n styleString.append(name).append(\":\").append(value).append(\";\");\n }\n }\n\n String css = styleString.toString();\n return (css.length() == 0) ? null : css;\n }", "public mxStyleSheet getTextStyle()\n\t{\n\t\treturn textStyle;\n\t}", "public String toString() {\n \t\treturn getCssText();\n \t}", "public TextStyle getStyle(\n )\n {return style;}", "public FontStyle getStyle();", "public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }", "public TextStyle getTextStyle() {\n return this.textStyle;\n }", "public List<CSSProperty> mapCSSProperty(String elementKey, Object object) {\n\t\t\tList<CSSProperty> properties = new ArrayList<CSSProperty>();\n\n\t\t\tswitch (elementKey) {\n\t\t\tcase \"alignment\":\n\t\t\t\tproperties.add(createProperty(\"text-align\", (String) object));\n\t\t\t\tbreak;\n\t\t\tcase \"margin\":\n\t\t\t\tproperties.addAll(mapMargin((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"size\":\n\t\t\t\tproperties.addAll(mapCSSSize((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"position\":\n\t\t\t\tproperties.add(createProperty(\"float\", \"left\"));\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"padding\":\n\t\t\t\tproperties.addAll(mapCSSPadding((JSONObject) object));\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tproperties.add(createProperty(elementKey, (String) object));\n\t\t\t}\n\t\t\treturn properties;\n\t\t}", "private void writeObject(final ObjectOutputStream oos) throws IOException {\n oos.defaultWriteObject();\n StyleContext.writeAttributeSet(oos, styles);\n }", "public void setStyles(String text) {\n getState().styles = text;\n }", "public String toString() {\n\tString\tstrStyle;\n\n\tif (isBold()) {\n\t strStyle = isItalic() ? \"bolditalic\" : \"bold\";\n\t} else {\n\t strStyle = isItalic() ? \"italic\" : \"plain\";\n\t}\n\n\treturn getClass().getName() + \"[family=\" + getFamily() + \",name=\" + name + \",style=\" +\n\t strStyle + \",size=\" + size + \"]\";\n }", "public String toCSS(){\n return new StringBuilder()\n .append(\"display:\")\n .append(this.toString().replace(\"_\", \"-\"))\n .append(\";\").toString();\n }", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\tHorizontalMappingStrategyDef horizontalMappingStrategyDef = (HorizontalMappingStrategyDef) object;\r\n\t\treturn getString(\"_UI_HorizontalMappingStrategyDef_type\") + \" \"\r\n\t\t\t\t+ horizontalMappingStrategyDef.isForceNamesWithID();\r\n\t}", "public Object convertTo(String value) {\r\n return toFont(value);\r\n }", "public abstract String getStyle();", "@Override\n\tpublic String getText(Object object) {\n\t\t// We use the pretty-printer in the edge implementation:\n\t\treturn ((Edge) object).toString();\n\t}", "public String getStyle() {\r\n return style;\r\n }", "public T caseUbqColorStyle(UbqColorStyle object) {\r\n\t\treturn null;\r\n\t}", "public T caseUbqFontStyle(UbqFontStyle object) {\r\n\t\treturn null;\r\n\t}", "Map<String, String> styles(String group);", "public String getCssText() {\n \t\treturn getCssText(unitType, floatValue);\n \t}", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "Style getStyle();", "public List<ResultDisplay.StyledText> getStyledText() {\n List<ResultDisplay.StyledText> ans = new ArrayList<>();\n for (Node node : getRootNode().getChildren()) {\n if (node instanceof Text) {\n Text tNode = (Text) node;\n ans.add(new ResultDisplay.StyledText(tNode.getText(), tNode.getStyleClass().get(0)));\n }\n }\n return ans;\n }", "public static native String generateStyle(StyleConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\treturn $wnd.Ext.DomHelper.generateStyle(configJS);\r\n\t}-*/;", "StyleValue getCSSValue();", "private static TextStyle styleString(String color) {\n switch (color.toLowerCase().trim()) {\n case \"bold\":\n case \"&l\":\n return TextStyles.BOLD;\n case \"italic\":\n case \"&o\":\n return TextStyles.ITALIC;\n case \"random\":\n case \"obfuscated\":\n case \"magic\":\n case \"&k\":\n return TextStyles.OBFUSCATED;\n case \"strike\":\n case \"strikethru\":\n case \"strikethrough\":\n case \"&m\":\n return TextStyles.STRIKETHROUGH;\n case \"reset\":\n case \"&r\":\n return TextStyles.RESET;\n case \"underline\":\n case \"&n\":\n return TextStyles.UNDERLINE;\n default:\n return TextStyles.NONE;\n }\n }", "public String getStyle() {\n\t\treturn style;\n\t}", "@Override\n\tpublic String getText(Object object)\n\t{\n\t\tCadence cadence = (Cadence)object;\n\t\treturn getString(\"_UI_Cadence_type\") + \" \" + cadence.getFrequency();\n\t}", "public StringItemStyle getStringStyle() {\r\n\t\treturn stringStyle;\r\n\t}", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\treturn super.getText(object);\r\n\t}", "public String getStyles() {\n return getState().styles;\n }", "public native final String style(String name) /*-{\n\t\treturn this.style(name);\n\t}-*/;", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((Cell)object).getCellID();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Cell_type\") :\n\t\t\tgetString(\"_UI_Cell_type\") + \" \" + label;\n\t}", "protected CellStyle getTextCellStyle(final Workbook workbook) {\n final CellStyle myStyle = ExportExcelUtils.makeFullBorderStyle(workbook);\n myStyle.setAlignment(CellStyle.ALIGN_LEFT);\n return myStyle;\n }", "public void buildTextStyle( ITextContent text, StringBuffer styleBuffer,\n \t\t\tint display, String url )\n \t{\n \t\tIStyle style = text.getStyle( );\n \t\t// check 'can-shrink' property\n \t\thandleShrink( display,\n \t\t\t\tstyle,\n \t\t\t\ttext.getHeight( ),\n \t\t\t\ttext.getWidth( ),\n \t\t\t\tstyleBuffer );\n \n \t\tif ( url != null )\n \t\t{\n \t\t\tsetDisplayProperty( display, HTMLEmitterUtil.DISPLAY_BLOCK\n \t\t\t\t\t| HTMLEmitterUtil.DISPLAY_INLINE_BLOCK, styleBuffer );\n \t\t\tAttributeBuilder.checkHyperlinkTextDecoration( style, styleBuffer );\n \t\t}\n \t\telse\n \t\t{\n \t\t\tsetDisplayProperty( display,\n \t\t\t\t\tHTMLEmitterUtil.DISPLAY_INLINE_BLOCK,\n \t\t\t\t\tstyleBuffer );\n \t\t}\n \n \t\t// build the text-align\n \t\tString textAlign = text.getComputedStyle( ).getTextAlign( );\n \t\tif ( textAlign != null )\n \t\t{\n \t\t\tstyleBuffer.append( \" text-align:\" );\n \t\t\tstyleBuffer.append( textAlign );\n \t\t\tstyleBuffer.append( \";\" );\n \t\t}\n \t\tbuildStyle( text, styleBuffer );\n \t}", "public String getPageStyle()\n {\n if (this.pageStyle == null) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<style type='text/css'>\\n\");\n sb.append(\" a:hover { color:#00CC00; }\\n\");\n sb.append(\" h1 { font-family:Arial; font-size:16pt; white-space:pre; }\\n\");\n sb.append(\" h2 { font-family:Arial; font-size:14pt; white-space:pre; }\\n\");\n sb.append(\" h3 { font-family:Arial; font-size:12pt; white-space:pre; }\\n\");\n sb.append(\" h4 { font-family:Arial; font-size:10pt; white-space:pre; }\\n\");\n sb.append(\" form { margin-top:0px; margin-bottom:0px; }\\n\");\n sb.append(\" body { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" td { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input:focus { background-color: #FFFFC9; }\\n\");\n sb.append(\" select { font-size:7pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" select:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" textarea { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" textarea:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" .\"+CommonServlet.CSS_TEXT_INPUT+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#FFFFFF; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_TEXT_READONLY+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#E7E7E7; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_FRAME[1]+\" { padding:5px; width:300px; border-style:double; border-color:#555555; background-color:white; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_MESSAGE+\" { padding-top:5px; font-style:oblique; text-align:center; }\\n\");\n sb.append(\"</style>\\n\");\n this.pageStyle = sb.toString();\n } \n return this.pageStyle;\n }", "TextStyle and(TextStyle... styles);", "@Override\n\tprotected TextAttribute createTextAttribute(String[] stylePrefs) {\n\t\tint fontModifier = SWT.NORMAL;\n\t\tif (Boolean.valueOf(stylePrefs[2]).booleanValue()) { // bold\n\t\t\tfontModifier |= SWT.BOLD;\n\t\t}\n\t\tif (Boolean.valueOf(stylePrefs[3]).booleanValue()) { // italic\n\t\t\tfontModifier |= SWT.ITALIC;\n\t\t}\n\t\tif (Boolean.valueOf(stylePrefs[4]).booleanValue()) { // strikethrough\n\t\t\tfontModifier |= TextAttribute.STRIKETHROUGH;\n\t\t}\n\t\tif (Boolean.valueOf(stylePrefs[5]).booleanValue()) { // underline\n\t\t\tfontModifier |= TextAttribute.UNDERLINE;\n\t\t}\n\t\treturn new TextAttribute(EditorUtility.getColor(ColorHelper.toRGB(stylePrefs[0])),\n\t\t\t\tEditorUtility.getColor(ColorHelper.toRGB(stylePrefs[1])), fontModifier);\n\t}", "protected static Style getStyle(XMLDataObject xml) {\n\n Style style = new Style();\n style.setName(xml.getString(\"@name\"));\n style.setValue(getCssString(xml));\n\n return style;\n }", "public Encoding setStyle(String value) {\n\t\tstyle = value;\n\t\treturn this;\n\t}", "@Override\n\tpublic AttributedCharacterIterator formatToCharacterIterator(final Object obj) {\n\t\tCalendar cal = calendar;\n\t\tif (obj instanceof Calendar) {\n\t\t\tcal = (Calendar) obj;\n\t\t} else if (obj instanceof Date) {\n\t\t\tcalendar.setTime((Date) obj);\n\t\t} else if (obj instanceof Number) {\n\t\t\tcalendar.setTimeInMillis(((Number) obj).longValue());\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot format given Object as a Date\");\n\t\t}\n\t\tStringBuffer toAppendTo = new StringBuffer();\n\t\tFieldPosition pos = new FieldPosition(0);\n\t\tList<FieldPosition> attributes = new ArrayList<FieldPosition>();\n\t\tformat(cal, capitalizationSetting, toAppendTo, pos, attributes);\n\n\t\tAttributedString as = new AttributedString(toAppendTo.toString());\n\n\t\t// add DateFormat field attributes to the AttributedString\n\t\tfor (int i = 0; i < attributes.size(); i++) {\n\t\t\tFieldPosition fp = attributes.get(i);\n\t\t\tFormat.Field attribute = fp.getFieldAttribute();\n\t\t\tas.addAttribute(attribute, attribute, fp.getBeginIndex(), fp.getEndIndex());\n\t\t}\n\t\t// return the CharacterIterator from AttributedString\n\t\treturn as.getIterator();\n\t}", "public String getStyleName() {\r\n return getAttributeAsString(\"styleName\");\r\n }", "AttributedCharacterIterator formatToCharacterIterator(Object obj) {\n CharacterIteratorFieldDelegate delegate = new CharacterIteratorFieldDelegate();\n StringBuffer sb = new StringBuffer();\n\n if (obj instanceof Long) {\n format(((Long) obj).longValue(), sb, delegate);\n } else if (obj == null) {\n throw new NullPointerException(\"formatToCharacterIterator must be passed non-null object\");\n } else if (obj instanceof Double) {\n format(((Double) obj).doubleValue(), sb, delegate);\n } else {\n throw new IllegalArgumentException(\"Cannot format given Object as a Number\");\n }\n return delegate.getIterator(sb.toString());\n }", "void setStyle(String style);", "public void handleStyle(HtmlObjects.Style t)\n {\n }", "public interface StyleSource {\n /**\n * Returns the appropriate style for the given style-group and style-name, or {@code null} if missing.\n *\n * @param group the group\n * @param name the style name\n * @return the style\n */\n @Nullable\n String get(String group, String name);\n\n /**\n * Set a specific style in a style-group.\n *\n * @param group the group\n * @param name the style name\n * @param style the style to set\n */\n void set(String group, String name, String style);\n\n /**\n * Remove all styles for given style-group.\n *\n * @param group the group\n */\n void remove(String group);\n\n /**\n * Remove a specific style from style-group.\n *\n * @param group the group\n * @param name the style name to remove\n */\n void remove(String group, String name);\n\n /**\n * Clear all styles.\n */\n void clear();\n\n /**\n * Returns configured style-group names.\n *\n * @return Immutable collection.\n */\n Iterable<String> groups();\n\n /**\n * Returns configured styles for given style-group.\n *\n * @param group the style group\n * @return Immutable map.\n */\n Map<String, String> styles(String group);\n}", "@Override\n public String getPreviewString(Object value) {\n assert value instanceof Font;\n Font fontVal = (Font) value;\n if (isIndeterminate()) {\n return \"-\"; //NOI18N\n } else {\n String size = EditorUtils.valAsStr(fontVal.getSize());\n return fontVal.getFamily() + \" \" + size + \"px\" //NOI18N\n + (!fontVal.getName().equals(fontVal.getFamily()) && !\"Regular\".equals(fontVal.getStyle()) ? //NOI18N\n \" (\" + fontVal.getStyle() + \")\" : \"\"); //NOI18N\n }\n }", "@Override\n\tpublic String getText(Object object) {\n\t\tShape labelValue = ((Line)object).getShape();\n\t\tString label = labelValue == null ? null : labelValue.toString();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Line_type\") :\n\t\t\tgetString(\"_UI_Line_type\") + \" \" + label;\n\t}", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((SecuritySchema)object).getName();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_SecuritySchema_type\") :\n\t\t\tgetString(\"_UI_SecuritySchema_type\") + \" \" + label;\n\t}", "public static String toCSSString(String inText)\n {\n return inText.replaceAll(\"\\\\W\", \"\");\n }", "public static String deCamelCaseStyle(String style){\n\t\t\n\t\tString property = \"\";\n\t\tfor (int j = 0; j < style.length(); j++) {\n\t\t\tchar character = style.charAt(j);\n\t\t\tif (Character.isUpperCase(character)) {\n\t\t\t\tproperty += \"-\" + Character.toLowerCase(character);\n\t\t\t} else {\n\t\t\t\tproperty += character;\n\t\t\t}\n\t\t}\n\t\treturn property;\n\t}", "public final String getStyleAttribute() {\n return getAttributeValue(\"style\");\n }", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((Bean)object).getClass_();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Bean_type\") :\n\t\t\tgetString(\"_UI_Bean_type\") + \" \" + label;\n\t}", "public void setStyle(String st){\n style = st;\n }", "@Override\r\n public @Nullable String getFormattedText(RenderContext ctx)\r\n {\n String oorPrefix = getOORPrefix(ctx);\r\n String formattedValue = \"\";\r\n Object value = getDisplayValue(ctx);\r\n if (null != value)\r\n {\r\n formattedValue = super.getFormattedText(ctx);\r\n if (null == formattedValue)\r\n formattedValue = ConvertUtils.convert(value);\r\n }\r\n assert null != formattedValue;\r\n return oorPrefix + formattedValue;\r\n }", "private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedStyle(wb);\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n style.setFont(headerFont);\n styles.put(\"header\", style);\n\n style = createBorderedStyle(wb);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n styles.put(\"body\", style);\n\n return styles;\n }", "private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}", "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }", "STYLE createSTYLE();", "public static ScriptStyle getStyle(int val)\r\n/* 31: */ {\r\n/* 32: 92 */ for (int i = 0; i < styles.length; i++) {\r\n/* 33: 94 */ if (styles[i].getValue() == val) {\r\n/* 34: 96 */ return styles[i];\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37:100 */ return NORMAL_SCRIPT;\r\n/* 38: */ }", "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "public T caseUbqWidgetStyle(UbqWidgetStyle object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public String getCSSStyle() {\n return null;\n }", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "public String format(Object value);", "private static final void buildSpannedFromTextCSSNode(\n WXTextDomObject textCSSNode, SpannableStringBuilder sb,\n List<SetSpanOperation> ops) {\n int start = sb.length();\n if (textCSSNode.mText != null) {\n sb.append(textCSSNode.mText);\n }\n int end = sb.length();\n if (end >= start) {\n if (textCSSNode.mTextDecoration == WXTextDecoration.UNDERLINE) {\n ops.add(new SetSpanOperation(start, end,\n new UnderlineSpan()));\n }\n if (textCSSNode.mTextDecoration == WXTextDecoration.LINETHROUGH) {\n ops.add(new SetSpanOperation(start, end,\n new StrikethroughSpan()));\n }\n if (textCSSNode.mIsColorSet) {\n ops.add(new SetSpanOperation(start, end,\n new ForegroundColorSpan(textCSSNode.mColor)));\n }\n if (textCSSNode.mIsBackgroundColorSet) {\n ops.add(new SetSpanOperation(start, end,\n new BackgroundColorSpan(textCSSNode.mBackgroundColor)));\n }\n if (textCSSNode.mFontSize != UNSET) {\n ops.add(new SetSpanOperation(start, end, new AbsoluteSizeSpan(\n textCSSNode.mFontSize)));\n }\n if (textCSSNode.mFontStyle != UNSET\n || textCSSNode.mFontWeight != UNSET\n || textCSSNode.mFontFamily != null) {\n ops.add(new SetSpanOperation(start, end, new WXCustomStyleSpan(\n textCSSNode.mFontStyle, textCSSNode.mFontWeight,\n textCSSNode.mFontFamily)));\n }\n ops.add(new SetSpanOperation(start, end, new WXTagSpan(\n textCSSNode.ref)));\n }\n }", "@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((CompositeNode)object).getName();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_CompositeNode_type\") :\n\t\t\tgetString(\"_UI_CompositeNode_type\") + \" \" + label;\n\t}", "public ColorStyle getColorStyle(int i){\n\t\tif(i >=0 && i < styles.size()) return styles.get(i);\n\t\treturn null;\n\t}", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o) {\n\t\tif (o == null) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn o.toString().replace(\"\\n\", \"\\n \");\n\t}", "private String toIndentedString(java.lang.Object o)\n {\n if (o == null) { return \"null\"; }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "@Override\r\n\tpublic String asString(Object object) {\r\n\t\t// at this point object is guaranteed to be a Locale instance\r\n\t\tLocale locale = (Locale) object;\r\n\t\tStringBuilder builder = new StringBuilder(5);\r\n\t\tbuilder.append(locale.getLanguage());\r\n\t\tbuilder.append('-');\r\n\t\tbuilder.append(locale.getCountry());\r\n\t\treturn builder.toString();\r\n\t}", "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <nauderuan777@gmail.com>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }", "private String toIndentedString(java.lang.Object o) {\n if (o == null) { return \"null\"; }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.6192964", "0.5971011", "0.5963636", "0.58859897", "0.5863777", "0.5767775", "0.56915915", "0.54792184", "0.54336977", "0.5345004", "0.5302359", "0.5281142", "0.5245508", "0.5244025", "0.5234758", "0.52258325", "0.51845723", "0.51613885", "0.51576495", "0.5139214", "0.51382524", "0.5134795", "0.512115", "0.5088417", "0.50831354", "0.50760174", "0.507381", "0.507381", "0.507381", "0.507381", "0.5066804", "0.5063612", "0.50623757", "0.5018607", "0.50103223", "0.49948153", "0.49799028", "0.49715972", "0.49633047", "0.49142867", "0.4901849", "0.48976487", "0.48897126", "0.48847163", "0.4876098", "0.48725814", "0.48576564", "0.4857337", "0.48375905", "0.48371685", "0.4835362", "0.48107523", "0.48041305", "0.47992492", "0.47921747", "0.47917894", "0.47780588", "0.47775337", "0.47444627", "0.47390842", "0.47215736", "0.47194242", "0.47163987", "0.4716295", "0.46952954", "0.469223", "0.46830565", "0.46751547", "0.46662876", "0.46617007", "0.4652235", "0.4644121", "0.46326223", "0.46178043", "0.46106145", "0.46078426", "0.4601805", "0.45976093", "0.4592694", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45918536", "0.45846912", "0.4581146", "0.45809752", "0.45801744", "0.45760748" ]
0.4770911
58
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(String id, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertAfter(id, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "void addAfter(T target, T element);", "public Node insertAfter(Node node);", "public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "public static native Element insertAfter(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, configJS);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public ExtElement insertAfter(String element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "void addBefore(T target, T element);", "public ExtElement insertAfter(ExtElement element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addAfter(Element elem) {\n elem.setNext(this.getNext());\n elem.setPrev(this);\n this.getNext().setPrev(elem);\n this.setNext(elem);\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public ExtElement insertAfter(String element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertAfter(String element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "public ExtElement insertAfter(ExtElement element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "Node insertBefore(Node newChild, Node refChild);", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ExtElement insertAfter(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(int element, int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\n\t\t/** finding the given node **/\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\n\t\t/** If found the given node, add after the the particular element */\n\t\tif(refNode != null){\n\t\t\t//add element after the target node\n\t\t\tNode nd = new Node();\n\t\t\tnd.setElement(element);\n\t\t\tnd.setNext(tmp.getNext());\n\t\t\tif(tmp == tail){\n\t\t\t\ttail = nd;\n\t\t\t}\n\t\t\ttmp.setNext(nd);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the element:\" + after);\n\t\t}\n\t}", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}", "public void insert(T element);", "public Node insertBefore(Node node);", "Form addElement(Element element);", "@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}", "public void insert(Object element1, Object element2, Object element3);", "int placeElement(String elementName, Point2D startCoordinates);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}", "void append(E element);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static Node addAfter(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node before = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath [\" + xPath + \"] found\", before);\r\n Node parent = before.getParentNode();\r\n parent.insertBefore(newNode, before.getNextSibling());\r\n return node;\r\n }", "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "@Override\n public abstract void addToXmlElement(Element element);", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}", "public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void append(T element);", "public void append(T element);", "void addElement(FormElement elt);", "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }", "public void append(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t}\t\r\n\telse {\r\n\t\t_last.setNext(e);\r\n\t\t_last = e;\r\n\t}\r\n\te.setNext(null);\r\n}", "public void prepend(T element);", "public void insert(T element)\r\n\t{\n\t\tif (size >= data.length - 1)\r\n\t\t{\r\n\t\t\tresize();\r\n\t\t}\r\n\t\t\r\n\t\t//add the new element\r\n\t\tsize++;\r\n\t\tdata[size] = element;\r\n\t\tswim(size);\r\n\t}", "public void insert(int index, T element);", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "void appendChild(Object child);", "public abstract Position<E> insertRightSibling(Position<E> p, E e);", "public void newElement() {\r\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "public void addSiblingAfterNode(Node siblingNode, String nodeToAdd) throws Exception {\n if (siblingNode == null || nodeToAdd == null)\n return;\n if (fileContents == null) {\n fileContents = convertFileToStringArray(m_file);\n }\n\n Integer endTagLineNumber = getEndTagLineNumber(siblingNode);\n\n String endLine = fileContents[endTagLineNumber - 1];\n String newLine = endLine + getIndentation(siblingNode) + nodeToAdd + FILE_NEW_LINE;\n if (bDebug) {\n System.out.println(\"Old line: \" + endLine);\n System.out.println(\"New line: \" + newLine);\n }\n fileContents[endTagLineNumber - 1] = newLine;\n\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "void prepend(T element);", "public static Element insertElement(final Text textNode, final Element element, final int startIndex, final int endIndex) throws DOMException {\n\t\tfinal Text splitTextNode = splitText(textNode, startIndex, endIndex); //split the text node into pieces\n\t\tfinal Element parentElement = (Element)splitTextNode.getParentNode(); //get the text node's parent\n\t\tparentElement.replaceChild(element, splitTextNode); //replace the split text node with the element that will enclose it\n\t\telement.appendChild(splitTextNode); //add the split text node to the given element\n\t\treturn element; //return the inserted enclosing element\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size() - 1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "public void insertAfter(String insertData, String findData) {\n\t\t// write you code for insertAfter using the specification above\n\t\tNode compare = new Node(findData);\n\t\tNode nodref = head;\n\t\twhile (nodref != null){\n\t\t\tif (nodref.equals(compare)){\n\t\t\t\tNode adder = new Node(insertData);\n\t\t\t\tadder.next = nodref.next;\n\t\t\t\tnodref.next = adder; \n\t\t\t\tnumElements++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodref = nodref.next;\n\t\t}\n\t\treturn;\n\t}", "public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size()-1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }", "public void insertAtIndex(E toInsert, int atIndex) {\n\t\tfor(int x = numElements; x > atIndex; x--) {\n\t\t\telements[x] = elements[x-1];\n\t\t}\n\t\telements[atIndex] = toInsert;\n\t\tnumElements++;\n\t\tresize();\n\t}", "Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;", "public Node appendNode(Node node);" ]
[ "0.7457581", "0.735522", "0.71832824", "0.69462556", "0.6902478", "0.67899746", "0.6748791", "0.64317465", "0.6378556", "0.6296787", "0.6294809", "0.6225522", "0.6203853", "0.620259", "0.616527", "0.61410207", "0.6119651", "0.6036262", "0.6015271", "0.59377986", "0.59277713", "0.5893633", "0.58661586", "0.58657414", "0.5805742", "0.5802529", "0.5792508", "0.57562745", "0.57525116", "0.5748442", "0.5698304", "0.5695102", "0.5680503", "0.56688863", "0.5647928", "0.56256413", "0.5597764", "0.5590627", "0.55892026", "0.5565047", "0.55644786", "0.5554791", "0.55406475", "0.5535149", "0.5533466", "0.5527172", "0.55268484", "0.55078214", "0.550184", "0.5498014", "0.548567", "0.5466379", "0.54658103", "0.5456423", "0.5444487", "0.54230046", "0.54230046", "0.5407921", "0.53862023", "0.5385784", "0.5379043", "0.53779763", "0.53680533", "0.5360684", "0.5356741", "0.53553456", "0.535096", "0.5346273", "0.5339835", "0.5337348", "0.53334916", "0.53300166", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5318159", "0.5310769", "0.5308937", "0.53048724", "0.53048575", "0.53037226", "0.5288196", "0.5283425", "0.5276978", "0.5263812", "0.5259495", "0.5257046", "0.5255873", "0.525535", "0.5249857", "0.5247344", "0.52314705", "0.5229083", "0.52281404", "0.5220809", "0.52204657" ]
0.64720786
7
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(String id, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertAfter(id, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "void addAfter(T target, T element);", "public Node insertAfter(Node node);", "public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "public static native Element insertAfter(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, rawHtml);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public ExtElement insertAfter(String element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "void addBefore(T target, T element);", "public ExtElement insertAfter(ExtElement element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addAfter(Element elem) {\n elem.setNext(this.getNext());\n elem.setPrev(this);\n this.getNext().setPrev(elem);\n this.setNext(elem);\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public ExtElement insertAfter(String element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertAfter(String element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "public ExtElement insertAfter(ExtElement element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "Node insertBefore(Node newChild, Node refChild);", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ExtElement insertAfter(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(int element, int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\n\t\t/** finding the given node **/\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\n\t\t/** If found the given node, add after the the particular element */\n\t\tif(refNode != null){\n\t\t\t//add element after the target node\n\t\t\tNode nd = new Node();\n\t\t\tnd.setElement(element);\n\t\t\tnd.setNext(tmp.getNext());\n\t\t\tif(tmp == tail){\n\t\t\t\ttail = nd;\n\t\t\t}\n\t\t\ttmp.setNext(nd);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the element:\" + after);\n\t\t}\n\t}", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}", "public void insert(T element);", "public Node insertBefore(Node node);", "Form addElement(Element element);", "@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}", "public void insert(Object element1, Object element2, Object element3);", "int placeElement(String elementName, Point2D startCoordinates);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}", "void append(E element);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static Node addAfter(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node before = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath [\" + xPath + \"] found\", before);\r\n Node parent = before.getParentNode();\r\n parent.insertBefore(newNode, before.getNextSibling());\r\n return node;\r\n }", "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "@Override\n public abstract void addToXmlElement(Element element);", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}", "public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void append(T element);", "public void append(T element);", "void addElement(FormElement elt);", "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }", "public void append(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t}\t\r\n\telse {\r\n\t\t_last.setNext(e);\r\n\t\t_last = e;\r\n\t}\r\n\te.setNext(null);\r\n}", "public void prepend(T element);", "public void insert(T element)\r\n\t{\n\t\tif (size >= data.length - 1)\r\n\t\t{\r\n\t\t\tresize();\r\n\t\t}\r\n\t\t\r\n\t\t//add the new element\r\n\t\tsize++;\r\n\t\tdata[size] = element;\r\n\t\tswim(size);\r\n\t}", "public void insert(int index, T element);", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "void appendChild(Object child);", "public abstract Position<E> insertRightSibling(Position<E> p, E e);", "public void newElement() {\r\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "public void addSiblingAfterNode(Node siblingNode, String nodeToAdd) throws Exception {\n if (siblingNode == null || nodeToAdd == null)\n return;\n if (fileContents == null) {\n fileContents = convertFileToStringArray(m_file);\n }\n\n Integer endTagLineNumber = getEndTagLineNumber(siblingNode);\n\n String endLine = fileContents[endTagLineNumber - 1];\n String newLine = endLine + getIndentation(siblingNode) + nodeToAdd + FILE_NEW_LINE;\n if (bDebug) {\n System.out.println(\"Old line: \" + endLine);\n System.out.println(\"New line: \" + newLine);\n }\n fileContents[endTagLineNumber - 1] = newLine;\n\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "void prepend(T element);", "public static Element insertElement(final Text textNode, final Element element, final int startIndex, final int endIndex) throws DOMException {\n\t\tfinal Text splitTextNode = splitText(textNode, startIndex, endIndex); //split the text node into pieces\n\t\tfinal Element parentElement = (Element)splitTextNode.getParentNode(); //get the text node's parent\n\t\tparentElement.replaceChild(element, splitTextNode); //replace the split text node with the element that will enclose it\n\t\telement.appendChild(splitTextNode); //add the split text node to the given element\n\t\treturn element; //return the inserted enclosing element\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size() - 1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "public void insertAfter(String insertData, String findData) {\n\t\t// write you code for insertAfter using the specification above\n\t\tNode compare = new Node(findData);\n\t\tNode nodref = head;\n\t\twhile (nodref != null){\n\t\t\tif (nodref.equals(compare)){\n\t\t\t\tNode adder = new Node(insertData);\n\t\t\t\tadder.next = nodref.next;\n\t\t\t\tnodref.next = adder; \n\t\t\t\tnumElements++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodref = nodref.next;\n\t\t}\n\t\treturn;\n\t}", "public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size()-1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }", "public void insertAtIndex(E toInsert, int atIndex) {\n\t\tfor(int x = numElements; x > atIndex; x--) {\n\t\t\telements[x] = elements[x-1];\n\t\t}\n\t\telements[atIndex] = toInsert;\n\t\tnumElements++;\n\t\tresize();\n\t}", "Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;", "public Node appendNode(Node node);" ]
[ "0.7457581", "0.735522", "0.71832824", "0.69462556", "0.6902478", "0.67899746", "0.6748791", "0.64720786", "0.6378556", "0.6296787", "0.6294809", "0.6225522", "0.6203853", "0.620259", "0.616527", "0.61410207", "0.6119651", "0.6036262", "0.6015271", "0.59377986", "0.59277713", "0.5893633", "0.58661586", "0.58657414", "0.5805742", "0.5802529", "0.5792508", "0.57562745", "0.57525116", "0.5748442", "0.5698304", "0.5695102", "0.5680503", "0.56688863", "0.5647928", "0.56256413", "0.5597764", "0.5590627", "0.55892026", "0.5565047", "0.55644786", "0.5554791", "0.55406475", "0.5535149", "0.5533466", "0.5527172", "0.55268484", "0.55078214", "0.550184", "0.5498014", "0.548567", "0.5466379", "0.54658103", "0.5456423", "0.5444487", "0.54230046", "0.54230046", "0.5407921", "0.53862023", "0.5385784", "0.5379043", "0.53779763", "0.53680533", "0.5360684", "0.5356741", "0.53553456", "0.535096", "0.5346273", "0.5339835", "0.5337348", "0.53334916", "0.53300166", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5318159", "0.5310769", "0.5308937", "0.53048724", "0.53048575", "0.53037226", "0.5288196", "0.5283425", "0.5276978", "0.5263812", "0.5259495", "0.5257046", "0.5255873", "0.525535", "0.5249857", "0.5247344", "0.52314705", "0.5229083", "0.52281404", "0.5220809", "0.52204657" ]
0.64317465
8
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(Element elem, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertAfter(parent, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "void addAfter(T target, T element);", "public Node insertAfter(Node node);", "public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "public static native Element insertAfter(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, rawHtml);\r\n\t}-*/;", "public static native Element insertAfter(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, configJS);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public ExtElement insertAfter(String element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "void addBefore(T target, T element);", "public ExtElement insertAfter(ExtElement element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addAfter(Element elem) {\n elem.setNext(this.getNext());\n elem.setPrev(this);\n this.getNext().setPrev(elem);\n this.setNext(elem);\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public ExtElement insertAfter(String element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertAfter(String element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "public ExtElement insertAfter(ExtElement element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "Node insertBefore(Node newChild, Node refChild);", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ExtElement insertAfter(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(int element, int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\n\t\t/** finding the given node **/\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\n\t\t/** If found the given node, add after the the particular element */\n\t\tif(refNode != null){\n\t\t\t//add element after the target node\n\t\t\tNode nd = new Node();\n\t\t\tnd.setElement(element);\n\t\t\tnd.setNext(tmp.getNext());\n\t\t\tif(tmp == tail){\n\t\t\t\ttail = nd;\n\t\t\t}\n\t\t\ttmp.setNext(nd);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the element:\" + after);\n\t\t}\n\t}", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}", "public void insert(T element);", "public Node insertBefore(Node node);", "Form addElement(Element element);", "@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}", "public void insert(Object element1, Object element2, Object element3);", "int placeElement(String elementName, Point2D startCoordinates);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}", "void append(E element);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static Node addAfter(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node before = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath [\" + xPath + \"] found\", before);\r\n Node parent = before.getParentNode();\r\n parent.insertBefore(newNode, before.getNextSibling());\r\n return node;\r\n }", "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "@Override\n public abstract void addToXmlElement(Element element);", "void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void append(T element);", "public void append(T element);", "void addElement(FormElement elt);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }", "public void append(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t}\t\r\n\telse {\r\n\t\t_last.setNext(e);\r\n\t\t_last = e;\r\n\t}\r\n\te.setNext(null);\r\n}", "public void prepend(T element);", "public void insert(T element)\r\n\t{\n\t\tif (size >= data.length - 1)\r\n\t\t{\r\n\t\t\tresize();\r\n\t\t}\r\n\t\t\r\n\t\t//add the new element\r\n\t\tsize++;\r\n\t\tdata[size] = element;\r\n\t\tswim(size);\r\n\t}", "public void insert(int index, T element);", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "void appendChild(Object child);", "public abstract Position<E> insertRightSibling(Position<E> p, E e);", "public void newElement() {\r\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "public void addSiblingAfterNode(Node siblingNode, String nodeToAdd) throws Exception {\n if (siblingNode == null || nodeToAdd == null)\n return;\n if (fileContents == null) {\n fileContents = convertFileToStringArray(m_file);\n }\n\n Integer endTagLineNumber = getEndTagLineNumber(siblingNode);\n\n String endLine = fileContents[endTagLineNumber - 1];\n String newLine = endLine + getIndentation(siblingNode) + nodeToAdd + FILE_NEW_LINE;\n if (bDebug) {\n System.out.println(\"Old line: \" + endLine);\n System.out.println(\"New line: \" + newLine);\n }\n fileContents[endTagLineNumber - 1] = newLine;\n\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "void prepend(T element);", "public static Element insertElement(final Text textNode, final Element element, final int startIndex, final int endIndex) throws DOMException {\n\t\tfinal Text splitTextNode = splitText(textNode, startIndex, endIndex); //split the text node into pieces\n\t\tfinal Element parentElement = (Element)splitTextNode.getParentNode(); //get the text node's parent\n\t\tparentElement.replaceChild(element, splitTextNode); //replace the split text node with the element that will enclose it\n\t\telement.appendChild(splitTextNode); //add the split text node to the given element\n\t\treturn element; //return the inserted enclosing element\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size() - 1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "public void insertAfter(String insertData, String findData) {\n\t\t// write you code for insertAfter using the specification above\n\t\tNode compare = new Node(findData);\n\t\tNode nodref = head;\n\t\twhile (nodref != null){\n\t\t\tif (nodref.equals(compare)){\n\t\t\t\tNode adder = new Node(insertData);\n\t\t\t\tadder.next = nodref.next;\n\t\t\t\tnodref.next = adder; \n\t\t\t\tnumElements++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodref = nodref.next;\n\t\t}\n\t\treturn;\n\t}", "public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size()-1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }", "public void insertAtIndex(E toInsert, int atIndex) {\n\t\tfor(int x = numElements; x > atIndex; x--) {\n\t\t\telements[x] = elements[x-1];\n\t\t}\n\t\telements[atIndex] = toInsert;\n\t\tnumElements++;\n\t\tresize();\n\t}", "public Node appendNode(Node node);", "Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;" ]
[ "0.74579996", "0.7354908", "0.69467425", "0.6902219", "0.67897624", "0.6748409", "0.6472298", "0.64321613", "0.63796306", "0.6296689", "0.62951934", "0.62261873", "0.6204297", "0.620289", "0.6164831", "0.6141787", "0.61198866", "0.60365486", "0.6015912", "0.5938026", "0.59283924", "0.5894506", "0.58677614", "0.5866029", "0.58061874", "0.58028156", "0.57920897", "0.5756414", "0.57517153", "0.5749181", "0.56986666", "0.56962264", "0.5680394", "0.56703734", "0.56490505", "0.5627053", "0.55977345", "0.5590733", "0.5589996", "0.55662537", "0.5564954", "0.5554681", "0.55414146", "0.55352485", "0.5533628", "0.55285543", "0.55275685", "0.5508805", "0.55024517", "0.5498776", "0.5486221", "0.5466412", "0.54661214", "0.5456123", "0.5445633", "0.54245204", "0.54245204", "0.54090416", "0.5386697", "0.5386422", "0.53787744", "0.5378325", "0.53688306", "0.536099", "0.5357201", "0.5356542", "0.5352428", "0.53474355", "0.5339774", "0.5339471", "0.5333405", "0.53298235", "0.532609", "0.532609", "0.532609", "0.532609", "0.532609", "0.532609", "0.532609", "0.53189504", "0.5311404", "0.53091764", "0.530545", "0.5304975", "0.53042364", "0.528933", "0.528414", "0.5277802", "0.5264416", "0.52597237", "0.5257323", "0.52560174", "0.52553314", "0.5250578", "0.52476573", "0.5232098", "0.5229458", "0.52290124", "0.52218944", "0.5221373" ]
0.7183496
2
Creates new Dom element(s) and inserts them after the specified element.
public static native Element insertAfter(Element elem, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertAfter(parent, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "void addAfter(T target, T element);", "public Node insertAfter(Node node);", "public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "public static native Element insertAfter(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, rawHtml);\r\n\t}-*/;", "public static native Element insertAfter(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, configJS);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public ExtElement insertAfter(String element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "void addBefore(T target, T element);", "public ExtElement insertAfter(ExtElement element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public void addAfter(Element elem) {\n elem.setNext(this.getNext());\n elem.setPrev(this);\n this.getNext().setPrev(elem);\n this.setNext(elem);\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public ExtElement insertAfter(String element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertAfter(String element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "public ExtElement insertAfter(ExtElement element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "Node insertBefore(Node newChild, Node refChild);", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "Element createElement();", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ExtElement insertAfter(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(int element, int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\n\t\t/** finding the given node **/\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\n\t\t/** If found the given node, add after the the particular element */\n\t\tif(refNode != null){\n\t\t\t//add element after the target node\n\t\t\tNode nd = new Node();\n\t\t\tnd.setElement(element);\n\t\t\tnd.setNext(tmp.getNext());\n\t\t\tif(tmp == tail){\n\t\t\t\ttail = nd;\n\t\t\t}\n\t\t\ttmp.setNext(nd);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the element:\" + after);\n\t\t}\n\t}", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}", "public void insert(T element);", "public Node insertBefore(Node node);", "Form addElement(Element element);", "@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}", "public void insert(Object element1, Object element2, Object element3);", "int placeElement(String elementName, Point2D startCoordinates);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}", "void append(E element);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static Node addAfter(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node before = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath [\" + xPath + \"] found\", before);\r\n Node parent = before.getParentNode();\r\n parent.insertBefore(newNode, before.getNextSibling());\r\n return node;\r\n }", "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "@Override\n public abstract void addToXmlElement(Element element);", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}", "public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void append(T element);", "public void append(T element);", "void addElement(FormElement elt);", "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }", "public void append(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t}\t\r\n\telse {\r\n\t\t_last.setNext(e);\r\n\t\t_last = e;\r\n\t}\r\n\te.setNext(null);\r\n}", "public void prepend(T element);", "public void insert(T element)\r\n\t{\n\t\tif (size >= data.length - 1)\r\n\t\t{\r\n\t\t\tresize();\r\n\t\t}\r\n\t\t\r\n\t\t//add the new element\r\n\t\tsize++;\r\n\t\tdata[size] = element;\r\n\t\tswim(size);\r\n\t}", "public void insert(int index, T element);", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "void appendChild(Object child);", "public abstract Position<E> insertRightSibling(Position<E> p, E e);", "public void newElement() {\r\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "public void addSiblingAfterNode(Node siblingNode, String nodeToAdd) throws Exception {\n if (siblingNode == null || nodeToAdd == null)\n return;\n if (fileContents == null) {\n fileContents = convertFileToStringArray(m_file);\n }\n\n Integer endTagLineNumber = getEndTagLineNumber(siblingNode);\n\n String endLine = fileContents[endTagLineNumber - 1];\n String newLine = endLine + getIndentation(siblingNode) + nodeToAdd + FILE_NEW_LINE;\n if (bDebug) {\n System.out.println(\"Old line: \" + endLine);\n System.out.println(\"New line: \" + newLine);\n }\n fileContents[endTagLineNumber - 1] = newLine;\n\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "void prepend(T element);", "public static Element insertElement(final Text textNode, final Element element, final int startIndex, final int endIndex) throws DOMException {\n\t\tfinal Text splitTextNode = splitText(textNode, startIndex, endIndex); //split the text node into pieces\n\t\tfinal Element parentElement = (Element)splitTextNode.getParentNode(); //get the text node's parent\n\t\tparentElement.replaceChild(element, splitTextNode); //replace the split text node with the element that will enclose it\n\t\telement.appendChild(splitTextNode); //add the split text node to the given element\n\t\treturn element; //return the inserted enclosing element\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size() - 1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "public void insertAfter(String insertData, String findData) {\n\t\t// write you code for insertAfter using the specification above\n\t\tNode compare = new Node(findData);\n\t\tNode nodref = head;\n\t\twhile (nodref != null){\n\t\t\tif (nodref.equals(compare)){\n\t\t\t\tNode adder = new Node(insertData);\n\t\t\t\tadder.next = nodref.next;\n\t\t\t\tnodref.next = adder; \n\t\t\t\tnumElements++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodref = nodref.next;\n\t\t}\n\t\treturn;\n\t}", "public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(E element) {\n\t\theap.add(element); // Put new value at end;\n\t\tint loc = heap.size()-1; // and get its location\n\n\t\t// Swap with parent until parent not larger\n\t\twhile (loc > 0 && heap.get(loc).compareTo(heap.get(parent(loc))) < 0) {\n\t\t\tswap(heap, loc, parent(loc));\n\t\t\tloc = parent(loc);\n\t\t}\n\t}", "private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }", "public void insertAtIndex(E toInsert, int atIndex) {\n\t\tfor(int x = numElements; x > atIndex; x--) {\n\t\t\telements[x] = elements[x-1];\n\t\t}\n\t\telements[atIndex] = toInsert;\n\t\tnumElements++;\n\t\tresize();\n\t}", "Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;", "public Node appendNode(Node node);" ]
[ "0.735522", "0.71832824", "0.69462556", "0.6902478", "0.67899746", "0.6748791", "0.64720786", "0.64317465", "0.6378556", "0.6296787", "0.6294809", "0.6225522", "0.6203853", "0.620259", "0.616527", "0.61410207", "0.6119651", "0.6036262", "0.6015271", "0.59377986", "0.59277713", "0.5893633", "0.58661586", "0.58657414", "0.5805742", "0.5802529", "0.5792508", "0.57562745", "0.57525116", "0.5748442", "0.5698304", "0.5695102", "0.5680503", "0.56688863", "0.5647928", "0.56256413", "0.5597764", "0.5590627", "0.55892026", "0.5565047", "0.55644786", "0.5554791", "0.55406475", "0.5535149", "0.5533466", "0.5527172", "0.55268484", "0.55078214", "0.550184", "0.5498014", "0.548567", "0.5466379", "0.54658103", "0.5456423", "0.5444487", "0.54230046", "0.54230046", "0.5407921", "0.53862023", "0.5385784", "0.5379043", "0.53779763", "0.53680533", "0.5360684", "0.5356741", "0.53553456", "0.535096", "0.5346273", "0.5339835", "0.5337348", "0.53334916", "0.53300166", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5326196", "0.5318159", "0.5310769", "0.5308937", "0.53048724", "0.53048575", "0.53037226", "0.5288196", "0.5283425", "0.5276978", "0.5263812", "0.5259495", "0.5257046", "0.5255873", "0.525535", "0.5249857", "0.5247344", "0.52314705", "0.5229083", "0.52281404", "0.5220809", "0.52204657" ]
0.7457581
0
Creates new Dom element and inserts them after the specified element.
public static native Element insertAfter(Element elem, Element sibling)/*-{ return $wnd.Ext.DomHelper.insertAfter(elem, sibling); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "void addAfter(T target, T element);", "public Node insertAfter(Node node);", "public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }", "public static native Element insertAfter(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, rawHtml);\r\n\t}-*/;", "public static native Element insertAfter(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, configJS);\r\n\t}-*/;", "XomNode appendElement(Element element) throws XmlBuilderException;", "public ExtElement insertAfter(String element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public ExtElement insertAfter(ExtElement element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "void addBefore(T target, T element);", "public void addAfter(Element elem) {\n elem.setNext(this.getNext());\n elem.setPrev(this);\n this.getNext().setPrev(elem);\n this.setNext(elem);\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public ExtElement insertAfter(String element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "Element createElement();", "Node insertBefore(Node newChild, Node refChild);", "public ExtElement insertAfter(String element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}", "public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}", "public ExtElement insertAfter(ExtElement element, BaseModel... values) {\r\n\t\treturn insertAfter(element, Arrays.asList(values));\r\n\t}", "public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}", "public void addAfter(int element, int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\n\t\t/** finding the given node **/\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\n\t\t/** If found the given node, add after the the particular element */\n\t\tif(refNode != null){\n\t\t\t//add element after the target node\n\t\t\tNode nd = new Node();\n\t\t\tnd.setElement(element);\n\t\t\tnd.setNext(tmp.getNext());\n\t\t\tif(tmp == tail){\n\t\t\t\ttail = nd;\n\t\t\t}\n\t\t\ttmp.setNext(nd);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the element:\" + after);\n\t\t}\n\t}", "public Node insertBefore(Node node);", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "Form addElement(Element element);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public ExtElement insertAfter(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertAfter(element, BaseModel.fromList(values));\r\n\t}", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void insert(T element);", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "int placeElement(String elementName, Point2D startCoordinates);", "public static Node addAfter(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node before = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath [\" + xPath + \"] found\", before);\r\n Node parent = before.getParentNode();\r\n parent.insertBefore(newNode, before.getNextSibling());\r\n return node;\r\n }", "public abstract Position<E> insertRightSibling(Position<E> p, E e);", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "@Override\n public abstract void addToXmlElement(Element element);", "private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}", "void addElement(FormElement elt);", "void append(E element);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "void appendChild(Object child);", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "public void append(T element);", "public void append(T element);", "public void insert(Object element1, Object element2, Object element3);", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "public void addSiblingAfterNode(Node siblingNode, String nodeToAdd) throws Exception {\n if (siblingNode == null || nodeToAdd == null)\n return;\n if (fileContents == null) {\n fileContents = convertFileToStringArray(m_file);\n }\n\n Integer endTagLineNumber = getEndTagLineNumber(siblingNode);\n\n String endLine = fileContents[endTagLineNumber - 1];\n String newLine = endLine + getIndentation(siblingNode) + nodeToAdd + FILE_NEW_LINE;\n if (bDebug) {\n System.out.println(\"Old line: \" + endLine);\n System.out.println(\"New line: \" + newLine);\n }\n fileContents[endTagLineNumber - 1] = newLine;\n\n }", "public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }", "public abstract Position<E> insertRightChild(Position<E> p, E e);", "public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }", "public void prepend(T element);", "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public Node appendNode(Node node);", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public static Element insertElement(final Text textNode, final Element element, final int startIndex, final int endIndex) throws DOMException {\n\t\tfinal Text splitTextNode = splitText(textNode, startIndex, endIndex); //split the text node into pieces\n\t\tfinal Element parentElement = (Element)splitTextNode.getParentNode(); //get the text node's parent\n\t\tparentElement.replaceChild(element, splitTextNode); //replace the split text node with the element that will enclose it\n\t\telement.appendChild(splitTextNode); //add the split text node to the given element\n\t\treturn element; //return the inserted enclosing element\n\t}", "public void insertAfter(SequiturSymbol toInsert){\n join(toInsert,n);\n join(this,toInsert);\n }", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}", "public void newElement() {\r\n }", "private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n\tpublic Position<E> addAfter(Position<E> p, E e)throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference, reference.next, e);\n\t}", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }", "void prepend(T element);", "public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}", "public void addLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tif (child.getNodeName() == lastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, lastChild);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.appendChild(child);\t\t\t\r\n\t\t}\t\t\r\n\t}", "Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;", "public void insert(T element)\r\n\t{\n\t\tif (size >= data.length - 1)\r\n\t\t{\r\n\t\t\tresize();\r\n\t\t}\r\n\t\t\r\n\t\t//add the new element\r\n\t\tsize++;\r\n\t\tdata[size] = element;\r\n\t\tswim(size);\r\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}", "public void insert(int index, T element);" ]
[ "0.75383866", "0.73178416", "0.7295266", "0.69362694", "0.6911988", "0.6765287", "0.6541301", "0.64683455", "0.6451421", "0.641471", "0.6325157", "0.631895", "0.6287249", "0.6239694", "0.61097497", "0.6031763", "0.6025931", "0.5993344", "0.59861416", "0.5983111", "0.5913167", "0.5866382", "0.5859461", "0.5842437", "0.5838187", "0.5832566", "0.58114463", "0.5801961", "0.5755609", "0.5746859", "0.56893426", "0.5676278", "0.5664546", "0.5645175", "0.563593", "0.56160676", "0.5609484", "0.5607375", "0.55935013", "0.55745935", "0.55690026", "0.5563987", "0.55552024", "0.5537536", "0.55315053", "0.5497485", "0.5485944", "0.54834306", "0.54620355", "0.54568803", "0.5452219", "0.54516274", "0.5438809", "0.5425141", "0.5423162", "0.54087114", "0.54087114", "0.54087114", "0.54087114", "0.54087114", "0.54087114", "0.54087114", "0.538776", "0.5383826", "0.53773373", "0.5376304", "0.5376304", "0.5357884", "0.53573215", "0.535524", "0.53530747", "0.5338453", "0.5337999", "0.5319717", "0.531613", "0.53139144", "0.5311938", "0.52998084", "0.5293747", "0.5287831", "0.52856463", "0.5278671", "0.5277672", "0.5273088", "0.52691275", "0.5253235", "0.52335393", "0.52333194", "0.5232604", "0.5230072", "0.52289", "0.52228713", "0.5221601", "0.5215403", "0.5210556", "0.5208521", "0.520773", "0.51857877", "0.5180966", "0.5179003" ]
0.6799898
5
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(String id, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertBefore(id, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "void addBefore(T target, T element);", "Node insertBefore(Node newChild, Node refChild);", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "public void prepend(T element);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "void prepend(T element);", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "@Override\n public void addBefore(T target, T element){\n int index = getIndex(target);\n add(index, element);\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public ExtElement insertBefore(String element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertBefore(ExtElement element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static Node addBefore(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node after = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath found [\" + xPath + \"]\", after);\r\n Node parent = after.getParentNode();\r\n parent.insertBefore(newNode, after);\r\n return node;\r\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public Node insertAfter(Node node);", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "public ExtElement insertBefore(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "Element createElement();", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "void addAfter(T target, T element);", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "@Override\n\tpublic Position<E> addBefore(Position<E> p, E e) throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference.prev, reference, e);\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void insert(T element);", "public native String insertItemBefore(String newItem, Number index);", "Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;", "private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}", "public native VertexList insertBefore(VertexNode target, VertexNode vertex);", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "int placeElement(String elementName, Point2D startCoordinates);", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.78217566", "0.7526047", "0.7320683", "0.72873175", "0.72523785", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0.6294642", "0.6291302", "0.6284512", "0.62194043", "0.6176435", "0.6158915", "0.6136209", "0.6122715", "0.6103314", "0.60841244", "0.6034438", "0.6029836", "0.60257965", "0.59890276", "0.59733814", "0.59274435", "0.5926488", "0.5916208", "0.58817506", "0.5770136", "0.5727639", "0.57069224", "0.5696818", "0.56719637", "0.5650986", "0.56438327", "0.5606551", "0.5597181", "0.5554083", "0.5543612", "0.55308527", "0.5511497", "0.54552996", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.54137397", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675" ]
0.68494934
9
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(String id, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertBefore(id, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "void addBefore(T target, T element);", "Node insertBefore(Node newChild, Node refChild);", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "public void prepend(T element);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "void prepend(T element);", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "@Override\n public void addBefore(T target, T element){\n int index = getIndex(target);\n add(index, element);\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public ExtElement insertBefore(String element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertBefore(ExtElement element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static Node addBefore(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node after = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath found [\" + xPath + \"]\", after);\r\n Node parent = after.getParentNode();\r\n parent.insertBefore(newNode, after);\r\n return node;\r\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public Node insertAfter(Node node);", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "public ExtElement insertBefore(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "Element createElement();", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "void addAfter(T target, T element);", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "@Override\n\tpublic Position<E> addBefore(Position<E> p, E e) throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference.prev, reference, e);\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void insert(T element);", "public native String insertItemBefore(String newItem, Number index);", "Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;", "private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}", "public native VertexList insertBefore(VertexNode target, VertexNode vertex);", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "int placeElement(String elementName, Point2D startCoordinates);", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.782022", "0.75246567", "0.73191994", "0.7284336", "0.7251534", "0.72323215", "0.6952129", "0.69512415", "0.6848284", "0.68383086", "0.66349286", "0.6602596", "0.6577186", "0.6568841", "0.6489855", "0.6466294", "0.6402792", "0.63273275", "0.63074493", "0.63021916", "0.62931204", "0.6292295", "0.6281514", "0.6220143", "0.6173482", "0.6156284", "0.6133591", "0.61235285", "0.61023515", "0.60853755", "0.6035863", "0.6027373", "0.6024834", "0.5986527", "0.5973934", "0.5925771", "0.5923972", "0.59139323", "0.5882955", "0.5769295", "0.57252574", "0.5708395", "0.5696712", "0.5673065", "0.56479406", "0.5642157", "0.5607948", "0.55968297", "0.55528456", "0.55427355", "0.55289865", "0.5509634", "0.5455435", "0.54141587", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.5413361", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216", "0.54118216" ]
0.686364
8
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(Element elem, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertBefore(parent, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "void addBefore(T target, T element);", "Node insertBefore(Node newChild, Node refChild);", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "public void prepend(T element);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "void prepend(T element);", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "@Override\n public void addBefore(T target, T element){\n int index = getIndex(target);\n add(index, element);\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public ExtElement insertBefore(String element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertBefore(ExtElement element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static Node addBefore(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node after = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath found [\" + xPath + \"]\", after);\r\n Node parent = after.getParentNode();\r\n parent.insertBefore(newNode, after);\r\n return node;\r\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public Node insertAfter(Node node);", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "public ExtElement insertBefore(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "Element createElement();", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "void addAfter(T target, T element);", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "@Override\n\tpublic Position<E> addBefore(Position<E> p, E e) throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference.prev, reference, e);\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void insert(T element);", "public native String insertItemBefore(String newItem, Number index);", "Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;", "private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}", "public native VertexList insertBefore(VertexNode target, VertexNode vertex);", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "int placeElement(String elementName, Point2D startCoordinates);", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.78217566", "0.7320683", "0.72873175", "0.72523785", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.68494934", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0.6294642", "0.6291302", "0.6284512", "0.62194043", "0.6176435", "0.6158915", "0.6136209", "0.6122715", "0.6103314", "0.60841244", "0.6034438", "0.6029836", "0.60257965", "0.59890276", "0.59733814", "0.59274435", "0.5926488", "0.5916208", "0.58817506", "0.5770136", "0.5727639", "0.57069224", "0.5696818", "0.56719637", "0.5650986", "0.56438327", "0.5606551", "0.5597181", "0.5554083", "0.5543612", "0.55308527", "0.5511497", "0.54552996", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.54137397", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675" ]
0.7526047
1
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(Element elem, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertBefore(parent, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "void addBefore(T target, T element);", "Node insertBefore(Node newChild, Node refChild);", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "public void prepend(T element);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "void prepend(T element);", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "@Override\n public void addBefore(T target, T element){\n int index = getIndex(target);\n add(index, element);\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public ExtElement insertBefore(String element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertBefore(ExtElement element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static Node addBefore(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node after = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath found [\" + xPath + \"]\", after);\r\n Node parent = after.getParentNode();\r\n parent.insertBefore(newNode, after);\r\n return node;\r\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public Node insertAfter(Node node);", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "public ExtElement insertBefore(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "Element createElement();", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "void addAfter(T target, T element);", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "@Override\n\tpublic Position<E> addBefore(Position<E> p, E e) throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference.prev, reference, e);\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void insert(T element);", "public native String insertItemBefore(String newItem, Number index);", "Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;", "private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}", "public native VertexList insertBefore(VertexNode target, VertexNode vertex);", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "int placeElement(String elementName, Point2D startCoordinates);", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.7526047", "0.7320683", "0.72873175", "0.72523785", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.68494934", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0.6294642", "0.6291302", "0.6284512", "0.62194043", "0.6176435", "0.6158915", "0.6136209", "0.6122715", "0.6103314", "0.60841244", "0.6034438", "0.6029836", "0.60257965", "0.59890276", "0.59733814", "0.59274435", "0.5926488", "0.5916208", "0.58817506", "0.5770136", "0.5727639", "0.57069224", "0.5696818", "0.56719637", "0.5650986", "0.56438327", "0.5606551", "0.5597181", "0.5554083", "0.5543612", "0.55308527", "0.5511497", "0.54552996", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.54137397", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675" ]
0.78217566
0
Creates new Dom element and inserts them before the specified element.
public static native Element insertBefore(Element elem, Element sibling)/*-{ return $wnd.Ext.DomHelper.insertBefore(elem, sibling); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public Node insertBefore(Node node);", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "void addBefore(T target, T element);", "Node insertBefore(Node newChild, Node refChild);", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, configJS);\r\n\t}-*/;", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "public void prepend(T element);", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "void prepend(T element);", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "@Override\n public void addBefore(T target, T element){\n int index = getIndex(target);\n add(index, element);\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public ExtElement insertBefore(String element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public ExtElement insertBefore(ExtElement element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static Node addBefore(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node after = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath found [\" + xPath + \"]\", after);\r\n Node parent = after.getParentNode();\r\n parent.insertBefore(newNode, after);\r\n return node;\r\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "public ExtElement insertBefore(String element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public Node insertAfter(Node node);", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "public ExtElement insertBefore(ExtElement element, List<BaseModel> values) {\r\n\t\treturn insertBefore(element, BaseModel.fromList(values));\r\n\t}", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "Element createElement();", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "void addAfter(T target, T element);", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "@Override\n\tpublic Position<E> addBefore(Position<E> p, E e) throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference.prev, reference, e);\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void insert(T element);", "public native String insertItemBefore(String newItem, Number index);", "Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;", "private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}", "public native VertexList insertBefore(VertexNode target, VertexNode vertex);", "@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "int placeElement(String elementName, Point2D startCoordinates);", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.78217566", "0.7526047", "0.7320683", "0.72873175", "0.7233082", "0.69532764", "0.6951995", "0.68649894", "0.68494934", "0.6841037", "0.66372705", "0.6602676", "0.65797013", "0.6571963", "0.64921594", "0.64656454", "0.64050865", "0.63280666", "0.63099253", "0.63020676", "0.6294642", "0.6291302", "0.6284512", "0.62194043", "0.6176435", "0.6158915", "0.6136209", "0.6122715", "0.6103314", "0.60841244", "0.6034438", "0.6029836", "0.60257965", "0.59890276", "0.59733814", "0.59274435", "0.5926488", "0.5916208", "0.58817506", "0.5770136", "0.5727639", "0.57069224", "0.5696818", "0.56719637", "0.5650986", "0.56438327", "0.5606551", "0.5597181", "0.5554083", "0.5543612", "0.55308527", "0.5511497", "0.54552996", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.541471", "0.54137397", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675", "0.54131675" ]
0.72523785
4
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(String parentId, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "Element createElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "protected abstract M createNewElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "protected abstract T parentElementFor(T child) throws SAXException;", "Node insertBefore(Node newChild, Node refChild);", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "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 static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "E createDefaultElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public void newElement() {\r\n }", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "void appendChild(Object child);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "protected static IPluginElement createElement(IPluginParent pElement, ISchemaElement schemaElement) throws CoreException {\n IPluginElement childElement = null;\n childElement = pElement.getModel().getFactory().createElement(pElement);\n childElement.setName(schemaElement.getName());\n return childElement;\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "public Node insertBefore(Node node);", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void setSiblingParent() throws Exception {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document mockdoc = builder.newDocument();\n Element root = mockdoc.createElement(\"root\");\n Element root1 = mockdoc.createElement(\"root1\");\n Element root2 = mockdoc.createElement(\"root2\");\n Element root12 = mockdoc.createElement(\"root12\");\n Element root22 = mockdoc.createElement(\"root22\");\n\n mockdoc.appendChild(root);\n root.appendChild(root1);\n root.appendChild(root2);\n root1.appendChild(root12);\n root1.appendChild(root22);\n\n Tester tester=new Tester();\n assertFalse(tester.test(root)==root1);\n assertFalse(tester.setSiblingParent(root)==root1);\n\n\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private Node insert(Node root, T element) {\n\t\tif (root == null)\n\t\t\troot = new Node(element);\n\t\t// left side\n\t\telse if (element.compareTo(root.element) < 0) {\n\t\t\troot.left = insert(root.left, element);\n\t\t\troot.left.parent = root;\n\t\t\t// right side\n\t\t} else if (element.compareTo(root.element) >= 0) {\n\t\t\troot.right = insert(root.right, element);\n\t\t\troot.right.parent = root;\n\t\t}\n\n\t\treturn root;\n\t}", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "Div createDiv();", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "private void createRootGroup(Composite parent) {\n // separator\n Label label = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);\n label.setLayoutData(newGridData(NUM_COL, GridData.GRAB_HORIZONTAL));\n\n // label before the root combo\n String tooltip = \"The root element to create in the XML file.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"Select the root element for the XML file:\");\n label.setLayoutData(newGridData(NUM_COL));\n label.setToolTipText(tooltip);\n\n // root combo\n emptyCell(parent);\n\n mRootElementCombo = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);\n mRootElementCombo.setEnabled(false);\n mRootElementCombo.select(0);\n mRootElementCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mRootElementCombo.setToolTipText(tooltip);\n\n padWithEmptyCells(parent, 2);\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "BElement createBElement();", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}" ]
[ "0.7410081", "0.7254705", "0.700714", "0.6648105", "0.64541006", "0.64540267", "0.6123723", "0.60421723", "0.60215896", "0.59723073", "0.5963073", "0.590487", "0.5776961", "0.5753304", "0.57476175", "0.5713667", "0.5707972", "0.56843543", "0.5643923", "0.55875015", "0.5571966", "0.5570376", "0.5523274", "0.551908", "0.5516248", "0.5513843", "0.5511657", "0.55079675", "0.54974174", "0.54953533", "0.5494454", "0.5451166", "0.54469097", "0.5439542", "0.54322565", "0.54297537", "0.54230636", "0.5413931", "0.5408496", "0.54068345", "0.5406608", "0.539439", "0.53941864", "0.53814566", "0.53807545", "0.5360566", "0.5348385", "0.53414047", "0.53402513", "0.53364027", "0.5319294", "0.5314041", "0.5262323", "0.5258998", "0.524923", "0.5232961", "0.52310896", "0.52175456", "0.5196479", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.5168036", "0.51668286", "0.51665604", "0.51647013", "0.514472", "0.51387", "0.5132228", "0.5131968", "0.512867", "0.51150936", "0.510402", "0.5097461", "0.50869095", "0.50752497", "0.5073512", "0.5063751", "0.5062121", "0.50603855", "0.50528175", "0.50511837", "0.50489974", "0.50379187", "0.503518", "0.50343233", "0.5032538", "0.50324255", "0.50324255", "0.5014886", "0.5004748", "0.49974266", "0.49875888", "0.4984408", "0.49790645", "0.49716052" ]
0.6759248
3
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(String parentId, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertFirst(parentId, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "Element createElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "protected abstract M createNewElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "protected abstract T parentElementFor(T child) throws SAXException;", "Node insertBefore(Node newChild, Node refChild);", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "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 static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "E createDefaultElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public void newElement() {\r\n }", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "void appendChild(Object child);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "protected static IPluginElement createElement(IPluginParent pElement, ISchemaElement schemaElement) throws CoreException {\n IPluginElement childElement = null;\n childElement = pElement.getModel().getFactory().createElement(pElement);\n childElement.setName(schemaElement.getName());\n return childElement;\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "public Node insertBefore(Node node);", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void setSiblingParent() throws Exception {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document mockdoc = builder.newDocument();\n Element root = mockdoc.createElement(\"root\");\n Element root1 = mockdoc.createElement(\"root1\");\n Element root2 = mockdoc.createElement(\"root2\");\n Element root12 = mockdoc.createElement(\"root12\");\n Element root22 = mockdoc.createElement(\"root22\");\n\n mockdoc.appendChild(root);\n root.appendChild(root1);\n root.appendChild(root2);\n root1.appendChild(root12);\n root1.appendChild(root22);\n\n Tester tester=new Tester();\n assertFalse(tester.test(root)==root1);\n assertFalse(tester.setSiblingParent(root)==root1);\n\n\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private Node insert(Node root, T element) {\n\t\tif (root == null)\n\t\t\troot = new Node(element);\n\t\t// left side\n\t\telse if (element.compareTo(root.element) < 0) {\n\t\t\troot.left = insert(root.left, element);\n\t\t\troot.left.parent = root;\n\t\t\t// right side\n\t\t} else if (element.compareTo(root.element) >= 0) {\n\t\t\troot.right = insert(root.right, element);\n\t\t\troot.right.parent = root;\n\t\t}\n\n\t\treturn root;\n\t}", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "Div createDiv();", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "private void createRootGroup(Composite parent) {\n // separator\n Label label = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);\n label.setLayoutData(newGridData(NUM_COL, GridData.GRAB_HORIZONTAL));\n\n // label before the root combo\n String tooltip = \"The root element to create in the XML file.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"Select the root element for the XML file:\");\n label.setLayoutData(newGridData(NUM_COL));\n label.setToolTipText(tooltip);\n\n // root combo\n emptyCell(parent);\n\n mRootElementCombo = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);\n mRootElementCombo.setEnabled(false);\n mRootElementCombo.select(0);\n mRootElementCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mRootElementCombo.setToolTipText(tooltip);\n\n padWithEmptyCells(parent, 2);\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "BElement createBElement();", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}" ]
[ "0.7413376", "0.7257513", "0.7009898", "0.67617196", "0.6457774", "0.6453091", "0.61240673", "0.60436726", "0.60229075", "0.59712625", "0.5962262", "0.59038615", "0.5778238", "0.5752311", "0.5745637", "0.5713541", "0.5705264", "0.56832856", "0.5643448", "0.55851644", "0.55739945", "0.55712044", "0.55217826", "0.552019", "0.5517726", "0.55163217", "0.55106795", "0.5507359", "0.54964864", "0.5495785", "0.54934293", "0.5453344", "0.54452944", "0.54372853", "0.5433304", "0.5431076", "0.5422483", "0.541416", "0.54097795", "0.54082793", "0.5407589", "0.5393893", "0.53929895", "0.5381445", "0.53801906", "0.53599393", "0.5350448", "0.53407234", "0.53393865", "0.5336113", "0.5318931", "0.5315232", "0.5263311", "0.5259286", "0.52496856", "0.5232198", "0.52311647", "0.5219691", "0.5198321", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.51677763", "0.5166303", "0.51660395", "0.51657945", "0.514413", "0.5138595", "0.51318073", "0.51301473", "0.5127964", "0.51162773", "0.5105976", "0.50966173", "0.5087579", "0.5074973", "0.50736904", "0.5065906", "0.5061476", "0.50610036", "0.5050511", "0.50503427", "0.5047689", "0.50385356", "0.5034359", "0.5034202", "0.503393", "0.5031082", "0.5031082", "0.5015886", "0.5003816", "0.49966457", "0.49865088", "0.49822754", "0.49777925", "0.4970529" ]
0.66505784
4
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(Element parent, String rawHtml)/*-{ return $wnd.Ext.DomHelper.insertFirst(parent, rawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "Element createElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "protected abstract M createNewElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "protected abstract T parentElementFor(T child) throws SAXException;", "Node insertBefore(Node newChild, Node refChild);", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "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 static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "E createDefaultElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public void newElement() {\r\n }", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "void appendChild(Object child);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "protected static IPluginElement createElement(IPluginParent pElement, ISchemaElement schemaElement) throws CoreException {\n IPluginElement childElement = null;\n childElement = pElement.getModel().getFactory().createElement(pElement);\n childElement.setName(schemaElement.getName());\n return childElement;\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "public Node insertBefore(Node node);", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void setSiblingParent() throws Exception {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document mockdoc = builder.newDocument();\n Element root = mockdoc.createElement(\"root\");\n Element root1 = mockdoc.createElement(\"root1\");\n Element root2 = mockdoc.createElement(\"root2\");\n Element root12 = mockdoc.createElement(\"root12\");\n Element root22 = mockdoc.createElement(\"root22\");\n\n mockdoc.appendChild(root);\n root.appendChild(root1);\n root.appendChild(root2);\n root1.appendChild(root12);\n root1.appendChild(root22);\n\n Tester tester=new Tester();\n assertFalse(tester.test(root)==root1);\n assertFalse(tester.setSiblingParent(root)==root1);\n\n\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private Node insert(Node root, T element) {\n\t\tif (root == null)\n\t\t\troot = new Node(element);\n\t\t// left side\n\t\telse if (element.compareTo(root.element) < 0) {\n\t\t\troot.left = insert(root.left, element);\n\t\t\troot.left.parent = root;\n\t\t\t// right side\n\t\t} else if (element.compareTo(root.element) >= 0) {\n\t\t\troot.right = insert(root.right, element);\n\t\t\troot.right.parent = root;\n\t\t}\n\n\t\treturn root;\n\t}", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "Div createDiv();", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "private void createRootGroup(Composite parent) {\n // separator\n Label label = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);\n label.setLayoutData(newGridData(NUM_COL, GridData.GRAB_HORIZONTAL));\n\n // label before the root combo\n String tooltip = \"The root element to create in the XML file.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"Select the root element for the XML file:\");\n label.setLayoutData(newGridData(NUM_COL));\n label.setToolTipText(tooltip);\n\n // root combo\n emptyCell(parent);\n\n mRootElementCombo = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);\n mRootElementCombo.setEnabled(false);\n mRootElementCombo.select(0);\n mRootElementCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mRootElementCombo.setToolTipText(tooltip);\n\n padWithEmptyCells(parent, 2);\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "BElement createBElement();", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}" ]
[ "0.7413376", "0.7257513", "0.67617196", "0.66505784", "0.6457774", "0.6453091", "0.61240673", "0.60436726", "0.60229075", "0.59712625", "0.5962262", "0.59038615", "0.5778238", "0.5752311", "0.5745637", "0.5713541", "0.5705264", "0.56832856", "0.5643448", "0.55851644", "0.55739945", "0.55712044", "0.55217826", "0.552019", "0.5517726", "0.55163217", "0.55106795", "0.5507359", "0.54964864", "0.5495785", "0.54934293", "0.5453344", "0.54452944", "0.54372853", "0.5433304", "0.5431076", "0.5422483", "0.541416", "0.54097795", "0.54082793", "0.5407589", "0.5393893", "0.53929895", "0.5381445", "0.53801906", "0.53599393", "0.5350448", "0.53407234", "0.53393865", "0.5336113", "0.5318931", "0.5315232", "0.5263311", "0.5259286", "0.52496856", "0.5232198", "0.52311647", "0.5219691", "0.5198321", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.51677763", "0.5166303", "0.51660395", "0.51657945", "0.514413", "0.5138595", "0.51318073", "0.51301473", "0.5127964", "0.51162773", "0.5105976", "0.50966173", "0.5087579", "0.5074973", "0.50736904", "0.5065906", "0.5061476", "0.50610036", "0.5050511", "0.50503427", "0.5047689", "0.50385356", "0.5034359", "0.5034202", "0.503393", "0.5031082", "0.5031082", "0.5015886", "0.5003816", "0.49966457", "0.49865088", "0.49822754", "0.49777925", "0.4970529" ]
0.7009898
2
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(Element parent, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.insertFirst(parent, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "Element createElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "protected abstract M createNewElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "protected abstract T parentElementFor(T child) throws SAXException;", "Node insertBefore(Node newChild, Node refChild);", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "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 static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "E createDefaultElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public void newElement() {\r\n }", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "void appendChild(Object child);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "protected static IPluginElement createElement(IPluginParent pElement, ISchemaElement schemaElement) throws CoreException {\n IPluginElement childElement = null;\n childElement = pElement.getModel().getFactory().createElement(pElement);\n childElement.setName(schemaElement.getName());\n return childElement;\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "public Node insertBefore(Node node);", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void setSiblingParent() throws Exception {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document mockdoc = builder.newDocument();\n Element root = mockdoc.createElement(\"root\");\n Element root1 = mockdoc.createElement(\"root1\");\n Element root2 = mockdoc.createElement(\"root2\");\n Element root12 = mockdoc.createElement(\"root12\");\n Element root22 = mockdoc.createElement(\"root22\");\n\n mockdoc.appendChild(root);\n root.appendChild(root1);\n root.appendChild(root2);\n root1.appendChild(root12);\n root1.appendChild(root22);\n\n Tester tester=new Tester();\n assertFalse(tester.test(root)==root1);\n assertFalse(tester.setSiblingParent(root)==root1);\n\n\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private Node insert(Node root, T element) {\n\t\tif (root == null)\n\t\t\troot = new Node(element);\n\t\t// left side\n\t\telse if (element.compareTo(root.element) < 0) {\n\t\t\troot.left = insert(root.left, element);\n\t\t\troot.left.parent = root;\n\t\t\t// right side\n\t\t} else if (element.compareTo(root.element) >= 0) {\n\t\t\troot.right = insert(root.right, element);\n\t\t\troot.right.parent = root;\n\t\t}\n\n\t\treturn root;\n\t}", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "Div createDiv();", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "private void createRootGroup(Composite parent) {\n // separator\n Label label = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);\n label.setLayoutData(newGridData(NUM_COL, GridData.GRAB_HORIZONTAL));\n\n // label before the root combo\n String tooltip = \"The root element to create in the XML file.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"Select the root element for the XML file:\");\n label.setLayoutData(newGridData(NUM_COL));\n label.setToolTipText(tooltip);\n\n // root combo\n emptyCell(parent);\n\n mRootElementCombo = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);\n mRootElementCombo.setEnabled(false);\n mRootElementCombo.select(0);\n mRootElementCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mRootElementCombo.setToolTipText(tooltip);\n\n padWithEmptyCells(parent, 2);\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "BElement createBElement();", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}" ]
[ "0.7413376", "0.7009898", "0.67617196", "0.66505784", "0.6457774", "0.6453091", "0.61240673", "0.60436726", "0.60229075", "0.59712625", "0.5962262", "0.59038615", "0.5778238", "0.5752311", "0.5745637", "0.5713541", "0.5705264", "0.56832856", "0.5643448", "0.55851644", "0.55739945", "0.55712044", "0.55217826", "0.552019", "0.5517726", "0.55163217", "0.55106795", "0.5507359", "0.54964864", "0.5495785", "0.54934293", "0.5453344", "0.54452944", "0.54372853", "0.5433304", "0.5431076", "0.5422483", "0.541416", "0.54097795", "0.54082793", "0.5407589", "0.5393893", "0.53929895", "0.5381445", "0.53801906", "0.53599393", "0.5350448", "0.53407234", "0.53393865", "0.5336113", "0.5318931", "0.5315232", "0.5263311", "0.5259286", "0.52496856", "0.5232198", "0.52311647", "0.5219691", "0.5198321", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.5186022", "0.51677763", "0.5166303", "0.51660395", "0.51657945", "0.514413", "0.5138595", "0.51318073", "0.51301473", "0.5127964", "0.51162773", "0.5105976", "0.50966173", "0.5087579", "0.5074973", "0.50736904", "0.5065906", "0.5061476", "0.50610036", "0.5050511", "0.50503427", "0.5047689", "0.50385356", "0.5034359", "0.5034202", "0.503393", "0.5031082", "0.5031082", "0.5015886", "0.5003816", "0.49966457", "0.49865088", "0.49822754", "0.49777925", "0.4970529" ]
0.7257513
1
Creates new Dom element(s) and inserts them as the first child of the parent element.
public static native Element insertFirst(Element parent, Element child)/*-{ return $wnd.Ext.DomHelper.insertFirst(parent, child); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, configJS);\r\n\t}-*/;", "public void addFirstChild(Element parent, Element child) {\r\n\t\tNode firstChild = parent.getFirstChild();\r\n\t\tif (child.getNodeName() == firstChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, firstChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, parent.getFirstChild());\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "Element createElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;", "protected Element createRootElement(DOMContext domContext) {\n return domContext.createElement(HTML.DIV_ELEM);\r\n }", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "protected abstract M createNewElement();", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "protected abstract T parentElementFor(T child) throws SAXException;", "Node insertBefore(Node newChild, Node refChild);", "@SuppressWarnings(\"unchecked\")\n protected synchronized T newChild() {\n try {\n T t = ((Class<T>)getClass()).newInstance();\n t.isRootNode = false;\n \n if( ! isRootNode ) {\n if( children == null ) children = new ArrayList<T>();\n children.add( t );\n }\n \n return t;\n } catch( Exception ex ) {\n throw new RuntimeException(ex);\n }\n }", "public abstract Position<E> insertLeftChild(Position<E> p, E e);", "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 static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }", "E createDefaultElement();", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "public void newElement() {\r\n }", "public void insertChild(XMLElement child, int index)\n/* */ {\n/* 422 */ if (child == null) {\n/* 423 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 425 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 426 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* 427 */ if (lastChild.getLocalName() == null) {\n/* 428 */ lastChild.setContent(lastChild.getContent() + \n/* 429 */ child.getContent());\n/* 430 */ return;\n/* */ }\n/* */ }\n/* 433 */ child.parent = this;\n/* 434 */ this.children.insertElementAt(child, index);\n/* */ }", "public ChronologElement getParent(boolean create) {\r\n if (parent == null && create) {\r\n parent = createAnonymousElement();\r\n parent.addChild(this);\r\n }\r\n return parent;\r\n }", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "private static void buildDoublesNode(Document document, NodeList childList, Node newHead) {\n Element doublNode = document.createElement(\"item\");\n Element doublID = document.createElement(\"id\");\n Element doublParent = document.createElement(\"parent\");\n doublNode.appendChild(doublID);\n doublNode.appendChild(doublParent);\n for (int i = 0; i < childList.getLength(); i++) {\n if (childList.item(i).getNodeName().equals(\"id\"))\n doublID.setTextContent(childList.item(i).getTextContent());\n if (childList.item(i).getNodeName().equals(\"parent\")) {\n NodeList parentItemList = childList.item(i).getChildNodes();\n for (int j = 0; j < parentItemList.getLength(); j++) {\n if (parentItemList.item(j).getNodeName().equals(\"item\")) {\n Element innerParentItem = document.createElement(\"item\");\n innerParentItem.setTextContent(parentItemList.item(j).getTextContent());\n doublParent.appendChild(innerParentItem);\n }\n }\n }\n }\n newHead.appendChild(doublNode);\n }", "@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}", "private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }", "void appendChild(Object child);", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}", "public Node newSibling(String name) {\n Node n = new Node(name);\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "protected static IPluginElement createElement(IPluginParent pElement, ISchemaElement schemaElement) throws CoreException {\n IPluginElement childElement = null;\n childElement = pElement.getModel().getFactory().createElement(pElement);\n childElement.setName(schemaElement.getName());\n return childElement;\n }", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "public Node insertBefore(Node node);", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "public void addChild(Element child) {\n super.addChild(child);\n }", "private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }", "private void attachChildToParentControl(XMLTag child, Control incomingParent)\n {\n Iterator<Control> it = null;\n \n if (incomingParent == null)\n it = mControlState.iterator();\n else\n it = incomingParent.children.iterator();\n \n while (it.hasNext()) {\n Control parent = it.next();\n \n if (child.getCurrentTagLocation().split(\"/\").length - parent.getLocation().split(\"/\").length == 1 &&\n parent.getLocation().equals(child.getCurrentTagLocation().substring(0, parent.getLocation().length())))\n parent.children.add(new Control(child, parent, mInstanceRoot, mBindState)); \n \n if (!parent.children.isEmpty())\n attachChildToParentControl(child, parent);\n }\n }", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "public Node makeNode(Document xmlDoc) {\r\n Element out = xmlDoc.createElement(this.parent.getHeader());\r\n this.parent.updateSave();\r\n if (this.nodeText != null) {\r\n out.setTextContent(nodeText);\r\n }\r\n this.makeAtributes(out);\r\n for (int i = 0; i < this.children.size(); i++) {\r\n out.appendChild(this.children.get(i).makeNode(xmlDoc));\r\n }\r\n return out;\r\n}", "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\r\n\tpublic void insert(T element) {\r\n\r\n\t\tif (element != null) {\r\n\t\t\tBSTNode<T> nilParent = new BSTNode<>(); //Para o caso de estarmos inserindo a raiz (que tem parent NIL)\r\n\t\t\tinsert(this.root, element, nilParent);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void setSiblingParent() throws Exception {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document mockdoc = builder.newDocument();\n Element root = mockdoc.createElement(\"root\");\n Element root1 = mockdoc.createElement(\"root1\");\n Element root2 = mockdoc.createElement(\"root2\");\n Element root12 = mockdoc.createElement(\"root12\");\n Element root22 = mockdoc.createElement(\"root22\");\n\n mockdoc.appendChild(root);\n root.appendChild(root1);\n root.appendChild(root2);\n root1.appendChild(root12);\n root1.appendChild(root22);\n\n Tester tester=new Tester();\n assertFalse(tester.test(root)==root1);\n assertFalse(tester.setSiblingParent(root)==root1);\n\n\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "private Node insert(Node root, T element) {\n\t\tif (root == null)\n\t\t\troot = new Node(element);\n\t\t// left side\n\t\telse if (element.compareTo(root.element) < 0) {\n\t\t\troot.left = insert(root.left, element);\n\t\t\troot.left.parent = root;\n\t\t\t// right side\n\t\t} else if (element.compareTo(root.element) >= 0) {\n\t\t\troot.right = insert(root.right, element);\n\t\t\troot.right.parent = root;\n\t\t}\n\n\t\treturn root;\n\t}", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public void addBeforeLastChild(Element parent, Element child) {\r\n\t\tNode lastChild = parent.getLastChild();\r\n\t\tNode beforeLastChild = lastChild.getPreviousSibling();\r\n\t\tif (child.getNodeName() == beforeLastChild.getNodeName()) {\r\n\t\t\tparent.replaceChild(child, beforeLastChild);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.insertBefore(child, lastChild);\t\t\t\r\n\t\t}\t\t\r\n\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "Div createDiv();", "public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }", "protected void openParent(Object childInfo, OpenableMap newElements,\n\t\t\tIProgressMonitor pm) throws RodinDBException {\n\n\t\tif (parent == null)\n\t\t\treturn;\n\t\tfinal Openable openableParent = parent.getOpenable();\n\t\tif (!openableParent.isOpen()) {\n\t\t\topenableParent.generateInfos(openableParent.createElementInfo(),\n\t\t\t\t\tnewElements, pm);\n\t\t}\n\t}", "public void addChild(XMLElement child)\n/* */ {\n/* 398 */ if (child == null) {\n/* 399 */ throw new IllegalArgumentException(\"child must not be null\");\n/* */ }\n/* 401 */ if ((child.getLocalName() == null) && (!this.children.isEmpty())) {\n/* 402 */ XMLElement lastChild = (XMLElement)this.children.lastElement();\n/* */ \n/* 404 */ if (lastChild.getLocalName() == null) {\n/* 405 */ lastChild.setContent(lastChild.getContent() + \n/* 406 */ child.getContent());\n/* 407 */ return;\n/* */ }\n/* */ }\n/* 410 */ child.parent = this;\n/* 411 */ this.children.addElement(child);\n/* */ }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "void createTreeNodesForElement(final DefaultMutableTreeNode dmtn, final Collection<Element> elements) {\n for (Element child : elements) {\n DefaultMutableTreeNode created = new DefaultMutableTreeNode(child.getName());\n dmtn.add(created);\n createTreeNodesForElement(created, child.getChildren());\n }\n }", "private void createRootGroup(Composite parent) {\n // separator\n Label label = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);\n label.setLayoutData(newGridData(NUM_COL, GridData.GRAB_HORIZONTAL));\n\n // label before the root combo\n String tooltip = \"The root element to create in the XML file.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"Select the root element for the XML file:\");\n label.setLayoutData(newGridData(NUM_COL));\n label.setToolTipText(tooltip);\n\n // root combo\n emptyCell(parent);\n\n mRootElementCombo = new Combo(parent, SWT.DROP_DOWN | SWT.READ_ONLY);\n mRootElementCombo.setEnabled(false);\n mRootElementCombo.select(0);\n mRootElementCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mRootElementCombo.setToolTipText(tooltip);\n\n padWithEmptyCells(parent, 2);\n }", "public static native ExtElement append(String parentId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "BElement createBElement();", "public Node newChild(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.appendChild(n.e);\n return n;\n }", "protected Element el(String tag, Node[] childs){\n\t\tElement e = doc.createElement(tag);\n\t\tfor (Node i: childs){\n\t\t\tif (i instanceof Attr) { \n\t\t\t\te.setAttributeNode((Attr)i);\n\t\t\t} else {\n\t\t\t\te.appendChild(i);\n\t\t\t}\n\t\t}\n\t\treturn e;\n\t}", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}" ]
[ "0.7254705", "0.700714", "0.6759248", "0.6648105", "0.64541006", "0.64540267", "0.6123723", "0.60421723", "0.60215896", "0.59723073", "0.5963073", "0.590487", "0.5776961", "0.5753304", "0.57476175", "0.5713667", "0.5707972", "0.56843543", "0.5643923", "0.55875015", "0.5571966", "0.5570376", "0.5523274", "0.551908", "0.5516248", "0.5513843", "0.5511657", "0.55079675", "0.54974174", "0.54953533", "0.5494454", "0.5451166", "0.54469097", "0.5439542", "0.54322565", "0.54297537", "0.54230636", "0.5413931", "0.5408496", "0.54068345", "0.5406608", "0.539439", "0.53941864", "0.53814566", "0.53807545", "0.5360566", "0.5348385", "0.53414047", "0.53402513", "0.53364027", "0.5319294", "0.5314041", "0.5262323", "0.5258998", "0.524923", "0.5232961", "0.52310896", "0.52175456", "0.5196479", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.51858467", "0.5168036", "0.51668286", "0.51665604", "0.51647013", "0.514472", "0.51387", "0.5132228", "0.5131968", "0.512867", "0.51150936", "0.510402", "0.5097461", "0.50869095", "0.50752497", "0.5073512", "0.5063751", "0.5062121", "0.50603855", "0.50528175", "0.50511837", "0.50489974", "0.50379187", "0.503518", "0.50343233", "0.5032538", "0.50324255", "0.50324255", "0.5014886", "0.5004748", "0.49974266", "0.49875888", "0.4984408", "0.49790645", "0.49716052" ]
0.7410081
0
Returns the markup for the passed Element config.
public static native String markup(DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.markup(elem); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> String renderElementMarkup(FormElement<T> element) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tif (element.isVisible()) {\n\t\t\tsb.append(renderVisibleElement(element));\n\t\t}\n\t\treturn sb.toString();\n\t}", "public Element getConfig() {\n Element out = new Element(getElementName(),MarsModel.NAMESPACE);\n out.setAttribute(\"enabled\",String.valueOf(enabled));\n out.setAttribute(\"xmlfile\",xmlfile.getPath());\n out.setAttribute(\"period\",String.valueOf(period));\n out.setAttribute(\"xslthref\",xslthref);\n return out;\n }", "public abstract String getConfigElementName();", "private Element createConfigElement(PentahoConfig config) {\n\t\tElement configElem = new Element(ROOT);\n\t\tthis.addConfigElement(configElem, String.valueOf(config.isDebug()), DEBUG);\n\t\tthis.addConfigElement(configElem, config.getServerUsername(), serverUsername_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerPassword(), serverPassword_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalUrl(), serverLocalUrl_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalPort(), serverLocalPort_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalProtocol(), serverLocalProtocol_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerUrl(), serverUrl_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerPort(), serverPort_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerProtocol(), serverProtocol_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerContextPath(), serverContextPath_ELEM);\n\t\tthis.addConfigElement(configElem, config.getReportDefBasePath(), reportDefBasePath_ELEM);\n\t\tthis.addConfigElement(configElem, config.isServerVisibleFromClient(), serverVisibleFromClient_ELEM);\n\t\tthis.addConfigElement(configElem, config.getReportDetailPage(), reportDetailPage_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationRepositoryName(), dataIntegrationRepositoryName_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationUsername(), dataIntegrationUsername_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationPassword(), dataIntegrationPassword_ELEM);\n\t\treturn configElem;\n\t}", "public <T> String renderElement(FormElement<T> element) {\n\t\tString markup = renderMarkupElementPlaceholder(element, renderElementMarkup(element));\n\t\tif (element instanceof FormField<?>) {\n\t\t\tFormField<?> field = (FormField<?>)element;\n\t\t\tif (!Field.HIDDEN.getType().equals(field.getType())) {\n\t\t\t\tmarkup = renderMarkupFormGroup(field, markup);\n\t\t\t}\n\t\t}\n\t\treturn markup;\n\t}", "public XmlElement getConfig()\n {\n return m_xml;\n }", "public Element toXml()\n {\n // Create the configuration.\n Element configuration = new Element(\"configuration\");\n configuration.setAttribute(\"name\", this.__profile_name);\n configuration.setAttribute(\"target\", this.getAddOnName());\n\n // Add the generic and the specialized configuration.\n configuration.addContent(this.getData());\n\n return configuration;\n }", "public @Nullable String getMarkup() {\n return media.getMarkup();\n }", "UmlElement getUmlElement();", "public static String getHTML() {\n if (create()) {\n return tag.getInnerHTML();\n }\n return \"\";\n }", "Element getGenericElement();", "IElementDef parse(ConfigSource configSource);", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(indentLevel + 1);\n \t\tHTMLElement body = generateBodyElement(indentLevel + 1);\n \t\thtml.addContent(head);\n \t\thtml.addContent(body);\n \t\treturn html;\n \t}", "public Element getData()\n {\n // Ask the generic configuration's holder to export the list of specific\n // configuration's data.\n ArrayList<Element> specific_data = this._toXml_();\n\n // Build the specific configuration.\n Element generic = new Element(\"data\");\n for (int index = 0; index < specific_data.size(); index++)\n {\n generic.addContent(specific_data.get(index));\n }\n\n return generic;\n }", "public String html() {\n\t\treturn HtmlFunction.html(this);\n\t}", "private static String getHtmlExtension(String markupName) {\r\n\t\treturn \"html\";\r\n\t}", "public abstract Element getDescription();", "public String getHtmlRepresentation() {\n\t\treturn getHtmlRepresentation(constraintSets);\n\t}", "@DISPID(-2147417084)\n @PropGet\n java.lang.String outerHTML();", "public interface ElementEncounter\n{\n\t/**\n\t * Get the rendering context.\n\t *\n\t * @return\n\t */\n\tRenderingContext getContext();\n\n\t/**\n\t * Get the object being rendered.\n\t *\n\t * @return\n\t */\n\tObject getObject();\n\n\t/**\n\t * Skip the current element.\n\t *\n\t * @return\n\t */\n\tvoid skip();\n\n\t/**\n\t * Manually emit the wrapped content.\n\t *\n\t * @throws IOException\n\t *\n\t */\n\tvoid emit()\n\t\tthrows IOException;\n\n\t/**\n\t * Get the output used for rendering. This should be used with care,\n\t * no extra actions are taken to ensure that the output is valid HTML\n\t * when this is used directly.\n\t *\n\t * @return\n\t */\n\tTemplateOutputStream getOutput();\n\n\t/**\n\t *\n\t * @param name\n\t * @param value\n\t */\n\tvoid pushAttribute(String name, String value);\n}", "public IConfigurationElement getDependencyGeneratorElement();", "public String getElement() { return element; }", "public Element generateElement(Document dom);", "public Element toXMLElement(Document doc) {\n // Create the snippet tag element\n Element snippet = doc.createElement(\"snippet\");\n\n // Add a name tag and append it to the snippet tag\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(this.name));\n snippet.appendChild(name);\n\n // Add a data tag and append it to the snippet tag\n Element data = doc.createElement(\"data\");\n data.appendChild(doc.createTextNode(this.snippet.trim()));\n snippet.appendChild(data);\n\n // Add a description tag and append it to the snippet tag\n Element description = doc.createElement(\"description\");\n description.appendChild(doc.createTextNode(this.description));\n snippet.appendChild(description);\n\n // Add a keywords tag and append it to the snippet tag\n Element keywords = doc.createElement(\"keywords\");\n keywords.appendChild(doc.createTextNode(this.keywords.toString().replace(\"[\", \"\").replace(\"]\", \"\")));\n snippet.appendChild(keywords);\n\n return snippet;\n }", "protected <T> String getLabelText(FormElement<T> element) {\n\t\treturn labelRenderer.getLabelText(element);\n\t}", "private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }", "@DISPID(-2147417086)\n @PropGet\n java.lang.String innerHTML();", "public java.lang.String getXml();", "public String getTagName() {\n return \"element\";\n }", "Renderer getDefaultRendererForElementClass(Class<? extends Element> clazz);", "public static native Element createDom(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.createDom(configJS);\r\n\t}-*/;", "public static IRenderer createRenderer(final IConfigurationElement configElement) {\n return null;\n }", "public String getSearchForConfigElements()\n {\n return searchForConfigElements;\n }", "private static String printInTagElement(Element element) {\n\t\tif (element == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tif (element instanceof ElementFunction) {\n\t\t\treturn ParserDelimiters.FUNCTION_DELIMITER.getValue() + element.asText();\n\t\t}\n\t\t\n\t\tif (element instanceof ElementString) {\n\t\t\treturn ParserDelimiters.STRING_DELIMITER.getValue()\n\t\t\t\t\t+ addEscapes(\n\t\t\t\t\t\t\telement.asText(),\n\t\t\t\t\t\t\tEscapableArrays.stringEscpable(),\n\t\t\t\t\t\t\tParserDelimiters.ESCAPE_DELIMITER.getValue()\n\t\t\t\t\t\t)\n\t\t\t\t\t+ ParserDelimiters.STRING_DELIMITER.getValue();\n\t\t}\n\t\t\n\t\treturn element.asText();\n\t}", "String renderReport(T config);", "ConfigBlock getConfig();", "String getTemplate();", "String getElement();", "public final Class<? extends MarkupContainer> getMarkupClass()\n\t{\n\t\treturn markupClass;\n\t}", "public String getConfig();", "public <T> String renderVisibleElement(FormElement<T> element) {\n\t\tString html = null;\n\t\tif (element instanceof FormMapping) {\n\t\t\thtml = renderVisibleMapping((FormMapping<?>)element);\n\t\t} else if (element instanceof FormField) {\n\t\t\thtml = renderVisibleField((FormField<?>)element);\n\t\t} else if (element != null) {\n\t\t\tthrow new UnsupportedOperationException(\"Unsupported element \" + element.getClass().getName());\n\t\t}\n\t\treturn html;\n\t}", "public String getXML(boolean pretty) {\n\t\treturn XMLFormatter.format(element, pretty);\n\t}", "public Element toElement(\n String name,\n int indent\n ) {\n String indentStr = StringUtils.getIndent (indent);\n\n Element result = new Element (name);\n \n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"id\").setText (this.id));\n\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"name\").setText (this.name));\n\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"type\").setText (this.type));\n\n if (this.allowedValues != null && this.allowedValues.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"allowedValues\").setText (this.allowedValues));\n }\n\n if (this.annotation != null && this.annotation.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"annotation\").setText (this.annotation));\n }\n\n if (this.defaultValue != null && this.defaultValue.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"defaultValue\").setText (this.defaultValue));\n }\n\n if (this.displayName != null && this.displayName.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"displayName\").setText (this.displayName));\n }\n\n if (this.maxValue != null && this.maxValue.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"maxValue\").setText (this.maxValue));\n }\n\n if (this.minValue != null && this.minValue.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"minValue\").setText (this.minValue));\n }\n\n if (this.pattern != null && this.pattern.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"pattern\").setText (this.pattern));\n }\n\n if (this.suggestedValues != null && this.suggestedValues.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"suggestedValues\").setText (this.suggestedValues));\n }\n\n if (this.unitName != null && this.unitName.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"unitName\").setText (this.unitName));\n }\n\n if (this.updateRule != null && this.allowedValues.length() > 0) {\n result.addContent (\"\\n\" + updateRule);\n result.addContent (new Element (\"updateRule\").setText (this.updateRule));\n }\n\n return result;\n }", "public static Element getTowerInfo(String towerTagName) {\r\n\t\tElement settingElement = null;\r\n\t\tfor (Element tower : settings) {\r\n\t\t\tif (tower.getTagName().equals(towerTagName)) {\r\n\t\t\t\tsettingElement = tower;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn settingElement;\r\n\t}", "public String createHtml()\n {\n StringBuffer strEditor = new StringBuffer();\n\n strEditor.append(\"<div>\");\n String encodedValue = escapeXml(value.replaceAll(\"((\\r?\\n)+|\\t*)\", \"\"));\n\n if (check(request.getHeader(\"user-agent\")))\n {\n strEditor.append(createInputForVariable(instanceName, instanceName, encodedValue));\n // create config html\n String configStr = config.getUrlParams();\n if (configStr != null && configStr.length() > 0)\n {\n configStr = configStr.substring(1);\n strEditor.append(createInputForVariable(null, instanceName.concat(\"___Config\"), configStr));\n }\n\n // create IFrame\n String sLink = basePath.concat(\"/editor/fckeditor.html?InstanceName=\").concat(instanceName);\n if (toolbarSet != null && toolbarSet.length() > 0)\n {\n sLink += \"&Toolbar=\".concat(toolbarSet);\n }\n XHtmlTagTool iframeTag = new XHtmlTagTool(\"iframe\", XHtmlTagTool.SPACE);\n iframeTag.addAttribute(\"id\", instanceName.concat(\"___Frame\"));\n iframeTag.addAttribute(\"src\", sLink);\n iframeTag.addAttribute(\"width\", width);\n iframeTag.addAttribute(\"height\", height);\n iframeTag.addAttribute(\"frameborder\", \"no\");\n iframeTag.addAttribute(\"scrolling\", \"no\");\n strEditor.append(iframeTag);\n\n }\n else\n {\n XHtmlTagTool textareaTag = new XHtmlTagTool(\"textarea\", encodedValue);\n textareaTag.addAttribute(\"name\", instanceName);\n textareaTag.addAttribute(\"rows\", \"4\");\n textareaTag.addAttribute(\"cols\", \"40\");\n textareaTag.addAttribute(\"wrap\", \"virtual\");\n textareaTag.addAttribute(\"style\", \"width: \".concat(width).concat(\"; height: \").concat(height));\n }\n strEditor.append(\"</div>\");\n return strEditor.toString();\n }", "public String html(PrismConfig config) {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tString graphClass = (cluster == null) ? \"circularGenomeGraph\"\n\t\t\t\t: \"clusterGenomeGraph\";\n\n\t\tsb.append(\"<object type='image/svg+xml' data='\" + link + \"' class='\"\n\t\t\t\t+ graphClass + \"'>\");\n\t\tsb.append(\"Your browser does not support SVG\"); // fallback text\n\t\tsb.append(\"</object>\");\n\n\t\tString legend = (cluster == null) ? Legend.getGenomeGraphLegend(config)\n\t\t\t\t: \"\";\n\t\tsb.append(legend);\n\n\t\treturn sb.toString();\n\t}", "private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "@ImplementedBy(MarkupProvider.class)\npublic interface IMarkupProvider\n{\n\tpublic void registerMarkupContent(Class<? extends Component> componentClass, String content);\n\tpublic void registerMarkupContent(Class<? extends Component> componentClass, IMarkupFragment markup);\n\tpublic IMarkupFragment provideMarkup(Component component);\n\tpublic IMarkupFragment provideMarkup(Class<? extends Component> componentClass);\n}", "public static String getImplementString()\n\t{\n\t\treturn \"ngat.message.ISS_INST.CONFIG\";\n\t}", "abstract ConfigDescription getDescription();", "public IConfigurationElement getConfigurationElement() {\n\t\treturn fConfigurationElement;\n\t}", "public Label getLabel(Element element) {\r\n return new ElementLabel(contact, element, format);\r\n }", "String getElem();", "public String configurationInfo();", "public Element toElement(\n String name,\n int indent\n ) {\n Element result = new Element (name);\n String indentStr = StringUtils.getIndent (indent);\n \n if (this.name != null && this.name.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"name\").setText (this.name));\n }\n \n if (this.type != null && this.type.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"type\").setText (this.type));\n }\n \n if (this.updateRule != null && this.updateRule.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"updateRule\").setText (this.updateRule));\n }\n \n // not required by XML, but Java booleans can't store null\n //\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"required\").setText (\"\" + this.required));\n \n if (this.displayName != null && this.displayName.length() > 0) {\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"displayName\").setText (this.displayName));\n }\n \n // not required by XML, but Java booleans can't store null\n //\n result.addContent (\"\\n\" + indentStr);\n result.addContent (new Element (\"visible\").setText (\"\" + this.visible));\n \n return result;\n }", "public IConfigurationElement getCommandLineGeneratorElement();", "private String getAdvTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft {gender}\\\"></span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft\\\">{name}</span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-rgt\\\">{age} Yrs</span>\");\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "public String documentationElement(final Element refElement) {\n return(null);\n }", "protected String getXML() {\n\n StringBuffer b = new StringBuffer(\"title =\\\"\");\n b.append(title);\n b.append(\"\\\" xAxisTitle=\\\"\");\n b.append(xAxisTitle);\n b.append(\"\\\" yAxisTitle=\\\"\");\n b.append(yAxisTitle);\n b.append(\"\\\" xRangeMin=\\\"\");\n b.append(xRangeMin);\n b.append(\"\\\" xRangeMax=\\\"\");\n b.append(xRangeMax);\n b.append(\"\\\" xRangeIncr=\\\"\");\n b.append(xRangeIncr);\n b.append(\"\\\" yRangeMin=\\\"\");\n b.append(yRangeMin);\n b.append(\"\\\" yRangeMax=\\\"\");\n b.append(yRangeMax);\n b.append(\"\\\" yRangeIncr=\\\"\");\n b.append(yRangeIncr);\n b.append(\"\\\" >\\n\");\n\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource)dataSources.get(i);\n b.append(ds.toXML());\n b.append(\"\\n\");\n }\n\n return b.toString();\n }", "public abstract String getConfig();", "private HTMLElement generateIntroHTML(IntroHTML element, int indentLevel) {\n \t\tif (element.isInlined())\n \t\t\treturn generateInlineIntroHTML(element, indentLevel);\n \t\telse\n \t\t\treturn generateEmbeddedIntroHTML(element, indentLevel);\n \t}", "Element getElement();", "@Override\n\tpublic String generateHTML() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString level = \"\\t\";\n\t\tstringBuilder.append(level.repeat(levelCount)+\"<div>\\n\");\n\t\tlevelCount++;\n\t\tfor (HTMLGenerator htmlGenerator : tags) {\n\t\t\tstringBuilder.append(level.repeat(levelCount)+htmlGenerator.generateHTML());\n\t\t}\n\t\tstringBuilder.append(\"</div>\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "public final ElemTemplate getTemplate() {\n/* 220 */ return this.m_template;\n/* */ }", "public static Element getTextureElement(String textureName) {\r\n\t\tElement textureElement = null;\r\n\t\tfor (Element tex : settings) {\r\n\t\t\tif (tex.getAttribute(\"name\").equals(textureName)) {\r\n\t\t\t\ttextureElement = tex;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn textureElement;\r\n\t}", "HTML createHTML();", "private JPanel getConfigInfo() {\r\n\t\tif (configInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints14.gridy = 0;\r\n\t\t\tgridBagConstraints14.weightx = 1.0;\r\n\t\t\tgridBagConstraints14.weighty = 1.0;\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t}\r\n\t\treturn configInfo;\r\n\t}", "public String getHtmlDescription() {\n return \"<html>\" + getName() + \"</html>\";\n }", "@Override\n\tpublic Element saveToXml(boolean includeConfigState) {\n\t\treturn null;\n\t}", "private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;", "private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }", "private String getReleaseNotesHtml() {\r\n\t\tString pkgName = _act.getPackageName();\r\n\t\tResources res = _act.getResources();\r\n\t\tint resId = res.getIdentifier(releaseNotesXml, \"xml\", pkgName);\r\n\t\tXmlResourceParser parser = res.getXml(resId);\r\n\r\n\t\tString html = \"<html><head>\" + css + \"</head><body>\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint eventType = parser.getEventType();\r\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\t\tif ((eventType == XmlPullParser.START_TAG) && (parser.getName().equals(\"release\"))){\r\n\t\t\t\t\thtml = html + parseReleaseNotesXML(parser);\r\n\t\t\t\t}\r\n\t\t\t\teventType = parser.next();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (XmlPullParserException e)\r\n\t\t{\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tparser.close();\r\n\t\t}\r\n\t\thtml = html + \"</body></html>\";\r\n\t\treturn html;\r\n\t}", "public Config getConfig();", "private HTMLElement generateInlineIntroHTML(IntroHTML element,\n \t\t\tint indentLevel) {\n \t\tStringBuffer content = readFromFile(element.getSrc());\n \t\tif (content != null && content.length() > 0) {\n \t\t\t// Create the outer div element\n \t\t\tHTMLElement divElement = generateDivElement(element.getId(),\n \t\t\t\t\tIIntroHTMLConstants.DIV_CLASS_INLINE_HTML, indentLevel);\n \t\t\t// add the content of the specified file into the div element\n \t\t\tdivElement.addContent(content);\n \t\t\treturn divElement;\n \t\t}\n \t\treturn null;\n \t}", "public String getConfig() {\n\t\treturn(config);\n\t}", "ViewElement getViewElement();", "@XmlAttribute(name=\"cfg\")\n\tpublic String getCfgAsString() {\n\t\tif(cfg != null)\n\t\t\treturn cfg.toString();\n\t\treturn null;\n\t}", "@Override\n\tprotected String getJRXML() throws Exception {\n\t\treturn \"CaseFile.jrxml\";\n\t}", "@Override\n\t\t\tpublic String getText(Object element) {\n\t\t\t\treturn \"test\";\n\t\t\t}", "public String getEl() {\r\n\t\treturn el;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString text = getElement();\r\n\t\tif (mainAttr!=null) {\r\n\t\t\ttext += \" \" + mainAttr;\r\n\t\t}\r\n\t\treturn text;\r\n\t}", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "Element xmlGetElements() {\n Element eItem= new Element(\"RandomName\");\n\n eItem.addContent(new Element(\"sName\").setText(xmlControl.escapeChars(sName)));\n eItem.addContent(new Element(\"sRace\").setText(xmlControl.escapeChars(sRace)));\n eItem.addContent(new Element(\"bLast\").setText(bLast?\"true\":\"false\"));\n eItem.addContent(new Element(\"bFemale\").setText(bFemale?\"true\":\"false\"));\n eItem.addContent(new Element(\"bMale\").setText(bMale?\"true\":\"false\"));\n\n\n return eItem;\n }", "@Property Element getDocumentElement();", "public void configure(Element parent) {\n }", "String getConfigName();", "Element() {\n\t}", "private HTMLElement generateIntroElement(IntroElement element,\n \t\t\tint indentLevel) {\n \t\tif (element == null)\n \t\t\treturn null;\n \t\tswitch (element.getType()) {\n \t\t\tcase IntroElement.DIV :\n \t\t\t\treturn generateIntroDiv((IntroDiv) element, indentLevel);\n \t\t\tcase IntroElement.LINK :\n \t\t\t\treturn generateIntroLink((IntroLink) element, indentLevel);\n \t\t\tcase IntroElement.HTML :\n \t\t\t\treturn generateIntroHTML((IntroHTML) element, indentLevel);\n \t\t\tcase IntroElement.IMAGE :\n \t\t\t\treturn generateIntroImage((IntroImage) element, indentLevel);\n \t\t\tcase IntroElement.TEXT :\n \t\t\t\treturn generateIntroText((IntroText) element, indentLevel);\n \t\t\tdefault :\n \t\t\t\treturn null;\n \t\t}\n \t}", "public interface ConfigParser {\n\n // TODO rbala Missing Javadoc\n IElementDef parse(ConfigSource configSource);\n\n}", "protected <T> String renderMarkupListMapping(BasicListFormMapping<T> listMapping) {\n\t\tString pathSep = listMapping.getConfig().getPathSeparator();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<div id=\\\"\").append(listMapping.getName()).append(pathSep).append(\"begin\\\"></div>\").append(newLine());\n\t\tfor (FormMapping<?> m : listMapping.getList()) {\n\t\t\tsb.append(renderElement(m));\n\t\t}\n\t\tsb.append(\"<div id=\\\"\").append(listMapping.getName()).append(pathSep).append(\"end\\\"></div>\").append(newLine());\n\t\treturn sb.toString();\n\t}", "private static String getModeledElementLabel(ModeledElement element) {\n\t\treturn element.getName();\n\t}", "public String createConfigXml(PentahoConfig config) throws ApsSystemException {\n\t\tElement root = this.createConfigElement(config);\n\t\tDocument doc = new Document(root);\n\t\tXMLOutputter out = new XMLOutputter();\n\t\tFormat format = Format.getPrettyFormat();\n\t\tformat.setIndent(\"\\t\");\n\t\tout.setFormat(format);\n\t\treturn out.outputString(doc);\n\t}", "public interface LazElement {\n Element getElement(Element actorTabSliderElement);\n\n String getBeanName(Object data);\n}", "public interface ITexturable<T extends AbstractElement> extends IElement<T> {\n /**\n * Sets the background image for an element\n */\n default T background(ResourceUrn urn) {\n get(ImageCmp.class).ifPresentOrElse(bgCmp -> {\n var texture = Assets.get(urn, Texture.class);\n if (texture.isEmpty())\n logger().warn(\"Failed to find texture {} for element {}\", urn, name());\n else\n bgCmp.setTexture(texture.get());\n }, () -> {\n var bgCmp = new ImageCmp(cast());\n var texture = Assets.get(urn, Texture.class);\n if (texture.isEmpty())\n logger().warn(\"Failed to find texture {} for element {}\", urn, name());\n else\n bgCmp.setTexture(texture.get());\n add(bgCmp);\n });\n return cast();\n }\n\n /**\n * Sets the background texture to the texture with the given name\n */\n default T background(Name name) {\n return background(new ResourceUrn(new Name(\"engine\"), new Name(\"textures\"), name));\n }\n\n}", "public String getHtml() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(StringContainer sc : container) {\n\t\t\tsb.append(sc.getString());\n\t\t}\n\t\treturn \"<html><body>\"+sb.toString()+\"</body></html>\";\n\t}", "Element toXML();", "@Override\n\t\t\tpublic String getText(Object element) {\n\t\t\t\treturn \"test5\";\n\t\t\t}", "public URL getHtmlDescription();", "public String render() {\n return root.render(0, m_instanceBags);\n }", "public String createConfigXml(WebMailConfig config) throws ApsSystemException {\n \t\tElement root = new Element(ROOT);\n \t\ttry {\n \t\t\tif (config.getLocalhost() != null && config.getLocalhost().trim().length() > 0) {\n \t\t\t\tElement localhostElem = new Element(LOCALHOST_ELEM);\n \t\t\t\tlocalhostElem.addContent(config.getLocalhost().trim());\n \t\t\t\troot.addContent(localhostElem);\n \t\t\t}\n \t\t\tif (config.getDomainName() != null && config.getDomainName().trim().length() > 0) {\n \t\t\t\tElement domainElem = new Element(DOMAIN_ELEM);\n \t\t\t\tdomainElem.addContent(new CDATA(config.getDomainName()));\n \t\t\t\troot.addContent(domainElem);\n \t\t\t}\n \t\t\t\n \t\t\tElement certificatesElem = new Element(CERTIFICATES_ELEM);\n \t\t\tElement enableElem = new Element(CERTIFICATES_ENABLE_CHILD);\n \t\t\tenableElem.addContent(String.valueOf(config.isCertificateEnable()));\n \t\t\tcertificatesElem.addContent(enableElem);\n \t\t\tElement lazyCheckElem = new Element(CERTIFICATES_LAZYCHECK_CHILD);\n \t\t\tlazyCheckElem.addContent(String.valueOf(config.isCertificateLazyCheck()));\n \t\t\tcertificatesElem.addContent(lazyCheckElem);\n \t\t\tElement certPathElem = new Element(CERTIFICATES_CERTPATH_CHILD);\n \t\t\tcertPathElem.addContent(new CDATA(config.getCertificatePath()));\n \t\t\tcertificatesElem.addContent(certPathElem);\n \t\t\tElement debugOnConsoleElem = new Element(CERTIFICATES_DEBUGONCONSOLE_CHILD);\n \t\t\tdebugOnConsoleElem.addContent(String.valueOf(config.isCertificateDebugOnConsole()));\n \t\t\tcertificatesElem.addContent(debugOnConsoleElem);\n \t\t\troot.addContent(certificatesElem);\n \t\t\t\n \t\t\tElement imapElem = new Element(IMAP_ELEM);\n \t\t\tElement imapHostElem = new Element(IMAP_HOST_CHILD);\n \t\t\timapHostElem.addContent(new CDATA(config.getImapHost()));\n \t\t\timapElem.addContent(imapHostElem);\n \t\t\tElement imapProtocolElem = new Element(IMAP_PROTOCOL_CHILD);\n \t\t\timapProtocolElem.addContent(config.getImapProtocol());\n \t\t\timapElem.addContent(imapProtocolElem);\n \t\t\tElement imapPortElem = new Element(IMAP_PORT_CHILD);\n \t\t\tInteger imapPort = config.getImapPort();\n \t\t\timapPortElem.addContent(imapPort==null ? \"\" : imapPort.toString());\n \t\t\timapElem.addContent(imapPortElem);\n \t\t\troot.addContent(imapElem);\n \t\t\t\n \t\t\tElement smtpElem = new Element(SMTP_ELEM);\n \t\t\tsmtpElem.setAttribute(SMTP_DEBUG_ATTR, String.valueOf(config.isDebug()));\n \t\t\tsmtpElem.setAttribute(SMTP_JAPS_USER_AUTH_ATTR, String.valueOf(config.isSmtpJapsUserAuth()));\n \t\t\tElement smtpHostElem = new Element(IMAP_HOST_CHILD);\n \t\t\tsmtpHostElem.addContent(new CDATA(config.getSmtpHost()));\n \t\t\tsmtpElem.addContent(smtpHostElem);\n \t\t\tElement smtpUserElem = new Element(SMTP_USER_CHILD);\n \t\t\tsmtpUserElem.addContent(config.getSmtpUserName());\n \t\t\tsmtpElem.addContent(smtpUserElem);\n \t\t\tElement smtpPasswordElem = new Element(SMTP_PASSWORD_CHILD);\n \t\t\tsmtpPasswordElem.addContent(config.getSmtpPassword());\n \t\t\tsmtpElem.addContent(smtpPasswordElem);\n \t\t\tElement smtpPortElem = new Element(SMTP_PORT_CHILD);\n \t\t\tInteger smtpPort = config.getSmtpPort();\n \t\t\tsmtpPortElem.addContent(smtpPort==null ? \"\" : smtpPort.toString());\n \t\t\tsmtpElem.addContent(smtpPortElem);\n \t\t\troot.addContent(smtpElem);\n \t\t\t\n \t\t\tElement folderElem = new Element(FOLDER_ELEM);\n \t\t\tElement trashFolderElem = new Element(FOLDER_TRASH_CHILD);\n \t\t\ttrashFolderElem.addContent(config.getTrashFolderName());\n \t\t\tfolderElem.addContent(trashFolderElem);\n \t\t\tElement sentFolderElem = new Element(FOLDER_SENT_CHILD);\n \t\t\tsentFolderElem.addContent(config.getSentFolderName());\n \t\t\tfolderElem.addContent(sentFolderElem);\n \t\t\troot.addContent(folderElem);\n \t\t} catch (Throwable t) {\n \t\t\tApsSystemUtils.logThrowable(t, this, \"createConfigXml\");\n \t\t\tthrow new ApsSystemException(\"Error creating config\", t);\n \t\t}\n \t\tDocument doc = new Document(root);\n\t\tXMLOutputter out = new XMLOutputter();\n\t\tFormat format = Format.getPrettyFormat();\n\t\tformat.setIndent(\"\\t\");\n\t\tout.setFormat(format);\n\t\treturn out.outputString(doc);\n \t}" ]
[ "0.59383416", "0.5824867", "0.58207154", "0.5496328", "0.5482122", "0.54652387", "0.5406261", "0.5362932", "0.5199687", "0.5130057", "0.51227796", "0.5074043", "0.50609505", "0.49344978", "0.4930566", "0.493047", "0.49191177", "0.4914994", "0.49101955", "0.48560235", "0.4854777", "0.48348004", "0.48235705", "0.48222294", "0.47823787", "0.47729734", "0.4757803", "0.47528931", "0.47486043", "0.4744539", "0.47381312", "0.47147188", "0.4712407", "0.47086525", "0.46986932", "0.46881026", "0.46824074", "0.4681644", "0.46779883", "0.4662518", "0.46505222", "0.46501964", "0.46468598", "0.46420723", "0.46245545", "0.46192834", "0.4615339", "0.4613403", "0.46101916", "0.45888546", "0.45865324", "0.45861477", "0.45784014", "0.45766678", "0.45683306", "0.45667848", "0.45606598", "0.4552515", "0.45505056", "0.45466405", "0.45459938", "0.45286417", "0.45096296", "0.4509189", "0.45075342", "0.44996333", "0.44985375", "0.44955468", "0.44937053", "0.44852716", "0.44802314", "0.4469515", "0.4460331", "0.4458567", "0.44568875", "0.44499654", "0.44467396", "0.444144", "0.4432616", "0.44316447", "0.44311452", "0.44298914", "0.4428587", "0.44234985", "0.4418255", "0.44129142", "0.44092745", "0.44001988", "0.439766", "0.4395659", "0.43897626", "0.43890578", "0.43785", "0.43751872", "0.437152", "0.4369239", "0.4368591", "0.43655646", "0.4365065", "0.43626365" ]
0.7891593
0
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(String oldId, String newRawHtml)/*-{ return $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, configJS);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "public void newElement() {\r\n }", "public static native Element overwrite(String oldId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, configJS);\r\n\t}-*/;", "protected abstract M createNewElement();", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "Element createElement();", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\r\n\t\tpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void setElement(String newElem) { element = newElem;}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void addAndReplaceElement(Widget widget, Element toReplace) {\n addAndReplaceElement(widget, DOM.asOld(toReplace));\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Node replaceChild(Node newChild, Node oldChild);", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "@Override\n\tpublic void undo() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( newElements != null ) {\n\t\t\t\tfor ( AbstractDrawableComponent ade : newElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\t \t\n\t\t\t}\n\n\t\t\tif ( oldElements != null ) {\n\t\t\t\tparent.add( oldElements );\n\t\t\t}\n\t\t}\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < newElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = newElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( oldElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void update(){\n\t\tresponse = buildHtml(new ArrayList<HtmlElement>(elements));\n\t}", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "public ReplaceElementsCommand( DECollection parent, List<AbstractDrawableComponent> oldElements, \n\t\t\tList<AbstractDrawableComponent> newElements) {\n\t\t\n\t\tthis.parent = parent;\t\n\t\tthis.oldElements = oldElements;\n\t\tthis.newElements = newElements;\n\t\t\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public LibraryElement cloneElement();", "public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}", "HTMLElement createHTMLElement();", "public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public Element generateElement(Document dom);", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "void replace(CtElement element);", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public abstract void addToXmlElement(Element element);", "Form addElement(Element element);", "E createDefaultElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "public abstract void setUpElementsWithData();", "public void setElement(T newvalue);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "@Override\r\n\t\tpublic Attr setAttributeNode(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "void append(E element);", "void appendChild(Object child);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "WebElement getNewAccountButton();", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "BElement createBElement();", "private void removeHiElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <hi>'s content\n // instead of the <hi>.\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.appendContent(p_element);\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public abstract void setDataToElementXY();", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public interface IElementManipulation extends IRodinElement {\n\n\t/**\n\t * Copies this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the copy should be inserted,\n\t * or <code>null</code> if the copy should be inserted as the\n\t * last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the copy\n\t * retains the name of this element\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be copied. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>The destination element is a root element\n\t * (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid copy(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Removes all attributes and children of this element, forcing if specified\n\t * and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be cleared. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * </ul>\n\t */\n\tvoid clear(boolean force, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Deletes this element, forcing if specified and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be deleted. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n\t/**\n\t * Moves this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the element should be\n\t * inserted, or <code>null</code> if the element should be\n\t * inserted as the last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the\n\t * element retains its name\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be moved. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>This element or the destination element is a root\n\t * element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid move(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Renames this element to the given name.\n\t * \n\t * @param name\n\t * the new name for the element\n\t * @param replace\n\t * <code>true</code> if any existing element with the target name\n\t * should be replaced, and <code>false</code> to throw an\n\t * exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be renamed. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid rename(String name, boolean replace, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n}", "@Override\n\tpublic boolean replaceChild(Node existing, Node by) {\n\t\treturn false;\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "public org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements addNewReportTableDataElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements)get_store().add_element_user(REPORTTABLEDATAELEMENTS$0);\n return target;\n }\n }", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.72011256", "0.6594436", "0.6475496", "0.64111286", "0.6141411", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.5412717", "0.5412205", "0.53954804", "0.5367876", "0.53578174", "0.5296898", "0.52891225", "0.5243595", "0.5230673", "0.52244186", "0.52139187", "0.5198871", "0.5184164", "0.51594", "0.5154055", "0.5137481", "0.5092557", "0.50512284", "0.50428784", "0.5026015", "0.5024194", "0.502241", "0.50141203", "0.49881616", "0.49517822", "0.49392202", "0.49338982", "0.49291345", "0.49272197", "0.49180284", "0.49063787", "0.48926294", "0.48906243", "0.4883651", "0.48836508", "0.48766395", "0.48569804", "0.4820957", "0.4813921", "0.48047945", "0.48031846", "0.4802836", "0.47958305", "0.47799885", "0.47701314", "0.47524026", "0.4744592", "0.47390586", "0.472444", "0.47244364", "0.47181752", "0.47112024", "0.47050533", "0.46992618", "0.46940827", "0.46917498", "0.46820796", "0.4675314", "0.4669256", "0.46690708", "0.4660756", "0.46600023", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834" ]
0.6396196
4
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(String oldId, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.overwrite(oldId, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, configJS);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "public void newElement() {\r\n }", "public static native Element overwrite(String oldId, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml);\r\n\t}-*/;", "protected abstract M createNewElement();", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "Element createElement();", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\r\n\t\tpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void setElement(String newElem) { element = newElem;}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void addAndReplaceElement(Widget widget, Element toReplace) {\n addAndReplaceElement(widget, DOM.asOld(toReplace));\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Node replaceChild(Node newChild, Node oldChild);", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "@Override\n\tpublic void undo() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( newElements != null ) {\n\t\t\t\tfor ( AbstractDrawableComponent ade : newElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\t \t\n\t\t\t}\n\n\t\t\tif ( oldElements != null ) {\n\t\t\t\tparent.add( oldElements );\n\t\t\t}\n\t\t}\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < newElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = newElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( oldElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void update(){\n\t\tresponse = buildHtml(new ArrayList<HtmlElement>(elements));\n\t}", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "public ReplaceElementsCommand( DECollection parent, List<AbstractDrawableComponent> oldElements, \n\t\t\tList<AbstractDrawableComponent> newElements) {\n\t\t\n\t\tthis.parent = parent;\t\n\t\tthis.oldElements = oldElements;\n\t\tthis.newElements = newElements;\n\t\t\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public LibraryElement cloneElement();", "public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}", "HTMLElement createHTMLElement();", "public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public Element generateElement(Document dom);", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "void replace(CtElement element);", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public abstract void addToXmlElement(Element element);", "Form addElement(Element element);", "E createDefaultElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "public abstract void setUpElementsWithData();", "public void setElement(T newvalue);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "@Override\r\n\t\tpublic Attr setAttributeNode(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "void append(E element);", "void appendChild(Object child);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "WebElement getNewAccountButton();", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "BElement createBElement();", "private void removeHiElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <hi>'s content\n // instead of the <hi>.\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.appendContent(p_element);\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public abstract void setDataToElementXY();", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public interface IElementManipulation extends IRodinElement {\n\n\t/**\n\t * Copies this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the copy should be inserted,\n\t * or <code>null</code> if the copy should be inserted as the\n\t * last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the copy\n\t * retains the name of this element\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be copied. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>The destination element is a root element\n\t * (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid copy(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Removes all attributes and children of this element, forcing if specified\n\t * and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be cleared. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * </ul>\n\t */\n\tvoid clear(boolean force, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Deletes this element, forcing if specified and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be deleted. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n\t/**\n\t * Moves this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the element should be\n\t * inserted, or <code>null</code> if the element should be\n\t * inserted as the last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the\n\t * element retains its name\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be moved. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>This element or the destination element is a root\n\t * element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid move(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Renames this element to the given name.\n\t * \n\t * @param name\n\t * the new name for the element\n\t * @param replace\n\t * <code>true</code> if any existing element with the target name\n\t * should be replaced, and <code>false</code> to throw an\n\t * exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be renamed. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid rename(String name, boolean replace, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n}", "@Override\n\tpublic boolean replaceChild(Node existing, Node by) {\n\t\treturn false;\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "public org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements addNewReportTableDataElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements)get_store().add_element_user(REPORTTABLEDATAELEMENTS$0);\n return target;\n }\n }", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.72011256", "0.6594436", "0.6475496", "0.64111286", "0.6396196", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.5412717", "0.5412205", "0.53954804", "0.5367876", "0.53578174", "0.5296898", "0.52891225", "0.5243595", "0.5230673", "0.52244186", "0.52139187", "0.5198871", "0.5184164", "0.51594", "0.5154055", "0.5137481", "0.5092557", "0.50512284", "0.50428784", "0.5026015", "0.5024194", "0.502241", "0.50141203", "0.49881616", "0.49517822", "0.49392202", "0.49338982", "0.49291345", "0.49272197", "0.49180284", "0.49063787", "0.48926294", "0.48906243", "0.4883651", "0.48836508", "0.48766395", "0.48569804", "0.4820957", "0.4813921", "0.48047945", "0.48031846", "0.4802836", "0.47958305", "0.47799885", "0.47701314", "0.47524026", "0.4744592", "0.47390586", "0.472444", "0.47244364", "0.47181752", "0.47112024", "0.47050533", "0.46992618", "0.46940827", "0.46917498", "0.46820796", "0.4675314", "0.4669256", "0.46690708", "0.4660756", "0.46600023", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834" ]
0.6141411
5
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(Element oldElem, String newRawHtml)/*-{ return $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, configJS);\r\n\t}-*/;", "public void newElement() {\r\n }", "public static native Element overwrite(String oldId, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml);\r\n\t}-*/;", "public static native Element overwrite(String oldId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, configJS);\r\n\t}-*/;", "protected abstract M createNewElement();", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "Element createElement();", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\r\n\t\tpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void setElement(String newElem) { element = newElem;}", "XomNode appendElement(Element element) throws XmlBuilderException;", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void addAndReplaceElement(Widget widget, Element toReplace) {\n addAndReplaceElement(widget, DOM.asOld(toReplace));\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Node replaceChild(Node newChild, Node oldChild);", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "@Override\n\tpublic void undo() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( newElements != null ) {\n\t\t\t\tfor ( AbstractDrawableComponent ade : newElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\t \t\n\t\t\t}\n\n\t\t\tif ( oldElements != null ) {\n\t\t\t\tparent.add( oldElements );\n\t\t\t}\n\t\t}\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < newElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = newElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( oldElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void update(){\n\t\tresponse = buildHtml(new ArrayList<HtmlElement>(elements));\n\t}", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "public ReplaceElementsCommand( DECollection parent, List<AbstractDrawableComponent> oldElements, \n\t\t\tList<AbstractDrawableComponent> newElements) {\n\t\t\n\t\tthis.parent = parent;\t\n\t\tthis.oldElements = oldElements;\n\t\tthis.newElements = newElements;\n\t\t\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public LibraryElement cloneElement();", "public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}", "HTMLElement createHTMLElement();", "public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public Element generateElement(Document dom);", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "void replace(CtElement element);", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public abstract void addToXmlElement(Element element);", "Form addElement(Element element);", "E createDefaultElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "public abstract void setUpElementsWithData();", "public void setElement(T newvalue);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "@Override\r\n\t\tpublic Attr setAttributeNode(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "void append(E element);", "void appendChild(Object child);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "WebElement getNewAccountButton();", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "BElement createBElement();", "private void removeHiElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <hi>'s content\n // instead of the <hi>.\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.appendContent(p_element);\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public abstract void setDataToElementXY();", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public interface IElementManipulation extends IRodinElement {\n\n\t/**\n\t * Copies this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the copy should be inserted,\n\t * or <code>null</code> if the copy should be inserted as the\n\t * last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the copy\n\t * retains the name of this element\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be copied. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>The destination element is a root element\n\t * (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid copy(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Removes all attributes and children of this element, forcing if specified\n\t * and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be cleared. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * </ul>\n\t */\n\tvoid clear(boolean force, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Deletes this element, forcing if specified and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be deleted. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n\t/**\n\t * Moves this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the element should be\n\t * inserted, or <code>null</code> if the element should be\n\t * inserted as the last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the\n\t * element retains its name\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be moved. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>This element or the destination element is a root\n\t * element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid move(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Renames this element to the given name.\n\t * \n\t * @param name\n\t * the new name for the element\n\t * @param replace\n\t * <code>true</code> if any existing element with the target name\n\t * should be replaced, and <code>false</code> to throw an\n\t * exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be renamed. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid rename(String name, boolean replace, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n}", "@Override\n\tpublic boolean replaceChild(Node existing, Node by) {\n\t\treturn false;\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "public org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements addNewReportTableDataElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements)get_store().add_element_user(REPORTTABLEDATAELEMENTS$0);\n return target;\n }\n }", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.720307", "0.6595951", "0.641278", "0.63984716", "0.6142927", "0.5956673", "0.58677423", "0.5839994", "0.58285993", "0.58108455", "0.57679856", "0.57510096", "0.5735239", "0.56564605", "0.5656077", "0.5583336", "0.5578871", "0.55726177", "0.5529684", "0.54367864", "0.54135644", "0.54127413", "0.53945", "0.5366481", "0.53591245", "0.52985126", "0.52892274", "0.5243591", "0.5230722", "0.5225307", "0.52147424", "0.5198479", "0.51870227", "0.51594204", "0.5154324", "0.51385415", "0.50907904", "0.5051858", "0.5041248", "0.5027375", "0.5024892", "0.5023351", "0.5014959", "0.49878487", "0.495351", "0.49393326", "0.49350566", "0.4930046", "0.492647", "0.49196213", "0.49056363", "0.4893998", "0.48909223", "0.48846963", "0.48842606", "0.48756963", "0.48583686", "0.48209396", "0.48140892", "0.48049647", "0.48027396", "0.48010093", "0.47974133", "0.47827876", "0.4770575", "0.47552317", "0.47449034", "0.47384903", "0.47265413", "0.4724919", "0.4717303", "0.47117117", "0.47046375", "0.46991426", "0.46967328", "0.46915513", "0.46824446", "0.46776655", "0.4669393", "0.4668986", "0.46626368", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399", "0.4661399" ]
0.64777374
2
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(Element oldElem, DomConfig config)/*-{ var configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()(); return $wnd.Ext.DomHelper.overwrite(oldElem, configJS); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, Element newElem)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newElem);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "public void newElement() {\r\n }", "public static native Element overwrite(String oldId, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml);\r\n\t}-*/;", "public static native Element overwrite(String oldId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, configJS);\r\n\t}-*/;", "protected abstract M createNewElement();", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "Element createElement();", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\r\n\t\tpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void setElement(String newElem) { element = newElem;}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void addAndReplaceElement(Widget widget, Element toReplace) {\n addAndReplaceElement(widget, DOM.asOld(toReplace));\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Node replaceChild(Node newChild, Node oldChild);", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "@Override\n\tpublic void undo() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( newElements != null ) {\n\t\t\t\tfor ( AbstractDrawableComponent ade : newElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\t \t\n\t\t\t}\n\n\t\t\tif ( oldElements != null ) {\n\t\t\t\tparent.add( oldElements );\n\t\t\t}\n\t\t}\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < newElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = newElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( oldElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void update(){\n\t\tresponse = buildHtml(new ArrayList<HtmlElement>(elements));\n\t}", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "public ReplaceElementsCommand( DECollection parent, List<AbstractDrawableComponent> oldElements, \n\t\t\tList<AbstractDrawableComponent> newElements) {\n\t\t\n\t\tthis.parent = parent;\t\n\t\tthis.oldElements = oldElements;\n\t\tthis.newElements = newElements;\n\t\t\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public LibraryElement cloneElement();", "public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}", "HTMLElement createHTMLElement();", "public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public Element generateElement(Document dom);", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "void replace(CtElement element);", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public abstract void addToXmlElement(Element element);", "Form addElement(Element element);", "E createDefaultElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "public abstract void setUpElementsWithData();", "public void setElement(T newvalue);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "@Override\r\n\t\tpublic Attr setAttributeNode(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "void append(E element);", "void appendChild(Object child);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "WebElement getNewAccountButton();", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "BElement createBElement();", "private void removeHiElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <hi>'s content\n // instead of the <hi>.\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.appendContent(p_element);\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public abstract void setDataToElementXY();", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public interface IElementManipulation extends IRodinElement {\n\n\t/**\n\t * Copies this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the copy should be inserted,\n\t * or <code>null</code> if the copy should be inserted as the\n\t * last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the copy\n\t * retains the name of this element\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be copied. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>The destination element is a root element\n\t * (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid copy(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Removes all attributes and children of this element, forcing if specified\n\t * and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be cleared. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * </ul>\n\t */\n\tvoid clear(boolean force, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Deletes this element, forcing if specified and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be deleted. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n\t/**\n\t * Moves this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the element should be\n\t * inserted, or <code>null</code> if the element should be\n\t * inserted as the last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the\n\t * element retains its name\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be moved. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>This element or the destination element is a root\n\t * element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid move(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Renames this element to the given name.\n\t * \n\t * @param name\n\t * the new name for the element\n\t * @param replace\n\t * <code>true</code> if any existing element with the target name\n\t * should be replaced, and <code>false</code> to throw an\n\t * exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be renamed. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid rename(String name, boolean replace, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n}", "@Override\n\tpublic boolean replaceChild(Node existing, Node by) {\n\t\treturn false;\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "public org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements addNewReportTableDataElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements)get_store().add_element_user(REPORTTABLEDATAELEMENTS$0);\n return target;\n }\n }", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.72011256", "0.6475496", "0.64111286", "0.6396196", "0.6141411", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.5412717", "0.5412205", "0.53954804", "0.5367876", "0.53578174", "0.5296898", "0.52891225", "0.5243595", "0.5230673", "0.52244186", "0.52139187", "0.5198871", "0.5184164", "0.51594", "0.5154055", "0.5137481", "0.5092557", "0.50512284", "0.50428784", "0.5026015", "0.5024194", "0.502241", "0.50141203", "0.49881616", "0.49517822", "0.49392202", "0.49338982", "0.49291345", "0.49272197", "0.49180284", "0.49063787", "0.48926294", "0.48906243", "0.4883651", "0.48836508", "0.48766395", "0.48569804", "0.4820957", "0.4813921", "0.48047945", "0.48031846", "0.4802836", "0.47958305", "0.47799885", "0.47701314", "0.47524026", "0.4744592", "0.47390586", "0.472444", "0.47244364", "0.47181752", "0.47112024", "0.47050533", "0.46992618", "0.46940827", "0.46917498", "0.46820796", "0.4675314", "0.4669256", "0.46690708", "0.4660756", "0.46600023", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834" ]
0.6594436
1
Creates new Dom element(s) and overwrites the contents of the old element with them.
public static native Element overwrite(Element oldElem, Element newElem)/*-{ return $wnd.Ext.DomHelper.overwrite(oldElem, newElem); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native Element overwrite(Element oldElem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, configJS);\r\n\t}-*/;", "public static native Element overwrite(Element oldElem, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldElem, newRawHtml);\r\n\t}-*/;", "public void newElement() {\r\n }", "public static native Element overwrite(String oldId, String newRawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, newRawHtml);\r\n\t}-*/;", "public static native Element overwrite(String oldId, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.overwrite(oldId, configJS);\r\n\t}-*/;", "protected abstract M createNewElement();", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public ReplaceElementsCommand( DECollection parent, AbstractDrawableComponent oldElement, \n\t\t\tAbstractDrawableComponent newElement) {\n\t\t\n\t\tthis.parent = parent;\n\t\t\n\t\tif ( this.oldElements == null ) {\n\t\t\tthis.oldElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.oldElements.clear();\n\t\t}\n\t\t\n\t\tthis.oldElements.add( oldElement );\t\n\n\t\tif ( this.newElements == null ) {\n\t\t\tthis.newElements = new ArrayList<AbstractDrawableComponent>();\n\t\t}\n\t\telse {\n\t\t\tthis.newElements.clear();\n\t\t}\n\t\t\n\t\tthis.newElements.add( newElement );\t\n\t\t\n\t\t\t\t\n\t}", "public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}", "Element createElement();", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\r\n\t\tpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public void setElement(String newElem) { element = newElem;}", "@Override\n\tpublic void execute() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( oldElements != null ) {\t\n\t\t\t\tfor ( AbstractDrawableComponent ade : oldElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( newElements != null ) {\n\t\t\t\tparent.add( newElements );\t\t\t\n\t\t\t}\t\t\t\t\n\t\t}\t\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < oldElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = oldElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( newElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void addAndReplaceElement(Widget widget, Element toReplace) {\n addAndReplaceElement(widget, DOM.asOld(toReplace));\n }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "Node replaceChild(Node newChild, Node oldChild);", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}", "@Override\n\tpublic void undo() throws PGenException {\n\n\t\tif ( parent != null ){\n\t\t\tif ( newElements != null ) {\n\t\t\t\tfor ( AbstractDrawableComponent ade : newElements ) {\n\t\t\t\t\tparent.removeElement( ade );\n\t\t\t\t}\t \t\n\t\t\t}\n\n\t\t\tif ( oldElements != null ) {\n\t\t\t\tparent.add( oldElements );\n\t\t\t}\n\t\t}\n\t\telse if ( oldElements.size() == newElements.size() ){\n\t\t\tfor ( int ii = 0; ii < newElements.size(); ii++ ) {\n\t\t\t\tAbstractDrawableComponent ade = newElements.get(ii);\n\t\t\t\tif ( ade.getParent() != null && ade.getParent() instanceof DECollection ){\n\t\t\t\t\tDECollection dec = (DECollection) ade.getParent();\n\t\t\t\t\tdec.removeElement( ade );\n\t\t\t\t\tdec.add( oldElements.get( ii ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void update(){\n\t\tresponse = buildHtml(new ArrayList<HtmlElement>(elements));\n\t}", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "public ReplaceElementsCommand( DECollection parent, List<AbstractDrawableComponent> oldElements, \n\t\t\tList<AbstractDrawableComponent> newElements) {\n\t\t\n\t\tthis.parent = parent;\t\n\t\tthis.oldElements = oldElements;\n\t\tthis.newElements = newElements;\n\t\t\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "BaleElementEvent fixup()\n{\n if (line_elements.size() > 0) addLine();\n\n BaleElementEvent ee = new BaleElementEvent(root_element,new_children);\n root_element.clear();\n for (BaleElement be : new_children) root_element.add(be);\n BoardLog.logD(\"BALE\",\"ELEMENT FIXUP ROOT \" + new_children.size());\n\n return ee;\n}", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public LibraryElement cloneElement();", "public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}", "HTMLElement createHTMLElement();", "public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public static native ExtElement append(Element parent, Element child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, child, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public Element generateElement(Document dom);", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "protected Element createDivAndAddToDocument() {\r\n\t\tfinal Element div = DOM.createDiv();\r\n\t\tdiv.setInnerHTML(this.getCurrentTestName());\r\n\t\tDOM.setStyleAttribute(div, Css.BACKGROUND_COLOR, \"lime\");\r\n\t\tthis.addElement(div);\r\n\t\treturn div;\r\n\t}", "void replace(CtElement element);", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "@Override\n public abstract void addToXmlElement(Element element);", "Form addElement(Element element);", "E createDefaultElement();", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "public abstract void setUpElementsWithData();", "public void setElement(T newvalue);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "@Override\r\n\t\tpublic Attr setAttributeNode(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addAfter(T existing, T element) throws ElementNotFoundException;", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "protected void changeContent() {\n byte[] data = Arrays.copyOf(content.getContent(),\n content.getContent().length + 1);\n data[content.getContent().length] = '2'; // append one byte\n content.setContent(data);\n LOG.info(\"document content changed\");\n }", "void append(E element);", "void appendChild(Object child);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "@Override\n public Element createDomImpl(Renderable element) {\n Element e = Document.get().createDivElement();\n e.getStyle().setDisplay(Display.INLINE);\n // Do the things that the doodad API should be doing by default.\n DomHelper.setContentEditable(e, false, false);\n DomHelper.makeUnselectable(e);\n // ContentElement attempts this, and fails, so we have to do this ourselves.\n e.getStyle().setProperty(\"whiteSpace\", \"normal\");\n e.getStyle().setProperty(\"lineHeight\", \"normal\");\n return e;\n }", "WebElement getNewAccountButton();", "public ElemTemplateElement appendChild(ElemTemplateElement newChild)\n {\n\n error(XSLTErrorResources.ER_CANNOT_ADD,\n new Object[]{ newChild.getNodeName(),\n this.getNodeName() }); //\"Can not add \" +((ElemTemplateElement)newChild).m_elemName +\n\n //\" to \" + this.m_elemName);\n return null;\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "@Override\r\n\tpublic DTextArea add(final DNode newChild) throws DOMException {\r\n\t\tsuper.add(newChild) ;\r\n\t\treturn this ;\r\n\t}", "BElement createBElement();", "private void removeHiElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <hi>'s content\n // instead of the <hi>.\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.appendContent(p_element);\n }\n else\n {\n parent.add(node);\n }\n }\n }", "public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public abstract void setDataToElementXY();", "public Node newSibling(String name, String content) {\n Node n = new Node(name);\n n.e.appendChild(d.createTextNode(content));\n this.e.getParentNode().appendChild(n.e);\n return n;\n }", "public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public interface IElementManipulation extends IRodinElement {\n\n\t/**\n\t * Copies this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the copy should be inserted,\n\t * or <code>null</code> if the copy should be inserted as the\n\t * last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the copy\n\t * retains the name of this element\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be copied. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>The destination element is a root element\n\t * (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid copy(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Removes all attributes and children of this element, forcing if specified\n\t * and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be cleared. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * </ul>\n\t */\n\tvoid clear(boolean force, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Deletes this element, forcing if specified and necessary.\n\t * \n\t * @param force\n\t * a flag controlling whether underlying resources that are not\n\t * in sync with the local file system will be tolerated (same as\n\t * the force flag in IResource operations).\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be deleted. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource (CORE_EXCEPTION)</li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid delete(boolean force, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n\t/**\n\t * Moves this element to the given container.\n\t * \n\t * @param container\n\t * the destination container\n\t * @param sibling\n\t * the sibling element before which the element should be\n\t * inserted, or <code>null</code> if the element should be\n\t * inserted as the last child of the container\n\t * @param rename\n\t * the new name for the element, or <code>null</code> if the\n\t * element retains its name\n\t * @param replace\n\t * <code>true</code> if any existing child in the container with\n\t * the target name should be replaced, and <code>false</code> to\n\t * throw an exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be moved. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element, container element, or sibling does\n\t * not exist (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The container is of an incompatible type\n\t * (INVALID_DESTINATION)</li>\n\t * <li>The sibling is not a child of the given container\n\t * (INVALID_SIBLING)</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>The container or this element is read-only (READ_ONLY)\n\t * </li>\n\t * <li>This element or the destination element is a root\n\t * element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t * \n\t * @exception IllegalArgumentException\n\t * if container is <code>null</code>\n\t */\n\tvoid move(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;\n\n\t/**\n\t * Renames this element to the given name.\n\t * \n\t * @param name\n\t * the new name for the element\n\t * @param replace\n\t * <code>true</code> if any existing element with the target name\n\t * should be replaced, and <code>false</code> to throw an\n\t * exception in the event of a name collision\n\t * @param monitor\n\t * a progress monitor, or <code>null</code> if progress reporting\n\t * is not desired\n\t * @exception RodinDBException\n\t * if this element could not be renamed. Reasons include:\n\t * <ul>\n\t * <li>This Rodin element does not exist\n\t * (ELEMENT_DOES_NOT_EXIST)</li>\n\t * <li>A <code>CoreException</code> occurred while updating\n\t * an underlying resource</li>\n\t * <li>The new name is invalid (INVALID_NAME)</li>\n\t * <li>A child in the container already exists with the same\n\t * name (NAME_COLLISION) and <code>replace</code> has been\n\t * specified as <code>false</code></li>\n\t * <li>This element is read-only (READ_ONLY)</li>\n\t * <li>This element is a root element (ROOT_ELEMENT)</li>\n\t * </ul>\n\t */\n\tvoid rename(String name, boolean replace, IProgressMonitor monitor)\n\t\t\tthrows RodinDBException;\n\n}", "@Override\n\tpublic boolean replaceChild(Node existing, Node by) {\n\t\treturn false;\n\t}", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "public org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements addNewReportTableDataElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements target = null;\n target = (org.dhis2.ns.schema.dxf2.ReportTableDataElementsDocument.ReportTableDataElements)get_store().add_element_user(REPORTTABLEDATAELEMENTS$0);\n return target;\n }\n }", "public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }", "public List Insert(Element new_elem){\n\tboolean ret_val ;\n\tList aux03 ;\n\tList aux02 ;\n\taux03 = this ;\n\taux02 = new List();\n\tret_val = aux02.InitNew(new_elem,aux03,false);\n\treturn aux02 ;\n }" ]
[ "0.6594436", "0.6475496", "0.64111286", "0.6396196", "0.6141411", "0.59565395", "0.58673596", "0.5838385", "0.58269495", "0.58114874", "0.5768213", "0.5749713", "0.5732488", "0.56561816", "0.5655432", "0.5583912", "0.5576231", "0.55727184", "0.55277413", "0.543726", "0.5412717", "0.5412205", "0.53954804", "0.5367876", "0.53578174", "0.5296898", "0.52891225", "0.5243595", "0.5230673", "0.52244186", "0.52139187", "0.5198871", "0.5184164", "0.51594", "0.5154055", "0.5137481", "0.5092557", "0.50512284", "0.50428784", "0.5026015", "0.5024194", "0.502241", "0.50141203", "0.49881616", "0.49517822", "0.49392202", "0.49338982", "0.49291345", "0.49272197", "0.49180284", "0.49063787", "0.48926294", "0.48906243", "0.4883651", "0.48836508", "0.48766395", "0.48569804", "0.4820957", "0.4813921", "0.48047945", "0.48031846", "0.4802836", "0.47958305", "0.47799885", "0.47701314", "0.47524026", "0.4744592", "0.47390586", "0.472444", "0.47244364", "0.47181752", "0.47112024", "0.47050533", "0.46992618", "0.46940827", "0.46917498", "0.46820796", "0.4675314", "0.4669256", "0.46690708", "0.4660756", "0.46600023", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834", "0.46598834" ]
0.72011256
0
Inserts an HTML fragment into the DOM.
public static native String insertHtml(String where, Element el, String html) /*-{ return $wnd.Ext.DomHelper.insertHtml(where, el, html); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int index, String fragment);", "@Function DocumentFragment createDocumentFragment();", "public static String insertBlock(String base_html, String delimiter, String block){\r\n delimiter = \"<!--\" + delimiter + \"-->\"; \r\n String[] parts = base_html.split(delimiter);\r\n String new_html = parts[0] + block + parts[2];\r\n return new_html;\r\n }", "public void append(String fragment);", "void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;", "public static native Element insertAfter(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, rawHtml);\r\n\t}-*/;", "private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n fragmentTransaction.addToBackStack(null);\r\n fragmentTransaction.commit();\r\n\t}", "public static native Element insertFirst(Element parent, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;", "public static native Element insertBefore(String id, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(id, rawHtml);\r\n\t}-*/;", "public static native Element insertFirst(String parentId, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parentId, rawHtml);\r\n\t}-*/;", "protected abstract void injectFragment(FragmentComponent fragmentComponent);", "void fragment(String fragment);", "void fragment(String fragment);", "public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;", "void insert(String delta) {\n \n if (!acceptInsert(delta)) {\n clear();\n } \n \n int cursor = mDisplay.getSelectionStart();\n mDisplay.getText().insert(cursor, delta);\n \n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n insertNestedFragment(position);\n }", "public void createFragment() {\n\n }", "private void insertNestedFragment(int position) {\n FragmentTransaction transaction = getChildFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_pager_view_container, getFragmentForPosition(position)).commit();\n }", "public void setContentViewFragment(int containerId, Fragment fragment, String tag) {\n\t\tgetSupportFragmentManager().beginTransaction().add(containerId, fragment, tag).commit();\r\n\t}", "public void replace(int start, int end, String fragment);", "public static Element insertElement(final Text textNode, final Element element, final int startIndex, final int endIndex) throws DOMException {\n\t\tfinal Text splitTextNode = splitText(textNode, startIndex, endIndex); //split the text node into pieces\n\t\tfinal Element parentElement = (Element)splitTextNode.getParentNode(); //get the text node's parent\n\t\tparentElement.replaceChild(element, splitTextNode); //replace the split text node with the element that will enclose it\n\t\telement.appendChild(splitTextNode); //add the split text node to the given element\n\t\treturn element; //return the inserted enclosing element\n\t}", "public void insert(int index, T element);", "public void launchFragment(String str, Bundle bundle) {\n getFragmentManager().beginTransaction().replace(16908290, Fragment.instantiate(this, str, bundle)).commit();\n Log.i(TAG, String.format(\"Fragment %s Displayed\", new Object[]{str}));\n }", "void insertTagContent(TemplateTag tag){\r\n \t\tif(tag.found){\r\n \t\t\ttemplateParts.set(tag.templatePosition,tag.getContent());\r\n \t\t}\r\n \t}", "private void setFragment(Fragment fragment, String tag){\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n //fragmentTransaction.add(R.id.content, fragment, tag);\n fragmentTransaction.replace(R.id.content, fragment);\n fragmentTransaction.commit();\n }", "protected abstract Fragment createFragment();", "private void toHQ() {\n if (hqFragment == null) {\n hqFragment = new HQFragment();\n fragmenttransaction.add(R.id.frame_content, hqFragment);\n } else {\n fragmenttransaction.show(hqFragment);\n }\n }", "public abstract void appendBlock();", "void insertView(ViewFrame view);", "private void insert(String text, AttributeSet style) {\r\n\t\ttry {\r\n\t\t\tdocument.insertString(getCaretPosition(), text, style);\r\n\t\t} catch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n\t\tPos = Pos.lastChild();\n\t\tsetlast();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "public void insert(T element);", "public void addFragment(Fragment frag, String title){\n fragments.add(frag);\n titles.add(title);\n }", "private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }", "public static void setHTML(String html) {\n if (create()) {\n tag.setInnerHTML(SimpleHtmlSanitizer.sanitizeHtml(html).asString());\n }\n }", "@Override\n\tpublic void editorInsert(String substring)\n\t{\n\t stringBuffer.replace(selectionStart,selectionEnd,substring);\n\t selectionEnd=selectionStart+substring.length();\n\t selectionStart=selectionEnd;\n\t\tSystem.out.println(\"DEBUG: inserting text [\" + substring + \"]\");\n\t}", "@Override\r\n\t\tprotected String doInBackground(Void... params) {\n\t\t\taddmainfragment.insert();//可加个boolean值,做判断\r\n\t\t\treturn null;\r\n\t\t}", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private void startAddBookFragment() {\n if (this.menu != null) {\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n }\n\n // Create new fragment and transaction\n AddBookFragment addBookFragment = new AddBookFragment();\n\n // consider using Java coding conventions (upper first char class names!!!)\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.activityAfterLoginId, addBookFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "void insert(int pos, String s);", "public void insert(E e);", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "private void attachFragment(String tag){\n floatingActionButton.hide();\n if (tag == null){\n return;\n }\n\n cache.setFragmentTAG(tag);\n fragmentTAG = tag;\n fragment = SelectDataTypeFragment.newInstance(tag);\n\n makeFragmentAttach();\n\n pageTitle = getString(utils.getPageTitleID(fragmentTAG));\n setPageTitle();\n }", "public void insert(Node n);", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.content_frame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.addToBackStack(null).commit();\n }", "@Override\r\n\t\tpublic Node appendChild(Node newChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void addContentFragment(Fragment fragment) {\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n Fragment currentContentFragment = mFragmentManager.findFragmentById(mContentViewId);\n int backStackCount = mFragmentManager.getBackStackEntryCount();\n ft.addToBackStack(FRAGMENT_TAG + \"_\" + backStackCount);\n ft.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left, R.anim.slide_in_left, R.anim.slide_out_right);\n // Manually increase the current fragment back stack count.\n ft.add(mContentViewId, fragment, FRAGMENT_TAG + \"_\" + (backStackCount + 1));\n ft.hide(currentContentFragment);\n ft.commit();\n }", "HTML createHTML();", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.MissedFrame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.commit();\n }", "private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void pushFragment(Fragment fragment) {\n if (fragment == null)\n return;\n\n FragmentManager fragmentManager = getFragmentManager();\n if (fragmentManager != null) {\n FragmentTransaction ft = fragmentManager.beginTransaction();\n if (ft != null) {\n ft.replace(R.id.container, fragment);\n ft.commit();\n }\n }\n }", "public static InsertStatementBuilder insert() {\r\n return new InsertStatementBuilder();\r\n }", "void appendXML(String path, DocumentFragment fragment)\n throws ProcessingException;", "void insert(T value, int position);", "public void insert(HuffmanTree node);", "protected void insertSpan(String content, Object span) {\n int start = mEditor.getSelectionStart();\n int end = mEditor.getSelectionEnd();\n Editable message = mEditor.getEditableText();\n\n // Insert the emoticon.\n message.replace(start, end, content);\n message.setSpan(span, start, start + content.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }", "public InsertBlockHTMLExecutable(RichTextArea rta)\n {\n super(rta);\n }", "public MyStringBuilder2 insert(int offset, String str)\n\t{\n\t\tif(offset > length || offset < 0) {\n\t\t\t//do nothing\n\t\t} else if(offset == length) {\n\t\t\t//append if at the end\n\t\t\tthis.append(str);\n\t\t} else {\n\t\t\tif (offset == 0) {\n\t\t\t\t//add new nodes from the front\n\t\t\t\tCNode newNode = new CNode(str.charAt(0));\n\t\t\t\tnewNode.next = firstC;\n\t\t\t\tfirstC = newNode;\n\t\t\t\toffset++;\n\t\t\t\tlength++;\n\t\t\t\trecursiveInsert(offset, 1, str);\n\t\t\t} else {\n\t\t\t\toffset -= 1;\n\t\t\t\tCNode nodeBefore = getCNodeAt(offset, firstC);\n\t\t\t\tCNode nodeAfter = nodeBefore.next;\n\t\t\t\trecursiveInsertMiddle(0, str, nodeBefore, nodeAfter);\n\t\t\t}\n\t\t\n\t\t}\n\t\treturn this;\n\t}", "private void showFragment(Fragment fragment) {\n Log.d(TAG, \"showFragment: Run selected fragment\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment)\n .commit();\n }", "public static Element setInnerHTML(Element e, SafeHtml str) {\n e.setInnerHTML(str.asString());\n return e;\n }", "public void addFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n mFragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString())\n .addToBackStack(fragment.getClass().getSimpleName().toString())\n .commit();\n }", "public void addFragment(Fragment fragment, String title) {\n fragments.add(fragment);\n fragmentTitles.add(title);\n }", "private void toXW() {\n if (fragment_XW == null) {\n fragment_XW = new Fragment_XW();\n fragmenttransaction.add(R.id.frame_content, fragment_XW);\n } else {\n fragmenttransaction.show(fragment_XW);\n }\n }", "public void insertNotice(BbsNotice notice);", "public void render(HtmlStringBuffer buffer);", "public void insert()\n\t{\n\t}", "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }", "void inject(WebClientFragment fragment);", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }", "@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}", "public void Insert(String st) {\n\t\ttable[hashFunction(st,m)].insert(st);\n\t}", "public void insert(int index, GuiElementBase element) {\n\t\tif (element.getContext() != null)\n\t\t\tthrow new UnsupportedOperationException(\"The specified element already has a context set\");\n\t\tif (getContext() != null)\n\t\t\telement.setContext(getContext());\n\t\telement.setParent(this);\n\t\tchildren.add(index, element);\n\t\t_hadChild = true;\n\t\tonChildAdded(element);\n\t}", "private void addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }", "private void showHelpFragment() {\n if (!helpFragment.isVisible()) {\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.add(R.id.relativeLayout, helpFragment, \"helpFragment\");\n transaction.commit();\n }\n\n else getFragmentManager().beginTransaction().remove(getFragmentManager().findFragmentByTag(\"helpFragment\")).commit();\n }", "private void showSection(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n\n\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, fragment);\n fragmentTransaction.commit();\n\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }", "private void loadFragment(Fragment fragment, String tag) {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.frame_tut, fragment, tag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n ft.commit();\n }", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "public static native Element insertFirst(Element parent, Element child)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, child);\r\n\t}-*/;", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "public void insert(T vertex, Point2D pos);", "private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }", "Node insertBefore(Node newChild, Node refChild);", "public void replaceFragment(int wordPosition){\n // access the fragment manager and begin transaction\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n\n // create word fragment and get the word from the recycler view fragment\n // word position is the list position of the word in the list of words\n WordFragment wordFragment = new WordFragment();\n Bundle args = new Bundle();\n args.putInt(WordFragment.WORD_INDEX, wordPosition);\n wordFragment.setArguments(args);\n // replace the word list with the word fragment\n ft.replace(R.id.fragment_container_top, wordFragment);\n ft.addToBackStack(null);\n\n ft.commit();\n }", "public void replaceFragment1(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.UpcomingFrame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.commit();\n }", "public void placePlayerFragment(Player player) {\n mToolBar.setTitle(player.getPerson().getName());\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragment_container,\n PlayerNationalityFragment.newFragment(player))\n //Allow users to backup through the fragments\n .addToBackStack(player.getPerson().getName())\n .commit();\n\n }", "public void insert(String s){\n\t\tinsertHelper(root, s);\n\t}", "public void replaceFragment(int id_content, Fragment fragment) {\r\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n transaction.replace(id_content, fragment);\r\n transaction.commit();\r\n }", "public void insert(String text) {\n\t\tcmd = new InsertCommand(text, editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void goAddFriends (View view){\n Fragment newFragment = new AddFriendsFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);", "private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }", "private void showHomeOnClick(){\n //create a new fragment and transaction\n homeFragment = new HomeFragment();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n //replace whatever is in the fragment container view with this fragment\n //and add the transaction to the back stack\n ft.add(R.id.fragment_container,homeFragment);\n ft.addToBackStack(null);\n ft.commit();\n }", "protected abstract void fragmentTrigger(Fragment fragment);", "void insert(int insertSize);" ]
[ "0.655219", "0.57767254", "0.57510495", "0.57291305", "0.5429791", "0.519389", "0.5121157", "0.51018345", "0.5097502", "0.5085511", "0.5009412", "0.49981752", "0.4992357", "0.4992357", "0.4980106", "0.484694", "0.48378775", "0.48263577", "0.48198202", "0.48091948", "0.4712848", "0.47060284", "0.4705584", "0.46909243", "0.46737024", "0.4667413", "0.46605527", "0.4653295", "0.4647642", "0.46308932", "0.46276155", "0.46189237", "0.45924237", "0.45652625", "0.45605522", "0.45495078", "0.4545362", "0.45378864", "0.45371616", "0.45337015", "0.4533085", "0.45152378", "0.45141914", "0.4503892", "0.44981027", "0.44946748", "0.44945756", "0.4480256", "0.44676542", "0.4464664", "0.44584724", "0.44546667", "0.44522634", "0.44511053", "0.4446482", "0.44452065", "0.44216222", "0.44213215", "0.44035077", "0.43966895", "0.43909502", "0.4389941", "0.43892264", "0.43801332", "0.43781248", "0.43776602", "0.43695068", "0.4367112", "0.43608543", "0.43601093", "0.43490678", "0.4348609", "0.43476716", "0.4344204", "0.4343183", "0.43410385", "0.43320185", "0.43306172", "0.43304208", "0.43206224", "0.43203002", "0.43186992", "0.43177292", "0.4314053", "0.43061844", "0.4303683", "0.43023562", "0.4301353", "0.42939064", "0.42890543", "0.42867845", "0.42846248", "0.4282649", "0.42800948", "0.42785737", "0.4275829", "0.42753658", "0.42623582", "0.42610383", "0.42562371" ]
0.6432973
1
// Method overrides // // Draw the contents of the Fixedpoint iteration demo panel.
public void draw() { super.draw(); k = 0; traceOK = true; // Initialize n, x0, and xn in the control panel. nText.setText(" "); x0Text.setText(" "); xnText.setText(" "); PlotFunction plotFunction = getSelectedPlotFunction(); // Create the fixed-point iteration root finder. finder = new FixedPointRootFinder((Function) plotFunction.getFunction()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[])\n {\n Frame test = new Frame();\n FixedPointPanel demo = new FixedPointPanel();\n\n Function function = new Function()\n {\n public float at( float x) { return (float) (x*x + 0.5); }\n// public float at( float x) { return (float) Math.sqrt(x); }\n };\n\n PlotFunction plotFunction =\n new PlotFunction(function, -2.25f, 2.25f, -1.25f, 5.25f);\n\n FUNCTIONS[0] = plotFunction;\n\n/*\n Function function = new Function()\n {\n public float at( float x) { return (float) Math.exp(1/x); }\n };\n\n PlotFunction plotFunction =\n new PlotFunction(function, -3.25f, 4.255f, -0.25f, 5.25f);\n*/\n\n test.setTitle(\"Fixed Point Test\");\n test.setSize(600, 500);\n\n test.setLayout(new BorderLayout());\n test.add(demo, BorderLayout.CENTER);\n\n test.setVisible(true);\n\n demo.chooseFunction(0);\n demo.draw();\n }", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "private void drawPoints(Graphics2D g2d) {\n for(int i = 0; i < controlPoints.length; i++) {\n int x = (int)controlPoints[i].x;\n int y = (int)controlPoints[i].y;\n drawFatPoint(x, y, g2d);\n }\n }", "public void drawParticles() {}", "public void draw(Graphics g, int... paneOffsets) { }", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }", "public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}", "public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}", "@Override\n\tpublic void Draw(float delta) {\n\t\t\n\t}", "@Override\n public void draw(WinPlotterFX plotter) {\n super.draw(plotter);\n plotter.printAt(x + (base / 3.2), y + (height / 3), name);\n }", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "void diplayNeighborPoints() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (point[i].position.dist(P) < 10) {\n\t\t\t\tmyParent.pushStyle();\n\t\t\t\tmyParent.fill(255, 255, 0);\n\t\t\t\tmyParent.text(i, point[i].x + 10, point[i].y + 5); // draw\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// point\n\t\t\t\tmyParent.text(\"left neighbor\", point[neighbor(i)[0]].x, point[neighbor(i)[0]].y);\n\t\t\t\tmyParent.text(\"right neighbor\", point[neighbor(i)[1]].x, point[neighbor(i)[1]].y);\n\t\t\t\tmyParent.text(\"opposite\", point[neighbor(i)[2]].x, point[neighbor(i)[2]].y);\n\t\t\t\t// neighbor(int sourcePointId)\n\t\t\t\tmyParent.noFill();\n\t\t\t\tmyParent.popStyle();\n\t\t\t}\n\t\t}\n\n\t\tif (state == State.SCALE_PORPORTIONALLY_POINT || state == State.SCALE_FREE_POINT)\n\t\t\tdisplayLineBetweenCurrentAndOppositePoints();\n\t}", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n }\n StdDraw.setPenRadius();\n }", "public void draw() {\n \n // TODO\n }", "public void display() {\n PVector d = location.get();\n float diam = d.y/height;\n println(diam);\n\n stroke(0);\n fill(255,0,0);\n ellipse (location.x, location.y, diameter, diameter);\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }", "public void draw() {\n \n }", "public void paintComponent(Graphics page)\r\n {\r\n super.paintComponent(page);\r\n \r\n //Goes through each object in the array list and\r\n //draws the dot.\r\n for(int i = 0; i < dotList.size(); i++)\r\n {\r\n \t ((Dot) dotList.get(i)).draw(page); //Draws the dot\r\n }\r\n }", "@Override\r\n public void draw() {\n }", "public void displaySlide() {\r\n\r\n\t\tfor (int row = 0; row < slideData.length; row++) {\r\n\t\t\tfor (int col = 0; col < slideData[0].length; col++) {\r\n\t\t\t\tSystem.out.print(slideData[row][col]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void display (Graphics2D g, double x, double y);", "public void paintComponent(Graphics page) {\n\n\t\tsuper.paintComponent(page);\n\n\t\tfor (Point spot : pointList) { // Keeps the dots the same color\n\n\t\t\tpage.setColor(new Color(randomRGB[pointList.indexOf(spot)][0], randomRGB[pointList.indexOf(spot)][1],\n\t\t\t\t\trandomRGB[pointList.indexOf(spot)][2], randomRGB[pointList.indexOf(spot)][3]));\n\n\t\t\tpage.fillOval(spot.x - SIZE, spot.y - SIZE, SIZE * 2, SIZE * 2);\n\t\t}\n\n\t\tpage.setColor(Color.GREEN);\n\t\tpage.drawString(\"Count: \" + pointList.size(), 5, 15);\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public void draw() {\n }", "@Override\r\n\tpublic void display(GLAutoDrawable drawable) {\r\n\t\tGL2 gl = drawable.getGL().getGL2();\r\n\t\tgl.glClear(GL2.GL_COLOR_BUFFER_BIT);\r\n\r\n\t\t//points should be in the same zone\r\n\t\tDrawMPL(gl,0,0,30,25);\r\n\t\tDrawMPL(gl,0,0,-100,0);\r\n\t\tDrawMPL(gl,0,0,0,-100);\r\n\t\tDrawMPL(gl,-70,25,30,25);\r\n\t\tDrawMPL(gl,-70,25,-100,0);\r\n\t\tDrawMPL(gl,-70,25,-70,-75);\r\n\t\tDrawMPL(gl,-100,-100,-100,0);\r\n\t\tDrawMPL(gl,-100,-100,0,-100);\r\n\t\tDrawMPL(gl,-100,-100,-70,-75);\r\n\t\tDrawMPL(gl,-70,-75,30,-75);\r\n\t\tDrawMPL(gl,0,-100,30,-75);\r\n\t\tDrawMPL(gl,30,-75,30,25);\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n public void draw()\n {\n }", "static private void showSolution() {\n\t\tfor (int x = 1; x <= 6; ++x) {\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(color[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(offset[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tbricks.showColorBricks(x);\n\n\t\t\tSystem.out.println(Messages.getString(\"dddcube.stringkey.2\")); //$NON-NLS-1$\n\t\t}\n\t}", "@Override\n public void draw() {\n }", "public void plot() {\n // TODO: Implement this method\n System.out.printf(\"%10s : [\",this.label);\n for (int i=1;i<=this.value;i++) {\n System.out.print(\"#\");\n }\n System.out.printf(\"] (%d)\\n\",this.value);\n }", "public void draw() {\n\n }", "public void draw() {\n\tbackground(bg_count); // set background to something\n\tbg_count = bg_count + bg_dir;\n\tif (bg_count >= 255) {\n\t bg_dir = -1;\n\t} else if (bg_count <= 0) {\n\t bg_count = 0;\n\t bg_dir = 1;\n\t}\n\tellipse_x = ellipse_x + ellipse_x_dir;\n\tellipse_y = ellipse_y - ellipse_y_dir;\n\n\tif (ellipse_x > width) {\n\t ellipse_x_dir = -1;\n\t ellipse_x = width - 1;\n\t} else if (ellipse_x < 0) {\n\t ellipse_x_dir = 1;\n\t ellipse_x = 0;\n\t}\n\tif (ellipse_y > height) {\n\t ellipse_y_dir = -1;\n\t ellipse_y = height - 1;\n\t} else if (ellipse_y < 0) {\n\t ellipse_y_dir = 1;\n\t ellipse_y = 0;\n\t}\n\n\tfill(0, 64, 0);\n\t// x y w h\n\trect(400, 300, 200, 100);\n\n\tfill(212, 111, 249);\n\t\n\tstrokeWeight(4.0f);\n\n\t// x y r1 r2 // can set to mouseX, mouseY\n\tellipse(ellipse_x, ellipse_y, 30, 30);\n\n\t// some draw methods associated with PApplet:\n\t// background(int)\n\t// stroke(int, int, int)\n\t// fill(int)\n\t// ellipse(x, y, radius_1, radius_2)\n\t// noFill()\n\n\t// text(str, x, y)\n }", "private void paintNumbers() {\n\n g2d.setColor(_BOARDCOLOR);\n g2d.drawString(\"0\", 100, 150);\n g2d.drawString(\"1\", 200, 150);\n g2d.drawString(\"2\", 300, 150);\n g2d.drawString(\"3\", 400, 150);\n g2d.drawString(\"4\", 100, 250);\n g2d.drawString(\"5\", 200, 250);\n g2d.drawString(\"6\", 300, 250);\n g2d.drawString(\"7\", 400, 250);\n g2d.drawString(\"8\", 100, 350);\n g2d.drawString(\"9\", 200, 350);\n g2d.drawString(\"10\", 300, 350);\n g2d.drawString(\"11\", 400, 350);\n g2d.drawString(\"12\", 100, 450);\n g2d.drawString(\"13\", 200, 450);\n g2d.drawString(\"14\", 300, 450);\n g2d.drawString(\"15\", 400, 450);\n }", "@Override public void paintComponent(Graphics g)\n{\n Dimension sz = getSize();\n Shape r = new Rectangle2D.Float(0,0,sz.width,sz.height);\n Graphics2D g2 = (Graphics2D) g.create();\n Color top = BoardColors.getColor(BICEX_EVAL_SCROLL_COLOR_PROP);\n g2.setColor(top);\n g2.fill(r);\n\n Collection<BicexEvaluationContext> inners = null;\n if (getContext() != null) inners = getContext().getInnerContexts();\n if (inners != null) {\n long start0 = getContext().getStartTime();\n long end0 = getContext().getEndTime();\n g2.setColor(BoardColors.getColor(BICEX_EVAL_SCROLL_CONTEXT_COLOR_PROP));\n for (BicexEvaluationContext ctx : inners) {\n\t double start = ctx.getStartTime();\n\t double end = ctx.getEndTime();\n\t double v0 = (start-start0)/(end0-start0)*sz.getWidth();\n\t double v1 = (end - start0)/(end0-start0)*sz.getWidth();\n\t Shape r1 = new Rectangle2D.Double(v0,0,v1-v0,sz.height);\n\t g2.fill(r1);\n }\n }\n super.paintComponent(g);\n}", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tg.setColor(Color.BLACK);\n\n\t\tg.setFont(numFont);\n\n\t\tif (param.showaxis) {\n\t\t\t// pixels\n\t\t\tint actualcenterx = (int) math.Math.scale(0, param.minx, param.maxx, 0, getWidth());\n\t\t\tint actualcentery = (int) math.Math.scale(0, param.miny, param.maxy, getHeight(), 0);\n\n\t\t\tg.drawLine(actualcenterx, 0, actualcenterx, getHeight());\n\t\t\tg.drawLine(0, actualcentery, getWidth(), actualcentery);\n\t\t\tg.drawString(0 + \"\", actualcenterx - xoffset, actualcentery + yoffset);\n\n\t\t\tg.drawString(param.maxx + \"\", getWidth() - xoffset * (param.maxx + \"\").length(), actualcentery + yoffset);\n\t\t\tg.drawString(param.minx + \"\", 0, actualcentery + yoffset);\n\t\t\tg.drawString(param.maxy + \"\", actualcenterx - xoffset * (param.maxy + \"\").length(), yoffset);\n\t\t\tg.drawString(param.miny + \"\", actualcenterx - xoffset * (param.miny + \"\").length(), getHeight() - yoffset);\n\t\t}\n\n\t\tfor (UIPointSet pointSet : pointSets) {\n\n\t\t\tint prevpx = 0, prevpy = 0;\n\t\t\tfor (int i = 0; i < pointSet.getPoints().length; i++) {\n\n\t\t\t\tdouble[] point = pointSet.getPoints()[i];\n\t\t\t\t// pixels\n\t\t\t\tint px = (int) math.Math.scale(point[0], param.minx, param.maxx, 0, getWidth());\n\t\t\t\tint py = (int) math.Math.scale(point[1], param.miny, param.maxy, getHeight(), 0);\n\n\t\t\t\tif (pointSet.getPointColor() != null) {\n\t\t\t\t\tint pointWidth = 10;\n\t\t\t\t\tg.setColor(pointSet.getPointColor());\n\t\t\t\t\tg.fillOval(px - pointWidth / 2, py - pointWidth / 2, pointWidth, pointWidth);\n\t\t\t\t}\n\n\t\t\t\tif (pointSet.getLineColor() != null && i > 0) {// if (Math.abs(y2 - y) < (getHeight())) {\n\t\t\t\t\tg.setColor(pointSet.getLineColor());\n\t\t\t\t\tg.drawLine(prevpx, prevpy, px, py);\n\t\t\t\t\tfor (int ii = 1; ii < 2; ii++) {\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy - ii, px, py - ii);\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy + ii, px, py + ii);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprevpx = px;\n\t\t\t\tprevpy = py;\n\n\t\t\t}\n\t\t}\n\n\t\tfor (PointBox bx : savedBoxes) {\n\t\t\tbx.updatePixCoordinate();\n\t\t\tg.setColor(bx.pointSet.getPointColor());\n\t\t\tbx.paint(g, clickingmBox && mBox.equals(bx), false);\n\t\t}\n\t\tif (showmBox) {\n\t\t\tint index = savedBoxes.indexOf(mBox);\n\t\t\tg.setColor(mBox.pointSet.getPointColor());\n\t\t\tif (index < 0) {\n\t\t\t\tmBox.paint(g, clickingmBox, false);\n\t\t\t} else {\n\t\t\t\tsavedBoxes.get(index).paint(g, clickingmBox, true);\n\t\t\t}\n\t\t\t// now draw the box (top left)\n\t\t\tint corneroffset = 10;\n\t\t\tString eqS = \"y = \" + mBox.pointSet.getTitle();\n\t\t\tString fnumS = pointSets.indexOf(mBox.pointSet) + \"\";\n\n\t\t\tint boxx = corneroffset + 10;\n\t\t\tint boxy = corneroffset;\n\t\t\tint boxw = eqS.length() * (xoffset - 4) + 8 + corneroffset;\n\t\t\tint boxh = yoffset + corneroffset;\n\n\t\t\tg.clearRect(boxx, boxy, boxw, boxh);\n\n\t\t\tg.drawString(eqS, xoffset + corneroffset, yoffset + corneroffset);\n\n\t\t\tg.setFont(subFont);\n\t\t\tg.drawString(fnumS, xoffset * 2 + corneroffset, (yoffset * 4 / 3) + corneroffset);\n\n\t\t\tg.drawRect(boxx, boxy, boxw, boxh);\n\n\t\t}\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"draw method\");\n\t}", "@Override\n public void display() {\n EasyViewer.beginOverlay();\n \n glColor4d( 0,1,0,alpha.getValue() );\n glLineWidth(2); \n glBegin( GL_LINE_STRIP );\n for ( int i = 0; i < 10; i++) {\n glVertex2d( 200 + i*10, 100 +i*i );\n }\n glEnd();\n \n glColor4d( 1,0,0,alpha.getValue() );\n glPointSize(5);\n glBegin( GL_POINTS );\n for ( int i = 0; i < 10; i++) {\n glVertex2d( 200 + i*10, 100+i*i );\n } \n glEnd();\n \n \n // lets draw some 2D text\n// glColor4d( 1,1,1,1 ); \n// EasyViewer.printTextLines( \"(100,100)\", 100, 100, 12, GLUT.BITMAP_HELVETICA_10 );\n// glRasterPos2d( 200, 200 );\n// EasyViewer.printTextLines( \"(200,200)\\ncan have a second line of text\", 200, 200, 12, GLUT.BITMAP_HELVETICA_10 );\n \n EasyViewer.endOverlay();\n \n }", "public void poofExample()\n\t{\n\t\tFalconLinePlot fig3 = new FalconLinePlot(new double[][]{{0.0,0.0}});\n\t\tfig3.yGridOn();\n\t\tfig3.xGridOn();\n\t\tfig3.setYLabel(\"Y (feet)\");\n\t\tfig3.setXLabel(\"X (feet)\");\n\t\tfig3.setTitle(\"Top Down View of FRC Field (30ft x 27ft) \\n shows global position of robot path, along with left and right wheel trajectories\");\n\n\n\t\t//force graph to show 1/2 field dimensions of 24.8ft x 27 feet\n\t\tdouble fieldWidth = 32.0;\n\t\tfig3.setXTic(0, 27, 1);\n\t\tfig3.setYTic(0, fieldWidth, 1);\n\n\t\t//kys alex im done\n\t\t//lets add field markers to help visual\n\t\t//http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2014/fe-00037_RevB.pdf\n\t\t//Goal line\n\t\tdouble[][] goalLine = new double[][] {{26.5,0}, {26.5, fieldWidth}};\n\t\tfig3.addData(goalLine, Color.black);\n\n\t\t//Low Goals roughly 33 inch x 33 inch and 24.6 ft apart (inside to inside)\n\t\tdouble[][] leftLowGoal = new double[][]{\n\t\t\t\t{26.5, fieldWidth/2 + 24.6/2},\n\t\t\t\t{26.5, (fieldWidth)/2 + 24.6/2 + 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 + 24.6/2 + 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 + 24.6/2},\n\t\t\t\t{26.5, fieldWidth/2 + 24.6/2},\n\t\t};\n\n\t\tdouble[][] rightLowGoal = new double[][]{\n\t\t\t\t{26.5, fieldWidth/2 - 24.6/2},\n\t\t\t\t{26.5, fieldWidth/2 - 24.6/2 - 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 - 24.6/2 - 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 - 24.6/2},\n\t\t\t\t{26.5, fieldWidth/2 - 24.6/2},\n\t\t};\n\n\t\tfig3.addData(leftLowGoal, Color.black);\n\t\tfig3.addData(rightLowGoal, Color.black);\n\n\t\t//Auto Line\n\t\tdouble[][] autoLine = new double[][] {{26.5-18,0}, {26.5-18, fieldWidth}};\n\t\tfig3.addData(autoLine, Color.black);\n\n\n\t\tdouble[][] CheesyPath = new double[][]{\n\t\t\t\t{7,16},\n\t\t\t\t{11,16},\n\t\t\t\t{17,28},\n\t\t\t\t{23,28},\n\t\t};\n\t\t\n\t\t\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\n\t\tdouble totalTime = 5; //seconds\n\t\tdouble timeStep = 0.1; //period of control loop on Rio, seconds\n\t\tdouble robotTrackWidth = 2; //distance between left and right wheels, feet\n\n\t\tfinal FalconPathPlanner path = new FalconPathPlanner(CheesyPath);\n\t\tpath.calculate(totalTime, timeStep, robotTrackWidth);\n\t\t\n\t\tSystem.out.println(\"Time in ms: \" + (System.currentTimeMillis()-start));\n\n\t\t//waypoint path\n\t\tfig3.addData(path.nodeOnlyPath,Color.blue,Color.green);\n\n\t\t//add all other paths\n\t\tfig3.addData(path.smoothPath, Color.red, Color.blue);\n\t\tfig3.addData(path.leftPath, Color.magenta);\n\t\tfig3.addData(path.rightPath, Color.magenta);\n\n\n\t\t//Velocity\n\t\tFalconLinePlot fig4 = new FalconLinePlot(path.smoothCenterVelocity,null,Color.blue);\n\t\tfig4.yGridOn();\n\t\tfig4.xGridOn();\n\t\tfig4.setYLabel(\"Velocity (ft/sec)\");\n\t\tfig4.setXLabel(\"time (seconds)\");\n\t\tfig4.setTitle(\"Velocity Profile for Left and Right Wheels \\n Left = Cyan, Right = Magenta\");\n\t\tfig4.addData(path.smoothRightVelocity, Color.magenta);\n\t\tfig4.addData(path.smoothLeftVelocity, Color.cyan);\n\n\t\t//path heading accumulated in degrees\n\t\t//FalconPathPlanner.print(path.heading);\n\n\n\t}", "public void draw();", "public void draw();", "public void draw();", "@Override\n public void draw(GraphicsContext gc, int sides){}", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n public void draw(Graphics graphics){\n graphics.fillRect(referencePoint.getX() + width / 3, referencePoint.getY() + height / 3, width / 3, height / 3);\n }", "public abstract void drawPiece(int x, int y, Graphics g);", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw(){\n }", "@Override\n\tpublic void draw(Graphics g, JPanel panel) {\n\t\t\n\t}", "void render() {\n smooth();\n for (int x = 0; x < yvalues.length; x++) {\n noStroke();\n fill(0,0,255,100);\n ellipseMode(CENTER);\n ellipse(x*xspacing,yvalues[x],16,16);\n }\n }", "public void draw() {\n if (numSides <= 6) {\n System.out.println(\"- - - - - -\");\n \n for (int i = numSides - 2; i < numSides; i++) {\n System.out.print(\" | \");\n for (int j = 0; j < this.value ; j++) {\n if (value == 1) {\n System.out.print(\" \");\n }\n if (i % 2 == 0) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n if (value == 1) {\n System.out.print(\" \");\n }\n }\n }\n System.out.println(\"\");\n System.out.println(\"- - - - - -\");\n } else {\n print();\n }\n }", "public PointDisplay(Point[] points, int diameter, boolean connectTheDots,\n\t\t\tint jiggleFactor) {\n\t\tsuper(\"Points Lab\");\n\t\tpanel = new PointPanel(points, diameter, connectTheDots, jiggleFactor);\n\t\tthis.add(panel);\n\t\tthis.pack();\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setVisible(true);\n\n\t\t// The 10 is the delay, in milliseconds, for the timer. Increasing\n\t\t// the 10 will slow down the frame rate.\n\t\tTimer timer = new Timer(10, new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tpanel.repaint();\n\t\t\t}\n\t\t});\n\t\ttimer.start();\n\t}", "@Override\r\n\tpublic void withDraw(int x) {\n\t\t\r\n\t}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "public void draw() {\n final int columns = (int) (2 * Math.ceil(Math.max(-minx, maxx)));\n final int rows = (int) (2 * Math.ceil(Math.max(-miny, maxy)));\n\n final int drawColumns;\n final int drawRows;\n drawColumns = drawRows = Math.max(columns, rows);\n\n double leftOffsetPx = BORDER;\n double rightOffsetPx = BORDER;\n double topOffsetPx = BORDER;\n double bottomOffsetPx = BORDER;\n\n final double availableWidth = view.getWidth() - leftOffsetPx - rightOffsetPx;\n final double availableHeight = view.getHeight() - topOffsetPx - bottomOffsetPx;\n\n final double drawWidth;\n final double drawHeight;\n drawWidth = drawHeight = Math.min(availableWidth, availableHeight);\n\n leftOffsetPx = rightOffsetPx = (view.getWidth() - drawWidth) / 2;\n topOffsetPx = bottomOffsetPx = (view.getHeight() - drawHeight) / 2;\n\n // Adjust for aspect ratio\n columnWidth = rowHeight = drawHeight / columns;\n\n centerX = (drawColumns / 2.0) * columnWidth + leftOffsetPx;\n centerY = (drawRows / 2.0) * rowHeight + topOffsetPx;\n\n drawVerticalLine((float) centerX, topOffsetPx, bottomOffsetPx);\n drawHorizontalLine((float) centerY, leftOffsetPx, rightOffsetPx);\n\n int yTick = (int) (-drawRows / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (yTick <= drawRows / 2.0) {\n if (yTick != 0) {\n final String label = yTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", yTick) : null;\n drawYTick(-yTick * rowHeight + centerY, centerX, label);\n }\n yTick += TICK_INTERVAL;\n }\n\n int xTick = (int) (-drawColumns / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (xTick <= drawColumns / 2.0) {\n if (xTick != 0) {\n final String label = xTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", xTick) : null;\n drawXTick(xTick * columnWidth + centerX, centerY, label);\n }\n xTick += TICK_INTERVAL;\n }\n\n double adaptiveTextSize = getAdaptiveTextSize();\n\n final Paint paint = new Paint();\n final float textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, (float)adaptiveTextSize, view.getResources().getDisplayMetrics());\n paint.setTextSize(textSize);\n paint.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));\n for (Entry entry : data.getEntries()) {\n final double x = entry.getX();\n final double y = entry.getY();\n\n final double xDraw = x * columnWidth + centerX;\n final double yDraw = -y * rowHeight + centerY;\n\n CharSequence dispStr = entry.getStringLabel();\n if (dispStr == null) {\n dispStr = String.format(\"%.0f\", entry.getValue());\n }\n\n\n\n\n Rect bounds = getTextRectBounds(dispStr, paint);\n int textHeight = bounds.height();\n int textWidth = bounds.width();\n canvas.drawText(dispStr, 0, dispStr.length(),\n (float) xDraw - textWidth * 0.5f, (float) yDraw + textHeight * 0.5f,\n paint);\n }\n\n }", "@Override\n\tpublic void debugDraw(Graphics g) {\n\t\tfor(int i = 0; i < CELL_SIDE_COUNT; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < CELL_SIDE_COUNT; j++)\n\t\t\t{\n\t\t\t\t//Place code for debug drawing here\n\t\t\t}\n\t\t}\n\t}", "public void draw()\n\t{\t\t\n\t\tArrayList<Segment> seg = new ArrayList<Segment>();\n\t\tfor(int i = 0; i < hullVertices.length - 1; i++)\n\t\t{\n\t\t\tSegment s = new Segment(hullVertices[i], hullVertices[i+1]);\n\t\t\tseg.add(s);\n\t\t}\n\t\tSegment s1 = new Segment(hullVertices[hullVertices.length-1], hullVertices[0]);\n\t\tseg.add(s1);\n\t\t// Based on Section 4.1, generate the line segments to draw for display of the convex hull.\n\t\t// Assign their number to numSegs, and store them in segments[] in the order.\n\t\tSegment[] segments = new Segment[seg.size()];\n\t\tfor(int i = 0; i < seg.size(); i++)\n\t\t{\n\t\t\tsegments[i] = seg.get(i);\n\t\t}\n\t\t// The following statement creates a window to display the convex hull.\n\t\tPlot.myFrame(pointsNoDuplicate, segments, getClass().getName());\n\t}", "public void draw() {\r\n System.out.print(this);\r\n }", "public void paintComponent(final Graphics the_graphics)\n {\n super.paintComponent(the_graphics);\n final Graphics2D g2d = (Graphics2D) the_graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setFont(my_font);\n g2d.setColor(Color.WHITE);\n g2d.setStroke(new BasicStroke(STROKE_SIZE));\n g2d.drawString(PIECE_STRING, (getWidth() / (STROKE_SIZE * STROKE_SIZE)) - \n (PIECE_STRING.length() / STROKE_SIZE), (int) (getHeight() * LABEL_STARTING_Y));\n \n for (int y = Piece.NUMBER_OF_BLOCKS - 1; 0 <= y; y--) \n {\n for (int x = 0; x < Piece.NUMBER_OF_BLOCKS; x++) \n {\n for (int i = 0; i < Piece.NUMBER_OF_BLOCKS; i++) \n {\n final Point block = my_board.nextPiece().blocks()[i];\n if (block.x() == x && block.y() == y) \n {\n g2d.setColor(my_board.nextPiece().color());\n g2d.fill(new Rectangle2D.Double((x * getWidth() * BLOCK_SIZE_CONSTANT) + \n (int) (getWidth() * BLOCK_STARTING_X), (getHeight() / 2) + \n (float) (getWidth() * BLOCK_SIZE_CONSTANT) - (y * getWidth() * \n BLOCK_SIZE_CONSTANT), getWidth() * BLOCK_SIZE_CONSTANT, getWidth() * \n BLOCK_SIZE_CONSTANT));\n g2d.setColor(Color.DARK_GRAY);\n g2d.draw(new Rectangle2D.Double((x * getWidth() * BLOCK_SIZE_CONSTANT) + \n (int) (getWidth() * BLOCK_STARTING_X), (getHeight() / 2) + \n (float) (getWidth() * BLOCK_SIZE_CONSTANT) - (y * getWidth() * \n BLOCK_SIZE_CONSTANT), getWidth() * BLOCK_SIZE_CONSTANT, getWidth() * \n BLOCK_SIZE_CONSTANT));\n } \n }\n }\n }\n }", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "public void drawSelf() {\n for (Point p : matches) {\n this.drawPoint(p, Color.WHITE);\n }\n }", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "public void showGrid(Vector<int[]> predictionList) \n{\n int width=1000, height=600;\n//System.out.println(\"I am here\");\n\t//readChartData();\n\t//f.pack();\n\t//Demo2D.setSize(new Dimension(width, height));\n //f.setSize(new Dimension(width, height));\n //f.setVisible(true);\n\t//BufferedImage bi=(BufferedImage)Demo2D.createImage(width, height);\n\tBufferedImage bi=ImgFactory.getImg(width, height); //new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\tGraphics g=bi.getGraphics();\n\t//paint(g);\n\t//Demo2D.paint(g);\n\t//int i=0;\n\t//if (myQuotes.size() <1) return;\n\t\n\tGraphics2D g2 = (Graphics2D) g;\n \t//BufferedImage toDraw=buildImgBuf(new Dimension(width, height));\n\tboolean ok=drawGrid(g2, new Dimension(width, height), predictionList);\n\t//if (toDraw == null) return false;\n\tg2.setBackground(Color.white);\n\t\n\tg2.drawImage(bi, null, 0, 0);\n\t\n\tg2.getBackground();\n \n\tg2.drawImage(bi, null, 0, 0);\n\t\n\tString dFF=\"PossibleHits\";\n\tFile myPredic=new File(dFF+\".png\");\n\ttry {\n\t\tImageIO.write(bi, \"png\", myPredic);\n\t} catch (IOException e){return ;}\n\t\t\n\t\n\t\n\t\tFile myDup=new File(dFF+\"_2.png\");\n\t\tFile myOld=new File(dFF+\"Old.png\");\n\t\tif (myOld.exists()) myOld.delete();\n\t\tif (myDup.exists() && !myOld.exists()) myDup.renameTo(myOld);\n\t\tmyPredic.renameTo(myDup);\n\t\n}", "void setStepCounterTileXY();", "void drawCurrentTick();", "@Override\n public void draw(Graphics g) {\n for (int i = 0; i < values.size(); i++) {\n g.setColor(Color.GRAY);\n g.fillRect(i * 25 - 5, 250 - values.get(i), 10, values.get(i));\n }\n super.draw(g);\n }", "@Override\n public void printFigure() {\n System.out.println(\"It is triangular prism\");\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public static void show(int[] kd){\n final int NUM_OF_LINES = 5;\n\n Line[] lines = new Line[NUM_OF_LINES];\n\n //gives each array element the necessary memory\n for(int i = 0; i < NUM_OF_LINES; i++){\n lines[i] = new Line();\n }\n\n //in order to print\n lines[0].setLine(4,0,0);\n lines[1].setLine(3,1,2);\n lines[2].setLine(2,3,5);\n lines[3].setLine(1,6,9);\n lines[4].setLine(0,10,14);\n\n for(int i = 0; i < NUM_OF_LINES; i++){\n String tab = \"\";\n\n //creates the 'tab' effect based on position\n for(int j = 0; j < lines[i].getT(); j++){\n tab += \" \";\n }\n System.out.print(tab);\n\n for(int j = lines[i].getA(); j < lines[i].getB() + 1; j++){\n if(kd[j] == 0){\n System.out.print(\". \");\n }\n else{\n System.out.print(\"x \");\n }\n }\n System.out.println();\n }\n\n }", "@Override\n public void paintComponent() {\n Graphics2D graphics = gameInstance.getGameGraphics();\n graphics.setColor(Color.ORANGE);\n\n final int diff = (PacmanGame.GRID_SIZE/2) - pointCircleRadius;\n graphics.fill(new Ellipse2D.Double(this.x + diff, this.y + diff, pointCircleRadius*2, pointCircleRadius*2));\n }", "private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}", "void draw();", "private void draw() {\n\n // Current generation (y-position on canvas)\n int generation = 0;\n\n // Looping while still on canvas\n while (generation < canvasHeight / CELL_SIZE) {\n\n // Next generation\n cells = generate(cells);\n\n // Drawing\n for (int i = 0; i < cells.length; i++) {\n gc.setFill(colors[cells[i]]);\n gc.fillRect(i * CELL_SIZE, generation * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }\n\n // Next line..\n generation++;\n }\n }", "@Override\n\tpublic void paint(Graphics2D g2d, float interpolation) \n\t{\n\t\tthis.paint(g2d);\n\t}", "public void drawPoint(DrawPanelModel drawPanelModel);", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tint length = cont.getLength();\n\t\tint start = cont.getStart();\n\t\tint stop = cont.getStop();\n\n\t\tg.drawString(String.valueOf(length)+\"bp\",(int)(this.getSize().getWidth()/2),15); // tekend de lengte in baseparen in het midden van de panel\n\t\tg.fillRect(5,40,(int)(this.getSize().getWidth()-10),5);\n\n\t\tint stepSize = calculateStepSize(length);\n\t\tint first = (start - (start % stepSize)) + stepSize - 1;\t// de waarde van first is gelijk aan de positie in de sequentie van de\n\t\t// eerste nucleotide waarboven de eerste ruler lijn getekend word\n\n\t\tfor (int j = first; j < stop; j+= stepSize){\n\n\n\t\t\tint pos = (int) DrawingTools.calculateLetterPosition(this.getWidth(), length,Double.valueOf(j-start)); //schaald de posities in sequentie naar de breedte van de panel\n\t\t\tg.drawLine(pos,40,pos,30);\t\t\t\t\t\t\t\t// draws line on the ruler\n\t\t\tg.drawString(String.valueOf(j + 1) , pos, 30);\t\t// draws the nucleotide position(in sequence) above the line\n\n\t\t}\n\n\t\tint alpha = 127; // 50% transparent/\n\t\tColor myColour = new Color(255, 0, 0, alpha);\n\t\tg.setColor(myColour);\n\n\t\tif (x < x2){\n\t\t\tg.fillRect(x,0,x2-x,getHeight()); //selectie rechthoek\n\t\t}\n\t\telse{\n\t\t\tg.fillRect(x2,0,x-x2,getHeight()); //inverse rechthoek.\n\t\t}\n\t}", "public void paintComponent(Graphics page)\n\t{\n\t\tsuper.paintComponent(page);\n\t\tpage.setColor(Color.yellow);\n\n\t\tfor(Map.Entry<Point, Point> clickPoint : points.entrySet())\n\t\t{\n\t\t\tpage.drawLine(clickPoint.getKey().x, clickPoint.getKey().y, clickPoint.getValue().x, clickPoint.getValue().y);\n\t\t}\n\t}", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public static void main(String[] args) throws Exception {\n Mapper mapper = new Mapper() {\n @Override\n public double f(double x, double y) {\n return 10 * Math.sin(x / 10) * Math.cos(y / 20) * x;\n }\n };\n\n // Define range and precision for the function to plot\n Range range = new Range(-150, 150);\n int steps = 50;\n\n // Create the object to represent the function over the given range.\n final Shape surface =\n new SurfaceBuilder().orthonormal(new OrthonormalGrid(range, steps, range, steps), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(), surface.getBounds().getZmin(),\n surface.getBounds().getZmax(), new Color(1, 1, 1, .5f)));\n surface.setFaceDisplayed(true);\n surface.setWireframeDisplayed(true);\n surface.setWireframeColor(Color.BLACK);\n\n // Create a chart and add surface\n \n AWTChartFactory f = new DepthPeelingChartFactory(new DepthPeelingPainterFactory());\n Chart chart = f.newChart(Quality.Advanced().setAlphaActivated(false));\n\n chart.getScene().getGraph().add(surface);\n \n chart.getScene().getGraph().setStrategy(null);\n \n // depth peeling shaders do not mix correctly with 2.0.1 TextRenderer\n chart.getView().getAxis().setTextRenderer(new TextBitmapRenderer());\n\n\n // Setup a colorbar\n AWTColorbarLegend cbar = new AWTColorbarLegend(surface, chart.getView().getAxis().getLayout());\n cbar.setMinimumDimension(new Dimension(100, 600));\n //surface.setLegend(cbar);\n \n chart.open();\n chart.getMouse();\n\n ChartLauncher.openChart(chart);\n }", "public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }", "void draw() {\n canvas.drawColor(Color.BLACK);\n insertSort(vstar);\n for( int i=0; i<NUMSTARS; i++){\n vstar[i].draw();\n }\n }", "public static void main(String[] args) throws Exception {\n Presentation presentation = new Presentation();\r\n\r\n //Load the file from disk.\r\n presentation.loadFromFile(\"data/VaryColorsOfSameSeriesDataMarkers.pptx\");\r\n\r\n //Get the chart from the presentation.\r\n IChart chart = (IChart)presentation.getSlides().get(0).getShapes().get(0);\r\n\r\n //Create a ChartDataPoint object and specify the index.\r\n ChartDataPoint dataPoint = new ChartDataPoint(chart.getSeries().get(0));\r\n dataPoint.setIndex(0);\r\n\r\n //Set the fill color of the data marker.\r\n dataPoint.getMarkerFill().getFill().setFillType(FillFormatType.SOLID);\r\n dataPoint.getMarkerFill().getFill().getSolidColor().setColor(Color.RED);\r\n\r\n //Set the line color of the data marker.\r\n dataPoint.getMarkerFill().getLine().setFillType(FillFormatType.SOLID);\r\n dataPoint.getMarkerFill().getLine().getSolidFillColor().setColor(Color.RED);\r\n\r\n //Add the data point to the point collection of a series.\r\n chart.getSeries().get(0).getDataPoints().add(dataPoint);\r\n\r\n dataPoint = new ChartDataPoint(chart.getSeries().get(0));\r\n dataPoint.setIndex(1);\r\n //Set the fill color of the data marker.\r\n dataPoint.getMarkerFill().getFill().setFillType(FillFormatType.SOLID);\r\n dataPoint.getMarkerFill().getFill().getSolidColor().setColor(Color.BLACK);\r\n\r\n //Set the line color of the data marker.\r\n dataPoint.getMarkerFill().getLine().setFillType(FillFormatType.SOLID);\r\n dataPoint.getMarkerFill().getLine().getSolidFillColor().setColor(Color.BLACK);\r\n chart.getSeries().get(0).getDataPoints().add(dataPoint);\r\n\r\n dataPoint = new ChartDataPoint(chart.getSeries().get(0));\r\n dataPoint.setIndex(2);\r\n //Set the fill color of the data marker.\r\n dataPoint.getMarkerFill().getFill().setFillType(FillFormatType.SOLID);\r\n dataPoint.getMarkerFill().getFill().getSolidColor().setColor(Color.BLUE);\r\n\r\n //Set the line color of the data marker.\r\n dataPoint.getMarkerFill().getLine().setFillType(FillFormatType.SOLID);\r\n dataPoint.getMarkerFill().getLine().getSolidFillColor().setColor(Color.BLUE);\r\n chart.getSeries().get(0).getDataPoints().add(dataPoint);\r\n\r\n String result = \"output/varyColorsOfSameSeriesDataMarkers_result.pptx\";\r\n\r\n //Save to file.\r\n presentation.saveToFile(result, FileFormat.PPTX_2010);\r\n }", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public void draw() {\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tif (particles[i] != null) {\r\n\t\t\t\tglBegin(GL_QUADS);\r\n\t\t\t\t{\r\n\t\t\t\t\tparticles[i].draw();\r\n\t\t\t\t}\r\n\t\t\t\tglEnd();\r\n\t\t\t}\r\n\t\t}\r\n\t\tglColor3f(1, 1, 1);\r\n\t}", "public void draw() {\n Node curr = root;\n RectHV rect = new RectHV(0, 0, 1, 1);\n print_ele(curr, true, rect);\n StdDraw.setPenRadius();\n }", "public abstract void draw( );", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "public void draw()\n\t{\n\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t\n\t\tfor (int i = 0; i < board_size; i++)\n\t\t{\n\t\t\tSystem.out.print(board_size - i + \" |\");\n\t\t\t\n\t\t\tfor (int j = 0; j < board_size; j++)\n\t\t\t{\n\t\t\t\tif (getPiece(i,j) == null) {System.out.print(\" |\");}\n\t\t\t\telse {System.out.print(\" \" + getPiece(i,j).getSymbol().toChar() + \" |\");}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" A B C D E F G H \\n\");\n\t}" ]
[ "0.6582966", "0.5937253", "0.5872576", "0.5872576", "0.5872576", "0.5872576", "0.5850877", "0.58118945", "0.5781956", "0.5766978", "0.57257813", "0.57233626", "0.5717216", "0.5715672", "0.57073826", "0.57032275", "0.5615682", "0.5589388", "0.55787396", "0.5573898", "0.5558138", "0.55570805", "0.5541769", "0.554111", "0.5522865", "0.5500519", "0.5497134", "0.5492537", "0.5492537", "0.54698616", "0.54698616", "0.5459555", "0.5456311", "0.5456236", "0.54550964", "0.54550964", "0.54212046", "0.54176486", "0.5414949", "0.54148036", "0.53910404", "0.5386511", "0.53801143", "0.536958", "0.5363851", "0.53393203", "0.533018", "0.5316349", "0.53041035", "0.53000396", "0.53000396", "0.53000396", "0.5294197", "0.52923745", "0.5290311", "0.52867705", "0.52850765", "0.5283072", "0.52771497", "0.5276498", "0.52719575", "0.52686423", "0.52546483", "0.5248314", "0.52453184", "0.52435035", "0.5242098", "0.5240872", "0.5240035", "0.52393395", "0.52345943", "0.5228694", "0.52278066", "0.5221716", "0.52165484", "0.5216056", "0.5205042", "0.5201807", "0.5201143", "0.51839244", "0.51824427", "0.51794285", "0.5170834", "0.51673037", "0.5165657", "0.51624525", "0.5159688", "0.5158232", "0.51489305", "0.5147993", "0.5145534", "0.5144715", "0.514321", "0.5143035", "0.51423645", "0.5141806", "0.5141232", "0.5139593", "0.5130687", "0.51241374" ]
0.6244976
1
Mouse pressed event handler: Animate the Newton trace. (Callback from the plot panel)
public void mousePressedOnPlot(MouseEvent ev) { if (traceOK) animate(ev.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDraggedOnPlot(MouseEvent ev)\n {\n if (traceOK) animate(ev.getX());\n }", "void toggleButton_actionPerformed(ActionEvent e) {\n this.togglePlot();\n }", "public void mousePressed(MouseEvent e) {\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\tswitch (clickTracker) {\n\t\t\tcase 0:\n\t\t\t\t//figureDone = false;\n\t\t\t\tflipDirection.setEnabled(false);\n\t\t\t\tlastClick = new GPoint(x,y);\n\t\t\t\tlineActive = true;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(centerCircle);\n\t\t\t\tdrawCenter(x, y);\n\t\t\t\t//println(lastClick + \" x \" + x + \" y \" +y);\n\t\t\t\t//double centerX = lastClick.getX();\n\t\t\t\t//double centerY = lastClick.getY();\n\t\t\t\tlastClick = new GPoint(lastClick.getX() + centerCircle.getWidth(), lastClick.getY());\n\t\t\t\tbreak;\n\t\t\t//case 2:\n\t\t\t\t//lastClick = new GPoint(x,y);\n\t\t\t\t//lineActive = true;\n\t\t\t\t//break;\n\t\t\tcase 2:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(outerCircle);\n\t\t\t\tdrawOuter(x, y);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(armLine);\n\t\t\t\tdrawArm(x,y);\n\t\t\t\tinitalizeFigure();\n\t\t\t\tbreak;\n\t\t}\n\t\tclickTracker++;\n\t\tif (clickTracker == 3 || clickTracker == 2) lineActive = true;\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent me) {\n\t\tpgXYmov = new PaintGraphCircle(\"Vx\", \"Vy\", MC.getVX(), MC.getVY(), 1,\r\n\t\t\t\t1, 20, 20, 1);\r\n\t\tnew BigGraphicUniFrame(pgXYmov);\r\n\t}", "public void mouseClicked(MouseEvent evt) {\n Location x = new Location( evt.getX(), evt.getY() );\n ripple = new Ripples(x, canvas, pond, true, movingRipples,this);\n run.addActionListener(ripple);\n pause.addActionListener(ripple);\n clear.addActionListener(ripple);\n speedController.addChangeListener(ripple);\n canvas.addMouseListener(ripple);\n canvas.addMouseMotionListener(ripple);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\txyLyTimKiem();\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n if (animationInProgress) {\n logger.info(\"Lost frame...\");\n return;\n }\n animationInProgress = true;\n\n java.util.List<Double> toIndex = indexFind.get(0);\n\n int value = Step + stepStep * animDirection;\n if (value < 1) {\n value = 1;\n }\n else if (value > toIndex.size()) {\n value = toIndex.size() - 1;\n }\n\n Step = value;\n\n try {\n long start = System.currentTimeMillis();\n XYPlot plot = (XYPlot)this.chartPanel.getChart().getPlot();\n currentIndex = Step - 1;\n plot.setDomainCrosshairValue(toIndex.get(currentIndex));\n //selectStructure(Step);\n //structureManagerInterface.selectStructure(currentIndex);\n float secs = (System.currentTimeMillis() - start) / 1000.0f;\n logger.info(\"Elapsed time: \" + secs);\n //setSnapshotValue(Step);\n }\n catch (Exception ex) {\n animationInProgress = false;\n timer.stop();\n JOptionPane.showMessageDialog(this, \"Error during animation: \" + ex.getMessage() + \"\\nAnimation stopped\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n\n if (animationMode == 0) { // Animate once\n if (Step == 1 && animDirection == -1) {\n stopAnimation();\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n stopAnimation();\n }\n }\n\n else if (animationMode == 1) { // Animate in loop\n if (Step == 1 && animDirection == -1) {\n Step = toIndex.size();\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n Step = 1;\n }\n }\n\n else if (animationMode == 2) { // Animate back & forth\n if (Step == 1 && animDirection == -1) {\n if (toIndex.size() > 1) {\n Step = 1;\n animDirection = 1;\n }\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n if (toIndex.size() > 1) {\n Step = toIndex.size() - 1;\n animDirection = -1;\n }\n }\n }\n\n animationInProgress = false;\n }", "public void mouseClicked(MouseEvent e) {\n\t\tdouble[] pointLocation = new double[3];\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\t\n\t\tplotContent.Click(x, y, pointLocation);\n\t\tif(pointLocation[0]==0.0&&pointLocation[1]==0.0&&pointLocation[2]==0.0) {\n\t\t\t\n\t\t}else {\n\t\t\ttradedetail.setText(\"\\n\"+\"Yield = \"+pointLocation[0]+\"\\n\"+\"Days_To_Maturity = \"+pointLocation[1]+\"\\n\"+\"Amount_CHF = \"+pointLocation[2]);\n\t\t}\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t\tdrawHoverIndicator(canvas,buttonName);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\trepaint();\n\t\t\t\tSystem.out.println(\"Tick\");\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\tif (startButton == e.getSource()) { //starts animating the current figure\n\t\t\tanimate = true;\n\t\t}\n\t\tif (stopButton == e.getSource()) { //stops animating the current figure\n\t\t\tanimate = false;\n\t\t}\n\t\tif (doneWithFigure == e.getSource()) {\n\t\t\tflipDirection.setEnabled(true);\n\t\t\tanimate = false;\n\t\t\t//figureDone = true;\n\t\t\tanimate = false;\n\t\t\tfigureList.get(figureTracker).cleanUp();\n\t\t\tfigureList.get(figureTracker).markAsComplete();\n\t\t\tclickTracker = 0;\n\t\t\tif (!figureList.isEmpty()) figureTracker++;\n\t\t}\n\t\tif (clear == e.getSource()) {\n\t\t\tflipDirection.setEnabled(true);\n\t\t\tanimate = false;\n\t\t\tpause(5);\n\t\t\tif (!figureList.isEmpty()) {\n\t\t\t\tfigureList.get(figureTracker).markAsComplete();\n\t\t\t}\n\t\t\tremoveAll();\n\t\t\tadd(colorBox);\n\t\t\tclickTracker = 0;\n\t\t\tfigureTracker= 0;\n\t\t\tfigureList.clear();\n\t\t}\n\t\tif (flipDirection == e.getSource()) {\n\t\t\tif (reverseDirection == true) {\n\t\t\t\treverseDirection = false;\n\t\t\t} else {\n\t\t\t\treverseDirection = true;\n\t\t\t}\n\t\t}\n\t\tif (makeItCool == e.getSource()) {\n\t\t\tflipDirection.setEnabled(false);\n\t\t\tif (reverseDirection == false) {\n\t\t\t\tgenerateCool();\n\t\t\t} else {\n\t\t\t\tgenerateCoolReverse();\n\t\t\t}\n\t\t\t//logStart();\n\t\t}\n\t\tif (center == e.getSource()) {\n\t\t\tdouble centerX = getWidth()/2.0;\n\t\t\tdouble centerY = getHeight()/2.0;\n\t\t\tfigureList.get(figureTracker).setLocation(centerX, centerY);\n\t\t}\n\t\tif (liftPen == e.getSource()) {\n\t\t\tif (figureList.get(figureTracker).graph) {\n\t\t\t\tfigureList.get(figureTracker).graph = false;\n\t\t\t} else {\n\t\t\t\tfigureList.get(figureTracker).graph = true;\n\t\t\t}\n\t\t}\n\t\tif (removeLast == e.getSource()) {\n\t\t\tif (!figureList.isEmpty()) {\n\t\t\t\tanimate = false;\n\t\t\t\tfigureList.get(figureTracker).markAsComplete();\n\t\t\t\tremove(figureList.get(figureTracker));\n\t\t\t\tfigureList.remove(figureTracker);\n\t\t\t}\n\t\t\tflipDirection.setEnabled(true);\n\t\t\t//figureDone = true;\n\t\t\tclickTracker = 0;\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tgsv.startCircleState();\n\t\t\t}", "public void mouseClicked(MouseEvent ev)\n\t{\n\t if (timer!=null || manim==null || manim.snoopGeneration()!=null) return;\n\n\t Node n = manim.getNodeCloseToBottom(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\tunhilitNode();\n\t\tchangeColorDirection(true,n);\n\t\trenderPath(n);\t \n\t\thilitNode(n,Color.red);\n\t\treturn;\n\t }\n\n\t n = manim.getNodeCloseToTop(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\tunhilitNode();\n\t\tchangeColorDirection(false,n);\n\t\trenderDownPaths(n);\n\t\thilitNode(n,Color.blue);\n\t\treturn;\n\t }\n\t}", "private void setActionListener() {\n\t\tblinker = new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// Level 1\n\t\t\t\tg.draw(new Line2D.Double(635, 110, 294, 200));\n\t\t\t\tg.draw(new Line2D.Double(635, 110, 635, 200));\n\t\t\t\tg.draw(new Line2D.Double(635, 110, 986, 200));\n\t\t\t\t// Level 21\n\t\t\t\tg.draw(new Line2D.Double(284, 260, 177, 345));\n\t\t\t\tg.draw(new Line2D.Double(284, 260, 284, 345));\n\t\t\t\tg.draw(new Line2D.Double(284, 260, 381, 355));\n\t\t\t\t// Level 22\n\t\t\t\tg.draw(new Line2D.Double(635, 260, 522, 345));\n\t\t\t\tg.draw(new Line2D.Double(635, 260, 635, 345));\n\t\t\t\tg.draw(new Line2D.Double(635, 260, 752, 345));\n\t\t\t\t// Level 23\n\t\t\t\tg.draw(new Line2D.Double(986, 260, 879, 345));\n\t\t\t\tg.draw(new Line2D.Double(986, 260, 987, 345));\n\t\t\t\tg.draw(new Line2D.Double(986, 260, 1087, 345));\n\t\t\t\t// Level 31\n\t\t\t\tg.draw(new Line2D.Double(167, 410, 118, 510));\n\t\t\t\tg.draw(new Line2D.Double(167, 410, 158, 510));\n\t\t\t\tg.draw(new Line2D.Double(167, 410, 198, 510));\n\t\t\t\t// Level 32\n\t\t\t\tg.draw(new Line2D.Double(284, 410, 238, 510));\n\t\t\t\tg.draw(new Line2D.Double(284, 410, 275, 510));\n\t\t\t\tg.draw(new Line2D.Double(284, 410, 310, 510));\n\t\t\t\t// Level 33\n\t\t\t\tg.draw(new Line2D.Double(401, 410, 350, 510));\n\t\t\t\tg.draw(new Line2D.Double(401, 410, 390, 510));\n\t\t\t\tg.draw(new Line2D.Double(401, 410, 430, 510));\n\t\t\t\t// Level 34\n\t\t\t\tg.draw(new Line2D.Double(518, 410, 470, 510));\n\t\t\t\tg.draw(new Line2D.Double(518, 410, 510, 510));\n\t\t\t\tg.draw(new Line2D.Double(518, 410, 550, 510));\n\t\t\t\t// Level 35\n\t\t\t\tg.draw(new Line2D.Double(635, 410, 590, 510));\n\t\t\t\tg.draw(new Line2D.Double(635, 410, 628, 510));\n\t\t\t\tg.draw(new Line2D.Double(635, 410, 668, 510));\n\t\t\t\t// Level 36\n\t\t\t\tg.draw(new Line2D.Double(752, 410, 705, 510));\n\t\t\t\tg.draw(new Line2D.Double(752, 410, 745, 510));\n\t\t\t\tg.draw(new Line2D.Double(752, 410, 785, 510));\n\t\t\t\t// Level 37\n\t\t\t\tg.draw(new Line2D.Double(869, 410, 820, 510));\n\t\t\t\tg.draw(new Line2D.Double(869, 410, 860, 510));\n\t\t\t\tg.draw(new Line2D.Double(869, 410, 900, 510));\n\t\t\t\t// Level 38\n\t\t\t\tg.draw(new Line2D.Double(986, 410, 938, 510));\n\t\t\t\tg.draw(new Line2D.Double(986, 410, 978, 510));\n\t\t\t\tg.draw(new Line2D.Double(986, 410, 1018, 510));\n\t\t\t\t// Level 39\n\t\t\t\tg.draw(new Line2D.Double(1103, 410, 1058, 510));\n\t\t\t\tg.draw(new Line2D.Double(1103, 410, 1098, 510));\n\t\t\t\tg.draw(new Line2D.Double(1103, 410, 1138, 510));\n\t\t\t}\n\t\t};\n\t}", "public void chartMouseClicked(ChartMouseEvent event) {\n }", "void mousePressed(double x, double y, MouseEvent e );", "void mousePressed() {\n firing = true;\n\n}", "void mouseClicked(double x, double y, MouseEvent e );", "@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t\tundrawHoverIndicator(canvas,buttonName);\n\t\t\t}", "public void mousePressed (MouseEvent event) {}", "public void mousePressed() {\n }", "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 run() {\n\n GCanvas gc = this.getGCanvas();\n\n this.setSize(1000,1000);\n GOval wheel = new GOval(100, 100, 800, 800);\n this.add(wheel);\n GLine horzline = new GLine(105,500, 895, 500);\n this.add(horzline);\n GLine vertline = new GLine(500,105, 500, 895);\n this.add(vertline);\n\n GLabel Quad1 = new GLabel(\"(+,+)\", 700, 100);\n Quad1.setFont(\"Arial-PLAIN-28\");\n this.add(Quad1);\n\n GLabel Quad2 = new GLabel(\"(-,+)\", 300, 100);\n Quad2.setFont(\"Arial-PLAIN-28\");\n this.add(Quad2);\n\n GLabel Quad3 = new GLabel(\"(-,-)\", 300, 900);\n Quad3.setFont(\"Arial-PLAIN-28\");\n this.add(Quad3);\n\n GLabel Quad4 = new GLabel(\"(+,-)\", 700, 900);\n Quad4.setFont(\"Arial-PLAIN-28\");\n this.add(Quad4);\n\n //TwoPi\n GLabel TwoPiShow = new GLabel(\"2π\");\n GOval twopi = new GOval(890, 490, 20,20);\n this.add(twopi);\n twopi.setFilled(true);\n twopi.setFillColor(Color.BLACK);\n TwoPiShow.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(TwoPiShow, 915, 510);\n\n GLabel TwoPiSin = new GLabel(\"(0)\");\n TwoPiSin.setFont(\"Arial-PLAIN-18\");\n TwoPiSin.setColor(Color.GREEN);\n\n\n GLabel TwoPiCos = new GLabel(\"(1)\");\n TwoPiCos.setFont(\"Arial-PLAIN-18\");\n TwoPiCos.setColor(Color.BLUE);\n\n GLabel TwoPiTan = new GLabel(\"(0)\");\n TwoPiTan.setFont(\"Arial-PLAIN-18\");\n TwoPiTan.setColor(Color.RED);\n\n GLabel TwoPiSec = new GLabel(\"(1)\");\n TwoPiSec.setFont(\"Arial-PLAIN-18\");\n TwoPiSec.setColor(Color.CYAN);\n\n GLabel TwoPiCsc = new GLabel(\"(undefined)\");\n TwoPiCsc.setFont(\"Arial-PLAIN-18\");\n TwoPiCsc.setColor(Color.ORANGE);\n\n /*\n Make Mouse Listener Thing for:\n\n Sin(2pi) = 0\n Cos(2pi) = 1\n\n\n\n */\n\n\n //Zero\n GLabel Zero = new GLabel(\"0\");\n Zero.setFont(\"Arial-PLAIN-18\");\n this.add(Zero, 915, 495);\n\n /*\n Make Mouse Listener Thing for:\n\n Or I guess make a button to show these:\n\n Sin(0) = 0\n Cos(0) = 1\n Tan(0)\n Sec(0)\n Csc(0)\n Cot(0)\n\n Mouse Scroll Over --> show that:\n\n Tan = (sin)/(cos)\n\n Sec = 1/(cos)\n\n Cot = 1/(tan)\n\n Csc = 1/(sin)\n\n\n\n */\n\n\n // Quad 1\n\n //Pi6\n GLabel Pi6Show = new GLabel(\"(π/6)\");\n GOval Pi6 = new GOval(840, 300, 20,20);\n this.add(Pi6);\n Pi6.setFilled(true);\n Pi6.setFillColor(Color.BLACK);\n Pi6Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(Pi6Show, 860, 300);\n\n GLabel Pi6Sin = new GLabel(\"(1/2)\");\n Pi6Sin.setFont(\"Arial-PLAIN-18\");\n Pi6Sin.setColor(Color.GREEN);\n\n\n\n GLabel Pi6Cos = new GLabel(\"(√3/2)\");\n Pi6Cos.setFont(\"Arial-PLAIN-18\");\n Pi6Cos.setColor(Color.BLUE);\n\n GLabel Pi6Tan = new GLabel(\"(√3/3)\");\n Pi6Tan.setFont(\"Arial-PLAIN-18\");\n Pi6Tan.setColor(Color.RED);\n\n GLabel Pi6Cot = new GLabel(\"(√3)\");\n Pi6Cot.setFont(\"Arial-PLAIN-18\");\n Pi6Cot.setColor(Color.MAGENTA);\n\n GLabel Pi6Csc = new GLabel(\"2\");\n Pi6Csc.setFont(\"Arial-PLAIN-18\");\n Pi6Csc.setColor(Color.CYAN);\n\n GLabel Pi6Sec = new GLabel(\"(2√3/3)\");\n Pi6Sec.setFont(\"Arial-PLAIN-18\");\n Pi6Sec.setColor(Color.ORANGE);\n\n\n\n\n /*\n Make Mouse Listener Thing for:\n\n Sin(pi/6) = 1/2\n Cos(pi/6) = sqrt(3)/2\n\n\n */\n\n //Pi4\n GLabel Pi4Show = new GLabel(\"(π/4)\");\n GOval Pi4 = new GOval(770, 200, 20,20);\n this.add(Pi4);\n Pi4.setFilled(true);\n Pi4.setFillColor(Color.BLACK);\n Pi4Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(Pi4Show, 800, 200);\n\n GLabel Pi4Sin = new GLabel(\"(√2/2)\");\n Pi4Sin.setFont(\"Arial-PLAIN-18\");\n Pi4Sin.setColor(Color.GREEN);\n\n\n GLabel Pi4Cos = new GLabel(\"(√2/2)\");\n Pi4Cos.setFont(\"Arial-PLAIN-18\");\n Pi4Cos.setColor(Color.blue);\n\n GLabel Pi4Tan = new GLabel(\"1\");\n Pi4Cos.setFont(\"Arial-PLAIN-18\");\n Pi4Cos.setColor(Color.RED);\n\n GLabel Pi4Sec = new GLabel(\"(2√2/2)\");\n Pi4Cos.setFont(\"Arial-PLAIN-18\");\n Pi4Cos.setColor(Color.ORANGE);\n\n GLabel Pi4Csc = new GLabel(\"(2√2/2)\");\n Pi4Cos.setFont(\"Arial-PLAIN-18\");\n Pi4Cos.setColor(Color.CYAN);\n\n\n //Pi3\n GLabel Pi3Show = new GLabel(\"(π/3)\");\n GOval Pi3 = new GOval(650, 120, 20,20);\n this.add(Pi3);\n Pi3.setFilled(true);\n Pi3.setFillColor(Color.BLACK);\n Pi3Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(Pi3Show, 670, 120);\n\n GLabel Pi3Sin = new GLabel(\"(√3/2)\");\n Pi3Sin.setFont(\"Arial-PLAIN-18\");\n Pi3Sin.setColor(Color.GREEN);\n\n\n GLabel Pi3Cos = new GLabel(\"(1/2)\");\n Pi3Cos.setFont(\"Arial-PLAIN-18\");\n Pi3Cos.setColor(Color.BLUE);\n\n GLabel Pi3Tan = new GLabel(\"(√3)\");\n Pi3Tan.setFont(\"Arial-PLAIN-18\");\n Pi3Tan.setColor(Color.RED);\n\n GLabel Pi3Sec = new GLabel(\"2\");\n Pi3Sec.setFont(\"Arial-PLAIN-18\");\n Pi3Sec.setColor(Color.ORANGE);\n\n GLabel Pi3Csc = new GLabel(\"(2√3/3)\");\n Pi3Csc.setFont(\"Arial-PLAIN-18\");\n Pi3Csc.setColor(Color.CYAN);\n\n\n //Pi2\n GLabel Pi2Show = new GLabel(\"(π/2)\");\n GOval Pi2 = new GOval(490, 90, 20,20);\n this.add(Pi2);\n Pi2.setFilled(true);\n Pi2.setFillColor(Color.BLACK);\n Pi2Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(Pi2Show, 490, 90);\n\n GLabel Pi2Sin = new GLabel(\"(1)\");\n Pi2Sin.setFont(\"Arial-PLAIN-18\");\n Pi2Sin.setColor(Color.GREEN);\n\n\n GLabel Pi2Cos = new GLabel(\"(0)\");\n Pi2Cos.setFont(\"Arial-PLAIN-18\");\n Pi2Cos.setColor(Color.BLUE);\n\n GLabel Pi2Tan = new GLabel(\"(undefined)\");\n Pi2Tan.setFont(\"Arial-PLAIN-18\");\n Pi2Tan.setColor(Color.RED);\n\n GLabel Pi2Sec = new GLabel(\"(undefined)\");\n Pi2Sec.setFont(\"Arial-PLAIN-18\");\n Pi2Sec.setColor(Color.ORANGE);\n\n GLabel Pi2Csc = new GLabel(\"(1)\");\n Pi2Csc.setFont(\"Arial-PLAIN-18\");\n Pi2Csc.setColor(Color.CYAN);\n\n\n\n // Quad 2\n\n //2Pi3\n GLabel TwoPi3Show = new GLabel(\"(2π/3)\");\n GOval TwoPi3 = new GOval(340, 115, 20,20);\n this.add(TwoPi3);\n TwoPi3.setFilled(true);\n TwoPi3.setFillColor(Color.BLACK);\n TwoPi3Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(TwoPi3Show, 285, 125);\n\n\n GLabel TwoPi3Sin = new GLabel(\"(√3/2)\");\n TwoPi3Sin.setFont(\"Arial-PLAIN-18\");\n TwoPi3Sin.setColor(Color.GREEN);\n\n\n GLabel TwoPi3Cos = new GLabel(\"(-1/2)\");\n TwoPi3Cos.setFont(\"Arial-PLAIN-18\");\n TwoPi3Cos.setColor(Color.BLUE);\n\n GLabel TwoPi3Tan = new GLabel(\"(-√3)\");\n TwoPi3Tan.setFont(\"Arial-PLAIN-18\");\n Pi2Tan.setColor(Color.RED);\n\n GLabel TwoPi3Sec = new GLabel(\"(-2)\");\n TwoPi3Sec.setFont(\"Arial-PLAIN-18\");\n TwoPi3Sec.setColor(Color.ORANGE);\n\n GLabel TwoPi3Csc = new GLabel(\"(2√3/3)\");\n TwoPi3Csc.setFont(\"Arial-PLAIN-18\");\n TwoPi3Csc.setColor(Color.CYAN);\n\n //3Pi4\n GLabel ThreePi4Show = new GLabel(\"(3π/4)\");\n GOval ThreePi4 = new GOval(225, 190, 20,20);\n this.add(ThreePi4);\n ThreePi4.setFilled(true);\n ThreePi4.setFillColor(Color.BLACK);\n ThreePi4Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(ThreePi4Show, 160, 205);\n\n\n GLabel ThreePi4Sin = new GLabel(\"(√2/2)\");\n ThreePi4Sin.setFont(\"Arial-PLAIN-18\");\n ThreePi4Sin.setColor(Color.GREEN);\n\n\n GLabel ThreePi4Cos = new GLabel(\"(-√2/2)\");\n ThreePi4Cos.setFont(\"Arial-PLAIN-18\");\n ThreePi4Cos.setColor(Color.BLUE);\n\n GLabel ThreePi4Tan = new GLabel(\"(-1)\");\n ThreePi4Tan.setFont(\"Arial-PLAIN-18\");\n ThreePi4Tan.setColor(Color.RED);\n\n GLabel ThreePi4Sec = new GLabel(\"(-2√2/2)\");\n ThreePi4Sec.setFont(\"Arial-PLAIN-18\");\n ThreePi4Sec.setColor(Color.ORANGE);\n\n GLabel ThreePi4Csc = new GLabel(\"(2√3/3)\");\n ThreePi4Csc.setFont(\"Arial-PLAIN-18\");\n ThreePi4Csc.setColor(Color.CYAN);\n\n //5Pi6\n\n GLabel FivePi6Show = new GLabel(\"(5π/6)\");\n GOval FivePi6 = new GOval(135, 290, 20,20);\n this.add(FivePi6);\n FivePi6.setFilled(true);\n FivePi6.setFillColor(Color.BLACK);\n FivePi6Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(FivePi6Show, 80, 310);\n\n GLabel FivePi6Sin = new GLabel(\"(1/2)\");\n FivePi6Sin.setFont(\"Arial-PLAIN-18\");\n FivePi6Sin.setColor(Color.GREEN);\n\n\n GLabel FivePi6Cos = new GLabel(\"(-√3/2)\");\n FivePi6Cos.setFont(\"Arial-PLAIN-18\");\n FivePi6Cos.setColor(Color.BLUE);\n\n GLabel FivePi6Tan = new GLabel(\"(-√3/3)\");\n FivePi6Tan.setFont(\"Arial-PLAIN-18\");\n FivePi6Tan.setColor(Color.RED);\n\n GLabel FivePi6Sec = new GLabel(\"(-2√2/2)\");\n FivePi6Sec.setFont(\"Arial-PLAIN-18\");\n FivePi6Sec.setColor(Color.ORANGE);\n\n GLabel FivePi6Csc = new GLabel(\"(2)\");\n FivePi6Csc.setFont(\"Arial-PLAIN-18\");\n FivePi6Csc.setColor(Color.CYAN);\n\n //Pi\n\n GLabel PiShow = new GLabel(\"π\");\n GOval pi = new GOval(90, 490, 20,20);\n this.add(pi);\n pi.setFilled(true);\n pi.setFillColor(Color.BLACK);\n PiShow.setFont(\"Arial-PLAIN-22\");\n //Make into Mouse Listener\n this.add(PiShow, 75, 510);\n\n GLabel PiSin = new GLabel(\"(0)\");\n PiSin.setFont(\"Arial-PLAIN-18\");\n PiSin.setColor(Color.GREEN);\n\n\n GLabel PiCos = new GLabel(\"(-1)\");\n PiCos.setFont(\"Arial-PLAIN-18\");\n PiCos.setColor(Color.BLUE);\n\n GLabel PiTan = new GLabel(\"(0)\");\n PiTan.setFont(\"Arial-PLAIN-18\");\n PiTan.setColor(Color.RED);\n\n GLabel PiSec = new GLabel(\"(-1)\");\n PiSec.setFont(\"Arial-PLAIN-18\");\n PiSec.setColor(Color.ORANGE);\n\n GLabel PiCsc = new GLabel(\"(undefined)\");\n PiCsc.setFont(\"Arial-PLAIN-18\");\n PiCsc.setColor(Color.CYAN);\n\n//Quad 3\n\n //7Pi6\n\n GLabel SevenPi6Show = new GLabel(\"(7π/6)\");\n GOval SevenPi6 = new GOval(145, 680, 20,20);\n this.add(SevenPi6);\n SevenPi6.setFilled(true);\n SevenPi6.setFillColor(Color.BLACK);\n SevenPi6Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(SevenPi6Show, 90, 690);\n\n GLabel SevenPi6Sin = new GLabel(\"(-1/2)\");\n SevenPi6Sin.setFont(\"Arial-PLAIN-18\");\n SevenPi6Sin.setColor(Color.GREEN);\n\n\n GLabel SevenPi6Cos = new GLabel(\"(-√3/2)\");\n SevenPi6Cos.setFont(\"Arial-PLAIN-18\");\n SevenPi6Cos.setColor(Color.BLUE);\n\n GLabel SevenPi6Tan = new GLabel(\"(√3/3)\");\n SevenPi6Tan.setFont(\"Arial-PLAIN-18\");\n SevenPi6Tan.setColor(Color.RED);\n\n GLabel SevenPi6Sec = new GLabel(\"(-2√3/3)\");\n SevenPi6Sec.setFont(\"Arial-PLAIN-18\");\n SevenPi6Sec.setColor(Color.ORANGE);\n\n GLabel SevenPi6Csc = new GLabel(\"(-2)\");\n SevenPi6Csc.setFont(\"Arial-PLAIN-18\");\n SevenPi6Csc.setColor(Color.CYAN);\n\n //5Pi4\n\n GLabel FivePi4Show = new GLabel(\"(5π/4)\");\n GOval FivePi4 = new GOval(205, 780, 20,20);\n this.add(FivePi4);\n FivePi4.setFilled(true);\n FivePi4.setFillColor(Color.BLACK);\n FivePi4Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(FivePi4Show, 150, 790);\n\n GLabel FivePi4Sin = new GLabel(\"(-√2/2)\");\n FivePi4Sin.setFont(\"Arial-PLAIN-18\");\n FivePi4Sin.setColor(Color.GREEN);\n\n GLabel FivePi4Cos = new GLabel(\"(-√2/2)\");\n FivePi4Cos.setFont(\"Arial-PLAIN-18\");\n FivePi4Cos.setColor(Color.BLUE);\n\n GLabel FivePi4Tan = new GLabel(\"(1)\");\n FivePi4Tan.setFont(\"Arial-PLAIN-18\");\n FivePi4Tan.setColor(Color.RED);\n\n\n GLabel FivePi4Csc = new GLabel(\"(-2√2/2)\");\n FivePi4Csc.setFont(\"Arial-PLAIN-18\");\n FivePi4Csc.setColor(Color.CYAN);\n\n GLabel FivePi4Sec = new GLabel(\"(-2√2/2)\");\n FivePi4Sec.setFont(\"Arial-PLAIN-18\");\n FivePi4Sec.setColor(Color.ORANGE);\n\n\n\n //4Pi3\n\n GLabel FourPi3Show = new GLabel(\"(4π/3)\");\n GOval FourPi3 = new GOval(335, 860, 20,20);\n this.add(FourPi3);\n FourPi3.setFilled(true);\n FourPi3.setFillColor(Color.BLACK);\n FourPi3Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(FourPi3Show, 275, 870);\n\n GLabel FourPi3Sin = new GLabel(\"(-√3/2)\");\n FourPi3Sin.setFont(\"Arial-PLAIN-18\");\n FourPi3Sin.setColor(Color.GREEN);\n\n\n GLabel FourPi3Cos = new GLabel(\"(-1/2)\");\n FourPi3Cos.setFont(\"Arial-PLAIN-18\");\n FourPi3Cos.setColor(Color.blue);\n\n GLabel FourPi3Tan = new GLabel(\"(√3)\");\n FourPi3Cos.setFont(\"Arial-PLAIN-18\");\n FourPi3Cos.setColor(Color.RED);\n\n GLabel FourPi3Sec = new GLabel(\"(-2)\");\n FourPi3Cos.setFont(\"Arial-PLAIN-18\");\n FourPi3Cos.setColor(Color.ORANGE);\n\n GLabel FourPi3Csc = new GLabel(\"(-2√3/3)\");\n FourPi3Cos.setFont(\"Arial-PLAIN-18\");\n FourPi3Cos.setColor(Color.CYAN);\n\n/*\n //TwoPi\n GLabel TwoPiShow = new GLabel(\"2π\");\n GOval twopi = new GOval(890, 490, 20,20);\n this.add(twopi);\n twopi.setFilled(true);\n twopi.setFillColor(Color.BLACK);\n TwoPiShow.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(TwoPiShow, 915, 510);\n\n\n*/\n\n //3Pi2\n GLabel ThreePi2Show = new GLabel(\"(3π/2)\");\n GOval ThreePi2 = new GOval(490, 890, 20,20);\n this.add(ThreePi2);\n ThreePi2.setFilled(true);\n ThreePi2.setFillColor(Color.BLACK);\n ThreePi2Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(ThreePi2Show, 480, 890);\n\n GLabel ThreePi2Sin = new GLabel(\"(-1)\");\n ThreePi2Sin.setFont(\"Arial-PLAIN-18\");\n ThreePi2Sin.setColor(Color.GREEN);\n\n GLabel ThreePi2Cos = new GLabel(\"(0)\");\n ThreePi2Cos.setFont(\"Arial-PLAIN-18\");\n ThreePi2Cos.setColor(Color.BLUE);\n\n GLabel ThreePi2Tan = new GLabel(\"(undefined)\");\n ThreePi2Tan.setFont(\"Arial-PLAIN-18\");\n ThreePi2Tan.setColor(Color.RED);\n\n GLabel ThreePi2Cot = new GLabel(\"(0)\");\n ThreePi2Cot.setFont(\"Arial-PLAIN-18\");\n ThreePi2Cot.setColor(Color.MAGENTA);\n\n GLabel ThreePi2Csc = new GLabel(\"(-1)\");\n ThreePi2Csc.setFont(\"Arial-PLAIN-18\");\n ThreePi2Csc.setColor(Color.CYAN);\n\n GLabel ThreePi2Sec = new GLabel(\"(undefined)\");\n ThreePi2Sec.setFont(\"Arial-PLAIN-18\");\n ThreePi2Sec.setColor(Color.ORANGE);\n\n //FivePi3\n GLabel FivePi3Show = new GLabel(\"(5π/3)\");\n GOval FivePi3 = new GOval(655, 855, 20,20);\n this.add(FivePi3);\n FivePi3.setFilled(true);\n FivePi3.setFillColor(Color.BLACK);\n FivePi3Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(FivePi3Show, 685, 865);\n\n GLabel FivePi3Sin = new GLabel(\"(-√3/2)\");\n FivePi3Sin.setFont(\"Arial-PLAIN-18\");\n FivePi3Sin.setColor(Color.GREEN);\n\n GLabel FivePi3Cos = new GLabel(\"(1/2)\");\n FivePi3Cos.setFont(\"Arial-PLAIN-18\");\n FivePi3Cos.setColor(Color.BLUE);\n\n GLabel FivePi3Tan = new GLabel(\"(-√3)\");\n FivePi3Tan.setFont(\"Arial-PLAIN-18\");\n FivePi3Tan.setColor(Color.RED);\n\n\n GLabel FivePi3Csc = new GLabel(\"(-2√3/3)\");\n FivePi3Csc.setFont(\"Arial-PLAIN-18\");\n FivePi3Csc.setColor(Color.CYAN);\n\n GLabel FivePi3Sec = new GLabel(\"2\");\n FivePi3Sec.setFont(\"Arial-PLAIN-18\");\n FivePi3Sec.setColor(Color.ORANGE);\n\n\n\n //SevenPi4\n GLabel SevenPi4Show = new GLabel(\"(7π/4)\");\n GOval SevenPi4 = new GOval(785, 760, 20,20);\n this.add(SevenPi4);\n SevenPi4.setFilled(true);\n SevenPi4.setFillColor(Color.BLACK);\n SevenPi4Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(SevenPi4Show, 810, 770);\n\n GLabel SevenPi4Sin = new GLabel(\"(-√2/2)\");\n SevenPi4Sin.setFont(\"Arial-PLAIN-18\");\n SevenPi4Sin.setColor(Color.GREEN);\n\n GLabel SevenPi4Cos = new GLabel(\"(√2/2)\");\n SevenPi4Cos.setFont(\"Arial-PLAIN-18\");\n FivePi3Cos.setColor(Color.BLUE);\n\n GLabel SevenPi4Tan = new GLabel(\"(-1)\");\n SevenPi4Tan.setFont(\"Arial-PLAIN-18\");\n SevenPi4Tan.setColor(Color.RED);\n\n\n GLabel SevenPi4Csc = new GLabel(\"(-2√2/2)\");\n SevenPi4Csc.setFont(\"Arial-PLAIN-18\");\n SevenPi4Csc.setColor(Color.CYAN);\n\n GLabel SevenPi4Sec = new GLabel(\"(2√2/2)\");\n SevenPi4Sec.setFont(\"Arial-PLAIN-18\");\n SevenPi4Sec.setColor(Color.ORANGE);\n\n //ElevenPi6\n GLabel ElevenPi6Show = new GLabel(\"(11π/4)\");\n GOval ElevenPi6 = new GOval(855, 660, 20,20);\n this.add(ElevenPi6);\n ElevenPi6.setFilled(true);\n ElevenPi6.setFillColor(Color.BLACK);\n SevenPi4Show.setFont(\"Arial-PLAIN-18\");\n //Make into Mouse Listener\n this.add(ElevenPi6Show, 885, 670);\n\n GLabel ElevenPi6Sin = new GLabel(\"(-1/2)\");\n ElevenPi6Sin.setFont(\"Arial-PLAIN-18\");\n ElevenPi6Sin.setColor(Color.GREEN);\n\n GLabel ElevenPi6Cos = new GLabel(\"(√3/2)\");\n ElevenPi6Cos.setFont(\"Arial-PLAIN-18\");\n ElevenPi6Cos.setColor(Color.BLUE);\n\n GLabel ElevenPi6Tan = new GLabel(\"(-√3/3)\");\n ElevenPi6Tan.setFont(\"Arial-PLAIN-18\");\n ElevenPi6Tan.setColor(Color.RED);\n\n GLabel ElevenPi6Csc = new GLabel(\"(-2)\");\n ElevenPi6Csc.setFont(\"Arial-PLAIN-18\");\n ElevenPi6Csc.setColor(Color.CYAN);\n\n GLabel ElevenPi6Sec = new GLabel(\"(2√3/3)\");\n ElevenPi6Sec.setFont(\"Arial-PLAIN-18\");\n ElevenPi6Sec.setColor(Color.ORANGE);\n\n\n\n\n//Now add mouse listeners and lines\n // Add buttons (action listeners) too with sin, cos, tan, sec, csc, cot\n //And then a key listener for a quiz\n\n/*\n Pi6.addMouseMotionListener(\n new MouseMotionListener() {\n @Override\n public void mouseDragged(MouseEvent e) { }\n @Override\n public void mouseMoved(MouseEvent e) {\n GLine LinePi6 = new GLine(400, 400, 840, 300);\n LinePi6.setColor(Color.GREEN);\n canvas.add(LinePi6);\n\n }\n }\n\n\n );\n\n */\n\n JButton buttonSin = new JButton(\"Sin(x)\");\n this.add(buttonSin, SOUTH);\n JButton buttonCos = new JButton(\"Cos(x)\");\n this.add(buttonCos, SOUTH);\n JButton buttonTan = new JButton(\"Tan(x)\");\n this.add(buttonTan, SOUTH);\n JButton buttonCot = new JButton(\"Cot(x)\");\n this.add(buttonCos, SOUTH);\n JButton buttonCsc = new JButton(\"Csc(x)\");\n this.add(buttonCsc, SOUTH);\n JButton buttonSec = new JButton(\"Sec(x)\");\n this.add(buttonSec, SOUTH);\n\n buttonSin.getParent().revalidate();\n\n buttonSin.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n GCanvas canvas = TrigWheel.this.getGCanvas();\n canvas.add(Pi6Sin, 900, 300);\n canvas.add(Pi4Sin,840, 200);\n canvas.add(Pi3Sin,710, 120);\n canvas.add(Pi2Sin, 530, 90);\n canvas.add(TwoPiSin,955, 510);\n\n canvas.add(TwoPi3Sin, 235, 125);\n canvas.add(ThreePi4Sin,100, 205);\n canvas.add(FivePi6Sin,40, 300);\n canvas.add(PiSin,35, 510);\n\n canvas.add(FourPi3Sin, 215, 870);\n canvas.add(FivePi4Sin,90, 790);\n canvas.add(SevenPi6Sin,40, 690);\n\n canvas.add(FivePi3Sin, 740, 865);\n canvas.add(SevenPi4Sin,860, 770);\n canvas.add(ElevenPi6Sin,935, 670);\n\n }\n }\n\n\n );\n\n buttonCos.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n GCanvas canvas = TrigWheel.this.getGCanvas();\n canvas.add(Pi6Cos, 900, 300);\n canvas.add(Pi4Cos,840, 200);\n canvas.add(Pi3Cos,710, 120);\n canvas.add(Pi2Cos, 530, 90);\n canvas.add(TwoPiCos,955, 510);\n\n canvas.add(TwoPi3Cos, 235, 125);\n canvas.add(ThreePi4Cos,100, 205);\n canvas.add(FivePi6Cos,40, 300);\n canvas.add(PiCos,35, 510);\n\n canvas.add(FourPi3Cos, 215, 870);\n canvas.add(FivePi4Cos,90, 790);\n canvas.add(SevenPi6Cos,40, 690);\n\n canvas.add(FivePi3Cos, 740, 865);\n canvas.add(SevenPi4Cos,860, 770);\n canvas.add(ElevenPi6Cos,935, 670);\n\n\n }\n }\n\n\n );\n\n buttonTan.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n GCanvas canvas = TrigWheel.this.getGCanvas();\n canvas.add(Pi6Tan, 900, 300);\n canvas.add(Pi4Tan,840, 200);\n canvas.add(Pi3Tan,710, 120);\n canvas.add(Pi2Tan, 530, 90);\n canvas.add(TwoPiTan,955, 510);\n\n canvas.add(TwoPi3Tan, 235, 125);\n canvas.add(ThreePi4Tan,100, 205);\n canvas.add(FivePi6Tan,40, 300);\n canvas.add(PiTan,35, 510);\n\n canvas.add(FourPi3Tan, 215, 870);\n canvas.add(FivePi4Tan,90, 790);\n canvas.add(SevenPi6Tan,40, 690);\n\n canvas.add(FivePi3Tan, 740, 865);\n canvas.add(SevenPi4Tan,860, 770);\n canvas.add(ElevenPi6Tan,935, 670);\n\n\n }\n }\n\n\n );\n\n buttonSec.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n GCanvas canvas = TrigWheel.this.getGCanvas();\n canvas.add(Pi6Sec, 900, 300);\n canvas.add(Pi4Sec,840, 200);\n canvas.add(Pi3Sec,720, 120);\n canvas.add(Pi2Sec, 530, 90);\n canvas.add(TwoPiSec,955, 510);\n\n canvas.add(TwoPi3Sec, 235, 125);\n canvas.add(ThreePi4Sec,90, 205);\n canvas.add(FivePi6Sec,40, 290);\n canvas.add(PiSec,35, 510);\n\n canvas.add(FourPi3Sec, 215, 870);\n canvas.add(FivePi4Sec,80, 790);\n canvas.add(SevenPi6Sec,40, 670);\n\n canvas.add(FivePi3Sec, 740, 865);\n canvas.add(SevenPi4Sec,860, 770);\n canvas.add(ElevenPi6Sec,935, 670);\n\n\n }\n }\n\n\n );\n\n buttonCsc.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n GCanvas canvas = TrigWheel.this.getGCanvas();\n canvas.add(Pi6Csc, 900, 300);\n canvas.add(Pi4Csc,840, 200);\n canvas.add(Pi3Csc,720, 120);\n canvas.add(Pi2Csc, 530, 90);\n canvas.add(TwoPiCsc,890, 480);\n\n canvas.add(TwoPi3Csc, 215, 125);\n canvas.add(ThreePi4Csc,90, 205);\n canvas.add(FivePi6Csc,40, 300);\n canvas.add(PiCsc,35, 490);\n\n canvas.add(FourPi3Csc, 215, 870);\n canvas.add(FivePi4Csc,80, 790);\n canvas.add(SevenPi6Csc,40, 680);\n\n canvas.add(FivePi3Csc, 740, 865);\n canvas.add(SevenPi4Csc,860, 770);\n canvas.add(ElevenPi6Csc,935, 670);\n\n\n\n }\n }\n\n\n );\n\n/*\n Pi6.addMouseListener(\n new MouseListener() {\n @Override\n public void mousePressed(MouseEvent e) {\n\n }\n @Override\n public void mouseReleased(MouseEvent e) {}\n @Override\n public void mouseEntered(MouseEvent e) {}\n @Override\n public void mouseExited(MouseEvent e) {}\n @Override\n public void mouseClicked(MouseEvent e) {}\n }\n );\n*/\n\n\n\n\n\n }", "public void mouseClicked(MouseEvent e){\r\n\t\tif (e.getButton() == MouseEvent.BUTTON1){\r\n\t\t\tboolean b = myGraph.isAdjacent(roboSpot,(Spot)e.getSource()); \r\n\t\t\tSystem.out.print(e.getSource()+\" Clicked and it is\");\r\n\t\t\tif(!b) System.out.print(\" not\");\r\n\t\t\tSystem.out.println(\" adjacent\");\r\n\t\t} else { //a different button was clicked...\r\n\t\t\tArrayList<Spot> sequence = myGraph.getShortestPath(roboSpot,goalSpot);\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<sequence.size(); i++){\r\n\t\t\t\tsequence.get(i).setSeqInd(i+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}", "public void mousePressed(MouseEvent evt) {\n Location x = new Location( evt.getX(), evt.getY() );\n pond.checkAxis( x );\n\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tLOG.fine(\"Pressed...\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mousePressed(e);\r\n\t\t}\r\n\t}", "public void mouseClicked( MouseEvent event ){}", "public void mousePressed(MouseEvent e) {\n e.getComponent().requestFocus();\n \n if (e.getSource() instanceof MapBean) {\n // mouse has now been pressed\n mousePressed = true;\n // erase the old circle if any\n eraseCircle();\n \n if (theMap == null) {\n theMap = (MapBean) e.getSource();\n }\n \n // anchor the new first point of the line\n rPoint1 = theMap.getProjection().inverse(e.getPoint());\n // ensure the second point is not yet set.\n rPoint2 = null;\n // add the anchor point to the list of line segments\n segments.addElement(rPoint1);\n // add the distance to the total distance\n totalDistance = totalDistance + distance;\n }\n }", "public void mousePressed( MouseEvent event ){}", "@Override\n public void mousePressed(final MouseEvent theEvent) {\n myTool = PowerPaintMenus.getTool();\n if (!myHasShape) {\n myHasShape = true;\n myCurrentShape = myTool.start(theEvent.getX(), theEvent.getY());\n repaint();\n }\n }", "@Override\r\n public void actionPerformed(ActionEvent ae)\r\n {\r\n renderer.setTimeScaler(renderer.getTimeScaler() + 0.1f);\r\n }", "public void mouseClicked(MouseEvent event){}", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t\tif(e.getSource()==b) {\n\t\t\ty = Double.parseDouble(tf.getText());\n\t\t\ty = (5.0/9.0)*(y-32.0);\n\t\t\tx = Double.toString(y);\n\t\t\tl1.setText(x);\n\t\t}\n\t\t\n\t\t\n\t}", "public void mousePressed (LayerEvent event) {\r\n\t\tisMouseDown = true;\r\n\t\tif (!isEnabled()) return;\r\n \r\n\t\t// Check mouse event, set flags, etc\r\n\t\t_isZoomingIn = _zoomInFilter.accept(event);\r\n\t\t_isZoomingOut = _zoomOutFilter.accept(event);\r\n\r\n\t\tif (!_isZoomingOut && !_isZoomingIn) return;\r\n\r\n\t\t// Do it\r\n \t_originX = event.getLayerX();\r\n _originY = event.getLayerY();\r\n\t\tprevX = event.getLayerX();\r\n\t\tprevY = event.getLayerY();\r\n\t\t\r\n _rubberBand = new Rectangle2D.Double(_originX,_originY, 0.0, 0.0);\r\n\r\n\t\t_overlayLayer.add(_rubberBand);\r\n\t\t_overlayLayer.repaint(_rubberBand);\r\n\r\n\t\ttrekPane.getCanvas().setCursor( _isZoomingIn ? TrekController.ZOOMIN_CURSOR : TrekController.ZOOMOUT_CURSOR);\r\n\t\t\r\n\t\t// Consume the event\r\n\t\tif (isConsuming()) {\r\n\t event.consume();\r\n\t\t\t}\r\n\t\t}", "public void mouseClicked(MouseEvent e){\r\n\t\t int[] mouseCurent = new int[2];\r\n\t\t mouseCurent[0] = e.getX();\r\n\t\t mouseCurent[1] = e.getY();\r\n\t\t \r\n\t\t //if (clickedNum > totalNum-1) {\r\n\t\t //\t JOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t//\t\t \"No more clicked points are wanted.\",\r\n\t\t\t//\t\t \"Inane error\",\r\n\t\t\t//\t\t JOptionPane.ERROR_MESSAGE);\r\n\t\t //} else {\r\n\t\t if (e.getModifiers() == MouseEvent.BUTTON1_MASK) {\r\n\t\t\t double d[][] = plotViewer.plotPanel.plotCanvas.centerData;\r\n\t\t\t plotViewer.plotPanel.addPlot(\"SCATTER\", \"Cluster Center\", Color.BLACK, d);\r\n\t\t\t \r\n\t\t\t // increase the center data storage memory\r\n\t\t\t if (clickedNum == 0) {\r\n\t\t\t\t cluster2DCenters = new double[1][2];\r\n\t\t\t\t cluster2DCenters[0] = d[0];\r\n\t\t\t\t clickedNum++;\r\n\t\t\t } else {\r\n\t\t\t\t double bak[][] = new double[clickedNum][2];\r\n\t\t\t\t bak = copy(cluster2DCenters);\t\r\n\t\t\t\t clickedNum++;\r\n\t\t\t\t cluster2DCenters = new double[clickedNum][2];\r\n\t\t\t\t for (int i=0; i<clickedNum-1; i++) {\r\n\t\t\t\t\t cluster2DCenters[i] = copy(bak[i]);\r\n\t\t\t\t }\r\n\t\t\t\t cluster2DCenters[clickedNum-1] = d[0];\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t }", "public void mousePressed( MouseEvent mouseEvent ) {\r\n if ( mouseEvent.getSource() instanceof ViewJComponentHLUTBase ) {\r\n float x = mouseEvent.getX();\r\n float y = mouseEvent.getY();\r\n\r\n if ( !mouseEvent.isShiftDown() ) {\r\n componentHistogram.addFunctionPoint( x, y );\r\n } else {\r\n componentHistogram.removeClickedFunctionPoint();\r\n }\r\n if ( lutRecorder != null ) {\r\n lutRecorder.dragPoint( ( (ViewJComponentHistoLUT) componentHistogram ).getLUT() );\r\n }\r\n }\r\n }", "public void mousePressed(MouseEvent e) {\n\t\t// It's true that the mouse is pressed\n\t\tmousePress = true;\n\t\t// Record the point user presses as starting point\n\t\tstartTrunk = new Point2D.Double(e.getX(), e.getY());\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 2;\n\t\t\t}", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\tLOG.fine(\"Clicked\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseClicked(e);\r\n\t\t}\r\n\t}", "public void mousePressed(MouseEvent event)\n {\n mouseClicked = true;\n if(gameOver)\n {\n mouseClicked = false;\n gameOver = false;\n gameStarted = false;\n score = 0;\n restartGame();\n pipeTimer.stop();\n startGame.start();\n }\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "void mouseClicked(MouseEvent mouseEvent);", "public void mouseClicked(MouseEvent e) // When mouse is clicked:\n {\n Location pt = new Location(e.getX(),e.getY());\n ResizableBall t = new ResizableBall( pt.getX(), pt.getY(),\n BALL_SIZE, canvas, hLine, vLine,\n speedSlider.getValue());\n\n start.addActionListener(t);\n stop.addActionListener(t);\n clearAll.addActionListener(t);\n speedSlider.addChangeListener(t);\n canvas.addMouseListener(t);\n canvas.addMouseMotionListener(t);\n canvas.addComponentListener(t);\n }", "public void mousePressed(MouseEvent event)\r\n {\n }", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n gd.getTank().fire();\t\t\t \n\t\t}", "public CurveFrame(FunctionVariations fvar) {\n\t\tsuper(\"Curve\");\n\t\ttracer = new CurveTracer(fvar);\n\t\tinfos = new CurveInfos(fvar);\n\t\tcontrols = new CurveControls(fvar, this);\n\n\t\tJPanel mainPane = new JPanel(new BorderLayout());\n\n\t\tmainPane.add(tracer, BorderLayout.CENTER);\n\t\tmainPane.add(infos, BorderLayout.SOUTH);\n\t\tmainPane.add(controls, BorderLayout.EAST);\n\n\t\ttracer.addMouseListener(new MouseAdapter() {\n\t\t\tCurveFrame cf = CurveFrame.this;\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tcf.infos.xmouse.setText(\"x = \" + cf.tracer.realX(e.getX()));\n\t\t\t\tcf.infos.ymouse.setText(\"y = \" + cf.tracer.realY(e.getY()));\n\t\t\t\tcf.infos.repaint();\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\tcf.infos.xmouse.setText(\"\");\n\t\t\t\tcf.infos.ymouse.setText(\"\");\n\t\t\t\tcf.infos.repaint();\n\t\t\t}\n\t\t});\n\t\ttracer.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\tCurveFrame cf = CurveFrame.this;\n\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tcf.infos.xmouse.setText(\"x = \" + cf.tracer.realX(e.getX()));\n\t\t\t\tcf.infos.ymouse.setText(\"y = \" + cf.tracer.realY(e.getY()));\n\t\t\t\t//cf.infos.repaint();\n\t\t\t}\n\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tcf.infos.xmouse.setText(\"x = \" + cf.tracer.realX(e.getX()));\n\t\t\t\tcf.infos.ymouse.setText(\"y = \" + cf.tracer.realY(e.getY()));\n\t\t\t\tcf.infos.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tfvar.tabulate(controls.currentPrecision());\n\t\tsetContentPane(mainPane);\n\t\tpack();\n\t\tinfos.update();\n\t\tsetVisible(true);\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getSource() instanceof Timer) {\r\n if (animatedPos == canvas.size() - 1)\r\n animatedDir = -1;\r\n if (animatedPos == 0)\r\n animatedDir = 1;\r\n animatedPos += animatedDir;\r\n repaint();\r\n }\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 1;\n\t\t\t}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {\n \t\tint x_pd = x_p;\n \t\tint y_pd = y_p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Point2D.Double po = inverseTransformPoint(x_p, y_p);\n \t\t\tx_p = (int)po.x;\n \t\t\ty_p = (int)po.y;\n \t\t}\n \n \t\tfinal int tool = ProjectToolbar.getToolId();\n \n \t\tfinal Display display = ((DisplayCanvas)me.getSource()).getDisplay();\n \t\tfinal long layer_id = display.getLayer().getId();\n \n \t\tindex = findPoint(x_p, y_p, layer_id, mag);\n \n \t\tif (ProjectToolbar.PENCIL == tool && n_points > 0 && -1 == index && !me.isShiftDown() && !Utils.isControlDown(me)) {\n \t\t\t// Use Mark Longair's tracing: from the clicked point to the last one\n \t\t\tfinal double scale = layer_set.getVirtualizationScale();\n \t\t\t// Ok now with all found images, create a virtual stack that provides access to them all, with caching.\n \t\t\tfinal Worker[] worker = new Worker[2];\n \n \t\t\tTraceParameters tr_ = tr_map.get(layer_set);\n \t\t\tfinal TraceParameters tr = null == tr_ ? new TraceParameters() : tr_;\n \t\t\tif (null == tr_) {\n \t\t\t\tsynchronized (tr_map) {\n \t\t\t\t\ttr_map.put(layer_set, tr);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (tr.update) {\n \t\t\t\tworker[0] = new Worker(\"Preparing Hessian...\") { public void run() {\n \t\t\t\t\tstartedWorking();\n \t\t\t\t\ttry {\n \t\t\t\tUtils.log(\"Push ESCAPE key to cancel autotrace anytime.\");\n \t\t\t\tImagePlus virtual = new LayerStack(layer_set, scale, ImagePlus.GRAY8, Patch.class, display.getDisplayChannelAlphas()).getImagePlus();\n \t\t\t\t//virtual.show();\n \t\t\t\tCalibration cal = virtual.getCalibration();\n \t\t\t\tdouble minimumSeparation = 1;\n \t\t\t\tif (cal != null) minimumSeparation = Math.min(cal.pixelWidth,\n \t\t\t\t\t\t\t\t\t Math.min(cal.pixelHeight,\n \t\t\t\t\t\t\t\t\t\t cal.pixelDepth));\n \t\t\t\tComputeCurvatures hessian = new ComputeCurvatures(virtual, minimumSeparation, null, cal != null);\n \t\t\t\thessian.run();\n \n \t\t\t\ttr.virtual = virtual;\n \t\t\t\ttr.scale = scale;\n \t\t\t\ttr.hessian = hessian;\n \t\t\t\ttr.update = false;\n \n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tIJError.print(e);\n \t\t\t\t\t}\n \t\t\t\t\tfinishedWorking();\n \t\t\t\t}};\n \t\t\t\tBureaucrat.createAndStart(worker[0], project);\n \t\t\t}\n \n \t\t\tPoint2D.Double po = transformPoint(p[0][n_points-1], p[1][n_points-1]);\n \t\t\tfinal int start_x = (int)po.x;\n \t\t\tfinal int start_y = (int)po.y;\n \t\t\tfinal int start_z = layer_set.indexOf(layer_set.getLayer(p_layer[n_points-1])); // 0-based\n \t\t\tfinal int goal_x = (int)(x_pd * scale); // must transform into virtual space\n \t\t\tfinal int goal_y = (int)(y_pd * scale);\n \t\t\tfinal int goal_z = layer_set.indexOf(display.getLayer());\n \n \t\t\t/*\n \t\t\tUtils.log2(\"x_pd, y_pd : \" + x_pd + \", \" + y_pd);\n \t\t\tUtils.log2(\"scale: \" + scale);\n \t\t\tUtils.log2(\"start: \" + start_x + \",\" + start_y + \", \" + start_z);\n \t\t\tUtils.log2(\"goal: \" + goal_x + \",\" + goal_y + \", \" + goal_z);\n \t\t\tUtils.log2(\"virtual: \" + tr.virtual);\n \t\t\t*/\n \n \n \t\t\tfinal boolean simplify = me.isAltDown();\n \n \t\t\tworker[1] = new Worker(\"Tracer - waiting on hessian\") { public void run() {\n \t\t\t\tstartedWorking();\n \t\t\t\ttry {\n \t\t\t\tif (null != worker[0]) {\n \t\t\t\t\t// Wait until hessian is ready\n \t\t\t\t\tworker[0].join();\n \t\t\t\t}\n \t\t\t\tsetTaskName(\"Tracing path\");\n \t\t\t\tfinal int reportEveryMilliseconds = 2000;\n \t\t\t\ttr.tracer = new TracerThread(tr.virtual, 0, 255,\n \t\t\t\t\t\t 120, // timeout seconds\n \t\t\t\t\t\t\t\t reportEveryMilliseconds,\n \t\t\t\t\t\t\t\t start_x, start_y, start_z,\n \t\t\t\t\t\t\t\t goal_x, goal_y, goal_z,\n \t\t\t\t\t\t\t\t true, // reciproal pix values at start and goal\n \t\t\t\t\t\t\t\t tr.virtual.getStackSize() == 1,\n \t\t\t\t\t\t\t\t tr.hessian,\n \t\t\t\t\t\t\t\t null == tr.hessian ? 1 : 4,\n \t\t\t\t\t\t\t\t null,\n \t\t\t\t\t\t\t\t null != tr.hessian);\n \t\t\t\ttr.tracer.addProgressListener(new SearchProgressCallback() {\n \t\t\t\t\tpublic void pointsInSearch(SearchThread source, int inOpen, int inClosed) {\n \t\t\t\t\t\tworker[1].setTaskName(\"Tracing path: open=\" + inOpen + \" closed=\" + inClosed);\n \t\t\t\t\t}\n \t\t\t\t\tpublic void finished(SearchThread source, boolean success) {\n \t\t\t\t\t\tif (!success) {\n \t\t\t\t\t\t\tUtils.logAll(\"Could NOT trace a path\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tpublic void threadStatus(SearchThread source, int currentStatus) {\n \t\t\t\t\t\t// This method gets called every reportEveryMilliseconds\n \t\t\t\t\t\tif (worker[1].hasQuitted()) {\n \t\t\t\t\t\t\tsource.requestStop();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t\t\ttr.tracer.run();\n \n \t\t\t\tfinal Path result = tr.tracer.getResult();\n \n \t\t\t\ttr.tracer = null;\n \n \t\t\t\tif (null == result) {\n \t\t\t\t\tUtils.log(\"Finding a path failed\"); //: \"+ \n \t\t\t\t\t\t// not public //SearchThread.exitReasonStrings[tracer.getExitReason()]);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \n \t\t\t\t// TODO: precise_x_positions etc are likely to be broken (calibrated or something)\n \n \n \t\t\t\t// Remove bogus points: those at the end with 0,0 coords\n \t\t\t\tint len = result.points;\n \t\t\t\tfinal double[][] pos = result.getXYZUnscaled();\n \t\t\t\tfor (int i=len-1; i>-1; i--) {\n \t\t\t\t\tif (0 == pos[0][i] && 0 == pos[1][i]) {\n \t\t\t\t\t\tlen--;\n \t\t\t\t\t} else break;\n \t\t\t\t}\n \t\t\t\t// Transform points: undo scale, and bring to this Polyline AffineTransform:\n \t\t\t\tfinal AffineTransform aff = new AffineTransform();\n \t\t\t\t/* Inverse order: */\n \t\t\t\t/* 2 */ aff.concatenate(Polyline.this.at.createInverse());\n \t\t\t\t/* 1 */ aff.scale(1/scale, 1/scale);\n \t\t\t\tfinal double[] po = new double[len * 2];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tpo[j] = pos[0][i];\n \t\t\t\t\tpo[j+1] = pos[1][i];\n \t\t\t\t}\n \t\t\t\tfinal double[] po2 = new double[len * 2];\n \t\t\t\taff.transform(po, 0, po2, 0, len); // what a stupid format: consecutive x,y pairs\n \n \t\t\t\tlong[] p_layer_ids = new long[len];\n \t\t\t\tdouble[] pox = new double[len];\n \t\t\t\tdouble[] poy = new double[len];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tp_layer_ids[i] = layer_set.getNearestLayer(pos[2][i]).getId(); // z_positions in 0-(N-1), not in 0-N like slices!\n \t\t\t\t\tpox[i] = po2[j];\n \t\t\t\t\tpoy[i] = po2[j+1];\n \t\t\t\t}\n \n \t\t\t\t// Simplify path: to steps of 5 calibration units, or 5 pixels when not calibrated.\n \t\t\t\tif (simplify) {\n \t\t\t\t\tObject[] ob = Polyline.simplify(pox, poy, p_layer_ids, 10000, layer_set);\n \t\t\t\t\tpox = (double[])ob[0];\n \t\t\t\t\tpoy = (double[])ob[1];\n \t\t\t\t\tp_layer_ids = (long[])ob[2];\n \t\t\t\t\tlen = pox.length;\n \t\t\t\t}\n \n \t\t\t\t// Record the first newly-added autotraced point index:\n \t\t\t\tlast_autotrace_start = Polyline.this.n_points;\n \t\t\t\tPolyline.this.appendPoints(pox, poy, p_layer_ids, len);\n \n \t\t\t\tPolyline.this.repaint(true);\n \t\t\t\tUtils.logAll(\"Added \" + len + \" new points.\");\n \n \t\t\t\t} catch (Exception e) { IJError.print(e); }\n \t\t\t\tfinishedWorking();\n \t\t\t}};\n \t\t\tBureaucrat.createAndStart(worker[1], project);\n \n \t\t\tindex = -1;\n \t\t\treturn;\n \n \t\t}\n \n \t\tif (ProjectToolbar.PEN == tool || ProjectToolbar.PENCIL == tool) {\n \n \t\t\tif (Utils.isControlDown(me) && me.isShiftDown()) {\n \t\t\t\tfinal long lid = Display.getFrontLayer(this.project).getId();\n \t\t\t\tif (-1 == index || lid != p_layer[index]) {\n \t\t\t\t\tindex = findNearestPoint(x_p, y_p, layer_id);\n \t\t\t\t}\n \t\t\t\tif (-1 != index) {\n \t\t\t\t\t//delete point\n \t\t\t\t\tremovePoint(index);\n \t\t\t\t\tindex = -1;\n \t\t\t\t\trepaint(false);\n \t\t\t\t}\n \n \t\t\t\t// In any case, terminate\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tif (-1 != index && layer_id != p_layer[index]) index = -1; // disable!\n \n \t\t\t//if no conditions are met, attempt to add point\n \t\t\telse if (-1 == index && !me.isShiftDown() && !me.isAltDown()) {\n \t\t\t\t//add a new point\n \t\t\t\tindex = addPoint(x_p, y_p, layer_id, mag);\n \t\t\t\tis_new_point = true;\n \t\t\t\trepaint(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "public void mouseClicked (MouseEvent m) {\r\n \t//System.out.println(\"mouseClicked..\");\t\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\trepaint();\n\t\t\n\t\tmachine.updateState(state);\n\t\t\n\t\tmX = MouseInfo.getPointerInfo().getLocation().x;\n\t\tmY = MouseInfo.getPointerInfo().getLocation().y;\n\t\tmachine.updateMouse(mouseDown, mX-x, mY-y-23);\n\t}", "public void actionPerformed(ActionEvent evt)\n\t\t{\n\t\t\tif(evt.getSource() == nex)\n\t\t\t{\n\t\t\t\tif(curTerm == 20)\n\t\t\t\t\tcurTerm = 1;\n\t\t\t\telse\n\t\t\t\t\tcurTerm++;\n\t\t\t}\n\t\t\telse if(evt.getSource() == prev)\n\t\t\t{\n\t\t\t\tif(curTerm == 1)\n\t\t\t\t\tcurTerm = 20;\n\t\t\t\telse\n\t\t\t\t\tcurTerm--;\n\t\t\t}\n\t\t\tgetTerm();\n\t\t\tsci.setText(term);\n\t\t\timg = new ImageIcon(picTerm);\n\t\t\tpic.setIcon(img);\n\t\t\trepaint();\n\t\t\t\n\t\t}", "public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n // Create the fixed-point iteration root finder.\n finder = new FixedPointRootFinder((Function) plotFunction.getFunction());\n }", "public void mousePressed()\n{\n if(!welcomeFading)\n {\n welcomeFading = true;\n cp5.show();\n }\n if(!cp5.isMouseOver()) // check if were pressing a button\n {\n flock.AddAnimal(10, mouseX, mouseY);\n }\n}", "public void mousePressed(MouseEvent e) {\r\n }", "public void mousePressed(MouseEvent e) {\n\t\t\t\tString currentTankSize = tank_size_hundred.getText() + tank_size_tens.getText()\n\t\t\t\t\t\t+ tank_size_ones.getText();\n\n\t\t\t\t// validate tank size > 10\n\t\t\t\tif (Integer.parseInt(currentTankSize) < 10) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"TANK SIZE MUST BE GREATER THAN 10\", \"ERROR\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\t// Read from file to retrieve ph and temperature.\n\t\t\t\t\tread_temp_ph(jComboBox1.getSelectedItem().toString());\n\n\t\t\t\t\t// set time for light on and off\n\t\t\t\t\tlight_on = light_on_time_hour.getText().toString() + \" : \"\n\t\t\t\t\t\t\t+ light_on_time_minute.getText().toString() + \" \" + on_am_pm.getText().toString();\n\t\t\t\t\tlight_off = light_off_time_hour.getText().toString() + \" : \"\n\t\t\t\t\t\t\t+ light_off_time_minute.getText().toString() + \" \" + off_am_pm.getText().toString();\n\n\t\t\t\t\ttank = \"\" + Integer.parseInt(currentTankSize);\n\t\t\t\t\t// Set tank size\n\t\t\t\t\ttank_set_to.setText(\"TANK: \" + tank);\n\n\t\t\t\t\t// Store light on/off\n\t\t\t\t\ttime_on_hour = Integer.parseInt(light_on_time_hour.getText().toString());\n\t\t\t\t\ttime_on_minute = Integer.parseInt(light_on_time_minute.getText().toString());\n\t\t\t\t\ttime_on_ampm = on_am_pm.getText().toString();\n\n\t\t\t\t\ttime_off_hour = Integer.parseInt(light_off_time_hour.getText().toString());\n\t\t\t\t\ttime_off_minute = Integer.parseInt(light_off_time_minute.getText().toString());\n\t\t\t\t\ttime_off_ampm = off_am_pm.getText().toString();\n\n\t\t\t\t\t/*\n\t\t\t\t\t * setting settings\n\t\t\t\t\t * \n\t\t\t\t\t */\n\t\t\t\t\tString light_off_text = \"LIGHT OFF: \" + light_off;\n\t\t\t\t\tString light_on_text = \"LIGHT ON: \" + light_on;\n\n\t\t\t\t\tlight_off_when.setText(light_off_text);\n\t\t\t\t\tlight_on_when.setText(light_on_text);\n\t\t\t\t\ttemp_set_to.setText(\"\" + ideal_temp);\n\t\t\t\t\tph_set_to.setText(\"\" + ideal_ph);\n\n\t\t\t\t\tback_to_main.setVisible(true);\n\t\t\t\t\tin_dash = true; // don't remove if removed display will\n\t\t\t\t\t\t\t\t\t// glitch\n\n\t\t\t\t\t// removing panel\n\t\t\t\t\tDeck.removeAll();\n\t\t\t\t\tDeck.repaint();\n\t\t\t\t\tDeck.revalidate();\n\n\t\t\t\t\t// adding panel\n\t\t\t\t\tDeck.add(Dash);\n\t\t\t\t\tDeck.repaint();\n\t\t\t\t\tDeck.revalidate();\n\n\t\t\t\t\tis_set = true;\n\t\t\t\t\t// START THREAD ONLY IF FIRST SET == 0\n\t\t\t\t\tif (first_set == 0) {\n\t\t\t\t\t\tfirst_set++;\n\t\t\t\t\t\tEngine_On.start();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "@Override\n public void moverRaton(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "private void drawPanelMousePressed(java.awt.event.MouseEvent evt) {\n \n clicks = evt.getPoint();\n \n clicks = getClosedPoint(clicks);\n //System.out.print(ClickSX + \", \" + ClickSY + \",\\n \" );\n \n }", "public void mouseEntered (MouseEvent e) {}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}", "public void mouseClicked(MouseEvent event) { \n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\r\n //panel.addCircle(new Circle(e.getX(), e.getY(), 24, Color.BLUE));\r\n // super.mouseClicked(e);\r\n water.addWater(e.getX(), e.getY(), 50);\r\n }", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {\n }", "void mousePressed(MouseEvent mouseEvent);", "public void actionPerformed(ActionEvent e) {\n ((GraphPanel)graphPanel).clearAllStates();\n ((GraphPanel)graphPanel).analyzeLoops();\n mainFrame.repaint();\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tPoint point = new Point();\r\n\t\tpoint.x = e.getX();\r\n\t\tpoint.y = e.getY();\r\n\r\n\t switch (shape) {\r\n\t \r\n\t case LINE :\r\n\r\n\t \tthis.clicksforLine.add(point);\r\n\t \tbreak;\r\n\t case CIRCLE:\r\n\r\n\t \tthis.clicksforCircle.add(point);\r\n\t \tbreak;\r\n\t case POLYGON:\r\n\r\n\t \tthis.clicksforPoly.add(point);\r\n\t \tbreak;\r\n\t case CURVE:\r\n\r\n\t \tthis.clicksforCurve.add(point);\r\n\t \tbreak;\r\n\t case CLEAR:\r\n\t {\r\n\t }\r\n\t \tbreak;\r\n\t default:\r\n\t \tbreak;\r\n\t }\r\n \r\n\t\tSystem.out.println(point.x+ \",\"+point.y);\r\n repaint();\r\n\t\t\r\n\t}", "public void mousePressed(MouseEvent e)\n { }", "@Override\r\n public void chartMouseClicked(ChartMouseEvent cme) {\n }", "public void mousePressed(MouseEvent e) {\n \t\t\r\n \t}", "public void mousePressed(MouseEvent e)\n {\n points.setX(e.getX());\n points.setY(e.getY());\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent event ) {\n\t\t\r\n\t\tint whichButton =event.getButton();\r\n\t\tmsg=\"\";\r\n\t\tmsg =\"You Pressed Mouse \" ;\r\n\t\t\r\n\t\tif(whichButton==MouseEvent.BUTTON1)\r\n\t\t\tmsg+=\" BUTTON 1\";\r\n\t\telse if(whichButton==MouseEvent.BUTTON2)\r\n\t\t\tmsg+=\"Button 2\";\r\n\t\telse\r\n\t\t\tmsg+=\"Button 3\";\r\n\t\t\r\n\t\tmsg+=\"You are at position \"+\"<X \"+event.getX()+\" Y \"+event.getY()+\">\";\r\n\t\t\r\n\t\tif(event.getClickCount()==2)\r\n\t\t{\r\n\t\t\tmsg+=\" You double Clicked\";\r\n\t\t}\r\n\t\telse\r\n\t\t\tmsg+=\" You singel-Clicked\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}", "public void mouseClicked(MouseEvent evt) {\n synchronized (SplashWindow.this) {\n SplashWindow.this.paintCalled = true;\n SplashWindow.this.notifyAll();\n }\n dispose();\n }", "public void mousePressed(MouseEvent e) {\n\n }", "@Override\n public void aPressed() {\n if (currAnimation == Animation.CROUCHING) {\n currFrame = 0;\n counter = 0; // (to begin the sliding time count)\n setAnimation(Animation.SLIDING);\n dx = (facingLeft) ? -2 : 2;\n }\n }", "public void mouseClicked(MouseEvent e) {\n //System.out.println(\"Mouse Panel pos: \" + e.getX() + \" \" + e.getY() + \"\\n\");\n if (e.getX() >=_ballXpos && e.getX() <= _ballXpos + 25 && e.getY() >=_ballYpos && e.getY() <= _ballYpos + 25 ) { \n \tmoveBallTimer.stop();\n frame2.setVisible(false);\n frame3.setVisible(true);\n frame3.invalidate();\n frame3.repaint();\n }\n // System.out.println(\"{e.getX(): \" + e.getX() + \" / \" + \"_ballXpos: \" + _ballXpos + \" | \" + \"{e.getY(): \" + e.getY() + \" / \" + \"_ballYpos: \" + _ballYpos);\n\n }", "public PaintPanel()\r\n {\r\n // handle frame mouse motion event\r\n addMouseMotionListener(\r\n new MouseMotionAdapter()\r\n {\r\n // store drag points and repaint\r\n @Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }\r\n }\r\n );\r\n }", "public void mousePressed(MouseEvent me) {\n\t\t\tfigure.setBackgroundColor(ColorConstants.yellow);\n\t\t}", "public void mouseClicked(MouseEvent event)\n\t\t{}", "@Override\r\n public void mouseClicked(MouseEvent event) {\r\n System.out.println(\"clicked\");\r\n\r\n }", "private void RadialGradientMapBTActionPerformed(java.awt.event.ActionEvent evt) {\n showRadialGradientMap();\n }", "public void mouseEntered (MouseEvent m) { }", "@Override\n public void actionPerformed( ActionEvent actionEvent )\n {\n repaint(); // repaint animator\n }", "public void handle(MouseEvent event) \n {\n \tif (parameter == \"kappa\") {\n \t\trs.setLowValue(Math.round(rs.getLowValue()));\n \t\trs.setHighValue(Math.round(rs.getHighValue()));\n \t}\n \t\n \t// Update control values after slider values were changed.\n \tupdateControlValues(rs, parameter);\n \t\n \t// Re-generate parameter values.\n \tgenerateParameterValues();\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\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}", "public void mousePressed() {\n\t\tint loc = mouseX + mouseY * width;\n\t\ttrackColor = pixels[loc];\n\t\tflock.killAll();\n\n\t\t//settingsW.settingsWindow.redraw();\n\t\t\n\t\tprintln(\"trackColor=\" + (red(trackColor)) + \",\" + (green(trackColor))\n\t\t\t\t+ \",\" + (blue(trackColor)));\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tl1.setText(\"You pressed the mouse\");\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawColor = Color.RED;\n\t\t\t}" ]
[ "0.6959045", "0.6390952", "0.6288426", "0.6246933", "0.6187686", "0.6168197", "0.61177194", "0.6096721", "0.6075902", "0.6062446", "0.60604733", "0.60456914", "0.6040608", "0.6006461", "0.59977776", "0.5988331", "0.5981878", "0.59464777", "0.5941264", "0.5897749", "0.5868152", "0.5863875", "0.586278", "0.5858653", "0.58555555", "0.58535", "0.58531106", "0.58491886", "0.58402985", "0.5834756", "0.5815382", "0.5806666", "0.58039623", "0.58007467", "0.5773797", "0.57610565", "0.5741457", "0.5740325", "0.5738926", "0.5737651", "0.5718897", "0.57160896", "0.5711834", "0.57098246", "0.5708326", "0.5705122", "0.5703419", "0.5703419", "0.5703419", "0.57011455", "0.57009655", "0.57000166", "0.5695506", "0.5688376", "0.56836575", "0.56835467", "0.5683027", "0.5674229", "0.56687", "0.56678945", "0.5658371", "0.56545407", "0.5654292", "0.5654254", "0.56522596", "0.56522596", "0.56440437", "0.56331754", "0.5632321", "0.5632181", "0.5628881", "0.56238705", "0.56238705", "0.56238705", "0.56238705", "0.5619747", "0.56179255", "0.5611028", "0.560879", "0.56086004", "0.5607632", "0.5606742", "0.5600722", "0.56002945", "0.5593972", "0.5593925", "0.5589466", "0.5588004", "0.557772", "0.5575863", "0.55700713", "0.5565113", "0.5565024", "0.55638736", "0.5563838", "0.5563567", "0.5562523", "0.556207", "0.5561896", "0.55590796" ]
0.7820935
0
Mouse dragged event handler: Animate the Newton trace. (Callback from the plot panel)
public void mouseDraggedOnPlot(MouseEvent ev) { if (traceOK) animate(ev.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged( MouseEvent evt ){\n Location x = new Location( evt.getX(), evt.getY() );\n pond.moveAxis(x, canvas);\n\n }", "public void mouseDragged( MouseEvent event ){}", "public void mousePressedOnPlot(MouseEvent ev)\n {\n if (traceOK) animate(ev.getX());\n }", "void mouseDragged(double x, double y, MouseEvent e );", "public void mouseDragged(MouseEvent event) {\n painterJPanelMouseDragged(event);\n }", "public void mouseDragged(MouseEvent event) { }", "public void mouseDragged(MouseEvent e)\n {}", "public void mouseDragged(MouseEvent e) {\n }", "public PaintPanel()\r\n {\r\n // handle frame mouse motion event\r\n addMouseMotionListener(\r\n new MouseMotionAdapter()\r\n {\r\n // store drag points and repaint\r\n @Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }\r\n }\r\n );\r\n }", "public void chartMouseMoved(ChartMouseEvent event) {\n chartPanelMouseMoved(event);\n }", "@Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }", "public void mouseDragged(MouseEvent e) {\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseDragged(MouseEvent me) {\n\n\t\t\t}", "boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n // Rotate if left button down\n if (AWTMouseUtilities.isLeftDown(e)) {\n Coord2d move = mouse.sub(prevMouse).div(100);\n rotate(move);\n }\n\n // Shift if right button down\n else if (AWTMouseUtilities.isRightDown(e)) {\n Coord2d move = mouse.sub(prevMouse);\n if (move.y != 0)\n shift(move.y / 500);\n }\n\n }\n\n // 2D mode\n else {\n // Record the mouse selection in progress\n Coord2d dragMouse = xy(e);\n\n if (maintainInAxis)\n maintainInAxis(dragMouse);\n\n\n mouseSelection.stop2D = dragMouse;\n mouseSelection.stop3D = screenToModel(dragMouse.x, dragMouse.y);\n\n getChart().getView().shoot();\n\n }\n\n prevMouse = mouse;\n }", "public void mouseDragged(MouseEvent e) {\n int x = e.getX();\n int y = e.getY();\n Dimension size = e.getComponent().getSize();\n\n float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);\n float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);\n \n prevMouseX = x;\n prevMouseY = y;\n\n view_rotx += thetaX;\n view_roty += thetaY;\n }", "public void mouseDragged( MouseEvent e ) {\n int novaKoordinataX = e.getX();\n int novaKoordinataY = e.getY();\n\n // adjust angles according to the distance travelled by the mouse\n // since the last event\n a -= novaKoordinataX - koordinataX;\n izvishuvanje += novaKoordinataY - koordinataY;\n\n // update the backbuffer\n crtajKocka( grafika );\n\n // update our data\n koordinataX = novaKoordinataX;\n koordinataY = novaKoordinataY;\n\n repaint();\n e.consume();\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tLOG.fine(\"Dragged [\" + e.getX() + \", \" + e.getY() + \"]...\");\r\n\t\t\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseDragged(e);\r\n\t\t}\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\n }", "public void mouseDragged(MouseEvent me) {\n updateDrag(me.getPoint());\n }", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged( MouseEvent e ) {\n }", "public void mouseDragged(MouseEvent e) \n {\n recordLabel(e.getPoint()); \n }", "public void mouseDragged(MouseEvent event) {\n\t\t\t\t\t\t\tif (pointCount < points.length) {\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tpoints[pointCount] = event.getPoint(); // localiza o ponto\r\n\t\t\t\t\t\t\t\tpointCount++; \r\n\t\t\t\t\t\t\t\trepaint(); // repinta JFrame\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "public void mouseDragged(MouseEvent event)\n\t\t{}", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "void mouseMoved(double x, double y, MouseEvent e );", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "public void mouseDragged(MouseEvent evt) {\r\n xDragged = evt.getX(); // store the x coordinate of the mouse\r\n yDragged = evt.getY(); // store the y coordinate of the mouse\r\n System.out.println(\"Mouse dragged at coordinate (\"\r\n + xDragged + \", \" + yDragged + \").\");\r\n System.out.println(\"calling method mouseDragged() of PaintTool.\");\r\n ge.mouseDragged(xDragged, yDragged, gra, getBackground());\r\n // call method mouseDragged() of class PaintTool\r\n System.out.println(\"method mouseDragged() of class PaintTool executed.\");\r\n }", "public void mouseDragged(MouseEvent e) {\n\t \t\t\n\t \t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "public void mouseMoved(MouseEvent e){}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "public void mouseMoved(MouseEvent event) {\n }", "public void mouseMoved(MouseEvent evt) { }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t// for Polyline\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseMoved(e);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public synchronized void mouseDragged(MouseEvent event) {\n /*FIXME*/\n /* Not needed if picture does not change. */\n\n _display.repaint();\n }", "@FXML\n private void mouseDrag(MouseEvent event) {\n dragging = true;\n double tempX = event.getX();\n double tempY = event.getY();\n dragOffsetX = (preDragX - tempX) / 2;\n dragOffsetY = (preDragY - tempY) / 2;\n drawUniverse();\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "public void mouseDragged(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse motion listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseDragged(anEvent);\n}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseMoved(MouseEvent e) {}", "public void mouseDragged( MouseEvent e )\n {\n x = e.getX(); y = e.getY();\n \n theShape.ends[0].x = x;\n theShape.ends[0].y = y;\n /*\n if ( mode==0 ) // Line\n {\n theLine.ends[0].x = x; \n theLine.ends[0].y = y; \n }\n else if ( mode==1 ) // Box\n {\n theBox.ends[0].x = x;\n theBox.ends[0].y = y;\n }\n */\n \n System.out.println(\"dragged to x=\"+x+\" y=\"+y);\n repaint();\n }", "public void mouseDragged(MouseEvent e){\n\t\t\tt.rotateStick(e.getX(), e.getY());\n\t\t\tmx = e.getX();\n\t\t\tmy = e.getY();\n\t\t\trepaint();\n\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "public void mouseMoved(MouseEvent evt) {\r\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "public void mouseMoved(MouseEvent e) {\n }", "public abstract void mouseDragged(MouseDraggedEvent mp);", "private void painterJPanelMouseDragged(MouseEvent event) {\n // Circle to add to the ArrayList\n Circle newCircle;\n if (event.isMetaDown()) {\n // erase circle if right mouse button is pressed\n newCircle = new Circle(circleDiameter, event.getPoint(),\n this.getBackground());\n } else {\n // draw circle if left mouse button is pressed\n newCircle = new Circle(circleDiameter, event.getPoint(),\n circleColor);\n }\n\n circleArrayList.add(newCircle);\n\n repaint(); // repaint this PainterJPanel\n\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent me) {\r\n\t\tdrag(me.getX(), me.getY());\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t\tmouseClicked(e);\n\t\t\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "public void mouseDragged(MouseEvent e) {\r\n redispatchMouseEvent(e);\r\n }", "public void mouseDragged(MouseEvent mouseEvent) {\n if (mouseEvent.isPrimaryButtonDown()) {\n canvasDrawer.drawDragged(mouseEvent, board, true);\n aliveLabel.setText(\"\" + board.getCellsAlive());\n } else if (mouseEvent.isSecondaryButtonDown()) {\n canvasDrawer.setDragOffset(mouseEvent);\n }\n draw();\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tco.mouseDragged(e);\n\t}", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "@Override\n public void nativeMouseDragged(NativeMouseEvent nme) {\n if (Var.timerStart) {\n txtMouse.setText(\"Mouse Dragged: \" + nme.getX() + \", \" + nme.getY());\n Var.mDrags++;\n }\n }", "public void mouseDragged(MouseEvent e) {\n\t\tif(currentShape != null){\n\t\t\tif(e.getModifiers() == MouseEvent.BUTTON1_MASK) {\n\t\t\t\tcurrentShape.setOrigin(e.getPoint());\n\t\t\t\tdrawing.repaint();\n\t\t\t} else {\n\t\t\t\tif(e.getModifiers() == MouseEvent.BUTTON3_MASK) {\n\t\t\t\t\tfor(Shape s : drawing.groupedShapes){\n\t\t\t\t\t\tif(s.isOn(e.getPoint())){\n\t\t\t\t\t\t\tfor(Shape sh : drawing.groupedShapes){\n\t\t\t\t\t\t\t\t//int px = (int) e.getPoint().getX();\n\t\t\t\t\t\t\t\t//int py = (int) e.getPoint().getY();\n\t\t\t\t\t\t\t\t//int sx = (int) sh.getOrigin().getX();\n\t\t\t\t\t\t\t\t//int sy = (int) sh.getOrigin().getY();\n\t\t\t\t\t\t\t\tPoint p = new Point(e.getPoint());\n\t\t\t\t\t\t\t\tsh.setOrigin(p);\n\t\t\t\t\t\t\t\tdrawing.repaint();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tdx=dx+(e.getX()-x);\n\t\tdy=dy+(e.getY()-y);\n\t\t\n\t\tx=e.getX();\n\t\ty=e.getY();\n\t}", "public void mouseMoved(RMShapeMouseEvent anEvent)\n{\n // If timer, restart\n if(RMShapeUtils.getHoverTimer()!=null && RMShapeUtils.getHoverTimer().getShape()==this)\n RMShapeUtils.getHoverTimer(anEvent);\n \n // Iterate over mouse motion listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseMoved(anEvent);\n}", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "public void mouseDragged(MouseEvent e) {\n currX = e.getX();\r\n currY = e.getY();\r\n\r\n if(g2 != null) {\r\n // Draw line if g2 context is not null\r\n g2.drawLine(oldX, oldY, currX, currY);\r\n // Refresh draw area to repaint\r\n repaint();\r\n // Stores current coordinates x,y as old x,y\r\n oldX = currX;\r\n oldY = currY;\r\n }\r\n }" ]
[ "0.6830228", "0.67894065", "0.676974", "0.67566854", "0.6712477", "0.6698323", "0.6695875", "0.6663231", "0.66392726", "0.6597295", "0.6593802", "0.6588278", "0.6575387", "0.65283144", "0.6522456", "0.65190566", "0.6500076", "0.64929605", "0.6484762", "0.64635396", "0.64573616", "0.6443807", "0.6441841", "0.6440583", "0.6427758", "0.6427758", "0.6425931", "0.6412194", "0.6402516", "0.63956755", "0.63686013", "0.63421035", "0.6329915", "0.6318742", "0.63171136", "0.63130975", "0.630965", "0.6304585", "0.629935", "0.629935", "0.6293579", "0.6292555", "0.62831074", "0.6282999", "0.6280803", "0.6276445", "0.6271238", "0.6270919", "0.6270919", "0.6255273", "0.6255273", "0.62506723", "0.62476027", "0.624413", "0.62428945", "0.62428945", "0.62428945", "0.62428945", "0.62428945", "0.62428945", "0.62428945", "0.6240611", "0.6240611", "0.6240611", "0.62392926", "0.62392926", "0.62290674", "0.62290674", "0.62279886", "0.622753", "0.6219262", "0.6219262", "0.6219262", "0.6219262", "0.6219262", "0.62186944", "0.62173325", "0.6216026", "0.6214648", "0.6209117", "0.62039626", "0.6200064", "0.6179997", "0.61796623", "0.61685574", "0.61545724", "0.6148558", "0.6138005", "0.61329925", "0.61139697", "0.61061037", "0.6093825", "0.6090741", "0.60871756", "0.60755605", "0.6074094", "0.60710275", "0.60701424", "0.60594904", "0.6052531" ]
0.7891634
0
Notification that a user input error occurred. Disable the Newton trace.
protected void userErrorOccurred() { traceOK = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onErrorOccurred() {\n mUserAwarenessListener.onErrorOccurred(Errors.UNDEFINED);\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }", "public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}", "public static void printErrorForInvalidCommand(String userInput) {\n System.out.println(\"Aw man! I am unable to \" + userInput + \" yet! Please specify a different function! :D\");\n }", "public final void invalidInput() {\n\t\tout.println(\"Command not recognized. Please try again.\");\n\t}", "public abstract void disableErrors();", "public static void printIndexInputNotDetectedError() {\n botSpeak(Message.INDEX_INPUT_NOT_DETECTED_ERROR);\n }", "@Override\n\tpublic boolean isErrorEnabled() {\n\t\treturn false;\n\t}", "private void signalInvalidUser() {\r\n userText.setBackgroundColor(ContextCompat.getColor(this, R.color.errorBackground));\r\n Toast.makeText(this, \"The username was incorrect!\", Toast.LENGTH_SHORT).show();\r\n }", "private void abortFeedbackLoop() {\n if (circuit.isDisabled()) return;\n \n if (circuit.hasListeners()) {\n ChatColor errorColor = circuit.getPlugin().getPrefs().getErrorColor();\n ChatColor debugColor = circuit.getPlugin().getPrefs().getDebugColor();\n circuit.debug(errorColor + \"Possible infinite feedback loop \" + debugColor + \"detected in input \" + errorColor + index + debugColor + \".\");\n circuit.debug(\"Use /rcenable to reactivate the circuit after solving the problem or destroy it normally.\");\n }\n \n circuit.disable();\n }", "private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }", "@Override\n\tpublic boolean isErrorEnabled(Marker marker) {\n\t\treturn false;\n\t}", "void setError();", "public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }", "protected void handleError(ErrorEvent event)\r\n\t{\r\n\t\t// no default behavior\r\n\t}", "@Override\n public void onError(Throwable arg0, boolean arg1) {\n hideLoading();\n System.out.println(arg0.getMessage());\n }", "@Override\n public void onError(Throwable arg0, boolean arg1) {\n hideLoading();\n System.out.println(arg0.getMessage());\n }", "void invalid() {\n\t\tSystem.out.println(\"falsche Eingabe...\");\n\t}", "public static void userInputError(int input) //users inputs option that is out of bounds\n\t{\n\t\tSystem.out.println(\"ERROR: Selection Out Of Bounds! \\nOption \" + input + \" Does Not Exist\"); //error message\n\t\tSystem.out.println(\"Press 'Enter' To try Again\"); // prompt to try again\n\t}", "public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}", "void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }", "public void error();", "public void unsuccessful()\n {\n inputFundsField.setText(\"An Error Has Occurred\");\n }", "public void onError(String err, String nick);", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void disableInputs();", "@Override\r\n\tpublic void showErrReq() {\n\t\tdialog.cancel();\r\n\t\tshowNetView(true);\r\n\t}", "public static final void ccSetSilentError(boolean pxVal){\n cmErrOn=!pxVal;\n }", "public void invalidMovePrompt() {\n\t\tinvalidPrompted = true;\n\t\tSystem.out.println(\"Invalid move. Please try again\");\n\t}", "public static void error()\r\n {\r\n valid=false;\r\n\r\n }", "public void inputChangeEvent( float time, int dstPin, boolean v ) {\n\tErrors.fatal( \"Input should never change: \" + toString() );\n }", "void onError(ModelNotification notification);", "void showAlertForInvalidNumber();", "private static void exitAsInvalidInput() {\n\t\tSystem.out.println(\n\t\t\t\t\"You have entered invalid input. Exiting the system now.\");\n\t\tSystem.exit(0);\n\t}", "public void Error(){\n }", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "public static String invalidInput() {\n return \"Invalid input!\";\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "private void disableInputs() {\n bulbPressTime.setEnabled(false);\n intervalTime.setEnabled(false);\n numTicks.setEnabled(false);\n startBtn.setEnabled(false);\n connStatus.setText(getString(R.string.StatusRunning));\n connStatus.setTextColor(getColor(R.color.green));\n }", "private void checkUserInput() {\n }", "public interface InvalidInputListener extends EventListener {\n /**\n * Fired when the status is updated.\n *\n * @param invalid if true we have some invalid input fields in the UI.\n */\n void statusUpdate(boolean invalid);\n}", "public void makeError(){\n\t\tisError = true;\n\t}", "@Override\n public void gotUsersError(String message) {\n disableButton.setEnabled(true);\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void messageToUser() {\n // show a message dialog - the message is an error message.\n JOptionPane.showMessageDialog(new JFrame(),\n \"You are missing some parameters in the level definitions, Please check it\", \"Error!\",\n JOptionPane.ERROR_MESSAGE);\n // exit the program\n System.exit(0);\n }", "@Override\n public void showError() {\n }", "void onFatal();", "public void onReceivedError();", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public void correctErrors();", "public void noError()\n\t\t\t{\n\t\t\t\tsend(\"<error />\", false);\n\t\t\t}", "void drawError(String message);", "public void inquiryError() {\n\t\t\n\t}", "@Override\n\tpublic void getError() {\n System.err.println(\"8877挂掉了\");\n\t}", "public void onError(String cadena) {\r\n\t\tJOptionPane.showMessageDialog(null, cadena, \"Movimiento invalido\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\r\n\t}", "@Override\n\tpublic void adjustToError() {\n\t\t\n\t}", "void displayUserTakenError(){\n error.setVisible(true);\n }", "protected void hideNotify() {\n try {\n myJump.systemPauseThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }", "@Override\n public void setFailed(String msg) {\n Platform.runLater(() -> {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Errore di input\");\n alert.setHeaderText(msg);\n alert.showAndWait();\n });\n if (firstAction) {\n inTurno = false;\n }\n\n }", "@Override\n\tpublic boolean isFatalEnabled(Marker marker) {\n\t\treturn false;\n\t}", "public static void hitWrong()\n\t{\n\t\troundEnd();\n\t\tlblUpdate.setText(\"You have answer incorrectly. You lose.\");\n\t}", "public void connectionFailed() {\n\t\tlogin.setEnabled(true);\n\t\t// logout.setEnabled(false);\n\t\t// label.setText(\"Enter your username below\");\n\t\tun.setText(\"Anonymous\");\n\t\t// reset port number and host name as a construction time\n\t\ttfPort.setText(\"\" + defaultPort);\n\t\ttfServer.setText(defaultHost);\n\t\t// let the user change them\n\t\ttfServer.setEditable(false);\n\t\ttfPort.setEditable(false);\n\t\t// don't react to a <CR> after the username\n\t\tun.removeActionListener(this);\n\t\tconnected = false;\n\t}", "private void invalidTry(){\n setButtons(false);\n setMsgText(\"There are 2 players in game, you cannot join in now.\");\n }", "public void setError(double error) {\r\n this.error = error;\r\n }", "@Override\r\n public void mainGameLoop() {\r\n printInvalidCommandMessage();\r\n }", "void errorOccurred(@Nonnull String errorMessage);", "public void mo55177a() {\n this.f1453a.onError(this.f1454b);\n }", "@Override\n public void onIncorrect(String answer) {\n System.out.println(\"incorrect\");\n }", "abstract void consoleError(String error);", "private void err3() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand3.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand3.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand3.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand3.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}", "public void handleThrowDices(ActionEvent event){\n sender.sendInput(\"throw dices\");\n }", "public TextBotFlowTurnRequest inputEventError(TextBotErrorInputEvent inputEventError) {\n this.inputEventError = inputEventError;\n return this;\n }", "private void error(int error) {\n\t\t//user limit reached error gui\n\t\tif(error == USER_LIMIT_REACHED) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Limit Reached\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"You have reached the maximum amount of users (\" + users.length + \" users).\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user exists error gui\n\t\telse if(error == USER_EXISTS) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Exists\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" already exists.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user not found error gui\n\t\telse if(error == USER_NOT_FOUND) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Not Found\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" does not exist.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//command not found error gui\n\t\telse if(error == CMD_NOT_FOUND) {\n\t\t\tProgramGUI.this.dispose();\n\t\t\tframe = new JFrame(\"Error: Invalid Command\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The command \" + cmd.getText() + \" does not exist.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user is already admin error gui\n\t\telse if(error == ALREADY_ADMIN) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Promotion\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" is already an admin.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user is already regular error gui\n\t\telse if(error == ALREADY_REG) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Demotion\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" is already a regular user.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//permissions error gui\n\t\telse if(error == PERMISSIONS) {\n\t\t\tProgramGUI.this.dispose();\n\t\t\tframe = new JFrame(\"Error: Permissions\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"You do not have permission.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//card expired gui\n\t\telse if(error == EXPIRED) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Card Expired\");\n\t\t\tframe.setSize(390, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The card \" + card.getText() + \" expired on \" + expiry.getText()));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t}", "public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }", "public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}", "public void onError(String errorMessage);", "void showError(String message);", "void showError(String message);", "void analysisCancelled();", "public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }", "public void printErrToken(){\r\n System.err.println(\"Invalid token at line: \" + lineNum + \" , column \" + colNum);\r\n }", "@EventHandler\n public void onVelocity(PlayerVelocityEvent event)\n {\n event.setCancelled(true);\n event.getPlayer().sendMessage(FOPM_Messages.MOD_TAG + \"Knockback is currently disabled because of crash issues.\");\n }", "@Override\n public void reportError(String msg) {\n JOptionPane.showMessageDialog(null, msg);\n }", "private void signalInvalidPassword() {\r\n passText.setBackgroundColor(ContextCompat.getColor(this, R.color.errorBackground));\r\n Toast.makeText(this, \"The password was incorrect!\", Toast.LENGTH_SHORT).show();\r\n }", "void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }", "@Override\n public void onError() {\n Toast.makeText(getApplicationContext(), \"아이디랑 비밀번호를 확인해 주세요.\", Toast.LENGTH_LONG).show();\n }", "public void showBadInputMessage() {\n\t\tJOptionPane.showMessageDialog(frame, \"Vänligen skriv siffror mellan 1 och \" + size);\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\texecutable.feedbackDisable();\r\n\t\t\t\t}", "private void fitbitRequestError() {\r\n BarChart chart = findViewById(R.id.chart);\r\n chart.setNoDataText(getResources().getString(R.string.data_error));\r\n chart.invalidate();\r\n\r\n Button btnPrev = findViewById(R.id.btn_prev);\r\n btnPrev.setVisibility(View.GONE);\r\n Button btnNext = findViewById(R.id.btn_next);\r\n btnNext.setVisibility(View.GONE);\r\n }", "public static double f_input() {\n Scanner keyboard = new Scanner(System.in);\r\n double input;\r\n\r\n input = keyboard.nextDouble();\r\n\r\n while (input <= 0) {\r\n System.err.println(\"ERROR, The input must be greater than 0\\nRetry:\");\r\n input = keyboard.nextDouble();\r\n }\r\n return input;\r\n }", "public void onSetUserInputEnabled() {\n }", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "private void cancelInput(TextArea textField){\n mainMessage.setText(\"Canceled operation.\");\n stage.setScene(main);\n }", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "@Override\n\tpublic void calculateError() {\n\t\t\n\t}", "private void invalidMove(){\n setMsgText(\"That's a invalid move\");\n playSound(WRONG_SOUND);\n }", "void setErrorUsername();", "private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }", "@FXML\n private void handleUserInput() {\n if (userInput.getText().trim().length() != 0) {\n String input = userInput.getText();\n String response = ailurus.getResponse(input);\n assert response.length() != 0 : \"response should not be empty\";\n assert userImage != null : \"userImage should not be null\";\n assert ailurusImage != null : \"ailurusImage should not be null\";\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getAilurusDialog(response, ailurusImage)\n );\n userInput.clear();\n if (Ailurus.isExit()) {\n userInput.setDisable(true);\n new Timer().schedule(new TimerTask() {\n @Override\n public void run() {\n Platform.exit();\n System.exit(0);\n }\n }, 1000);\n }\n } else {\n userInput.clear();\n }\n }", "@Override\n public void displayError() {\n Toast.makeText(this, \"Incorrect username or password.\", Toast.LENGTH_LONG).show();\n password.setText(\"\");\n }", "protected void onUnrecoverableError(I i, Throwable t)\n/* */ {\n/* 105 */ log.error(\"Unrecoverable error occurred while processing input on pipeline [{}]\", printableName(), t);\n/* */ }", "public void warningSound() {\n\t\tSystem.out.println(signal);\n\t}" ]
[ "0.62679976", "0.62385255", "0.6158652", "0.6053962", "0.60221463", "0.5878992", "0.5823716", "0.57708615", "0.57437885", "0.57343924", "0.5702179", "0.5696705", "0.56855935", "0.56451654", "0.5633564", "0.5633564", "0.559996", "0.55705196", "0.55496144", "0.549013", "0.54842466", "0.5483273", "0.54568154", "0.544299", "0.5441132", "0.54406816", "0.5430234", "0.54093456", "0.53594154", "0.535727", "0.53565764", "0.53449595", "0.53393465", "0.5330181", "0.53282315", "0.53158754", "0.5312892", "0.531061", "0.5307185", "0.5302202", "0.52997506", "0.52948487", "0.5282513", "0.5279394", "0.52734905", "0.5261864", "0.5246588", "0.5232607", "0.51988035", "0.51971895", "0.519425", "0.51770765", "0.51766044", "0.51496506", "0.51484185", "0.514529", "0.5143648", "0.51358676", "0.5131885", "0.51298064", "0.51282376", "0.5117711", "0.5113905", "0.5113007", "0.51064986", "0.5105316", "0.5102252", "0.5100383", "0.5099044", "0.5098899", "0.5095849", "0.5089614", "0.50871795", "0.50840133", "0.5083633", "0.5083633", "0.50601566", "0.50583494", "0.50546855", "0.5052388", "0.5049786", "0.5045274", "0.50380933", "0.50377214", "0.5037112", "0.5033177", "0.5030465", "0.5028399", "0.5028015", "0.50274324", "0.5024777", "0.50247616", "0.50238883", "0.50177807", "0.5014093", "0.50102276", "0.5006951", "0.50044113", "0.4997691", "0.49975693" ]
0.68631536
0
// Interactive animation // // Animate a fixedpoint iteration trace starting at column c.
private void animate(int c) { // Erase the previous fixed-point iteration trace, if any. if (k > 0) plotLines(cs1, rs1, cs2, rs2, k, Color.red); // Draw a new fixed-point iteration trace. iterate(x0(c)); plotLines(cs1, rs1, cs2, rs2, k, Color.red); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void play(int column);", "public abstract void animation(double seconds);", "public void mo8808a(int i) {\n if (this.f12125b != null) {\n this.f12125b.mo8862c(i);\n }\n if (i == 1) {\n if (this.f12130g != null) {\n this.f12130g.setVisibility(0);\n }\n if (this.f12131h != null) {\n this.f12131h.setVisibility(4);\n }\n if (this.f12133j != null) {\n this.f12133j.setVisibility(4);\n }\n if (this.f12132i != null) {\n this.f12132i.setVisibility(4);\n }\n } else if (i == 2) {\n if (this.f12131h != null) {\n this.f12131h.setVisibility(0);\n }\n if (this.f12130g != null) {\n this.f12130g.setVisibility(4);\n }\n if (this.f12133j != null) {\n this.f12133j.setVisibility(4);\n }\n if (this.f12132i != null) {\n this.f12132i.setVisibility(4);\n }\n } else if (i == 3) {\n if (this.f12133j != null) {\n this.f12133j.setVisibility(0);\n }\n if (this.f12130g != null) {\n this.f12130g.setVisibility(4);\n }\n if (this.f12131h != null) {\n this.f12131h.setVisibility(4);\n }\n if (this.f12132i != null) {\n this.f12132i.setVisibility(4);\n }\n } else if (i == 4) {\n if (this.f12132i != null) {\n this.f12132i.setVisibility(0);\n }\n if (this.f12130g != null) {\n this.f12130g.setVisibility(4);\n }\n if (this.f12131h != null) {\n this.f12131h.setVisibility(4);\n }\n if (this.f12133j != null) {\n this.f12133j.setVisibility(4);\n }\n } else {\n if (this.f12130g != null) {\n this.f12130g.setVisibility(0);\n }\n if (this.f12131h != null) {\n this.f12131h.setVisibility(4);\n }\n if (this.f12133j != null) {\n this.f12133j.setVisibility(4);\n }\n if (this.f12132i != null) {\n this.f12132i.setVisibility(4);\n }\n }\n }", "public void display(int uMove, int cMove, boolean hard)\r\n {\r\n animate.start(uMove, cMove, hard);\r\n }", "public static void main(String[] args) {\r\n double xStart = Double.parseDouble(args[0]);\r\n double yStart = Double.parseDouble(args[1]);\r\n double dx = Double.parseDouble(args[2]);\r\n double dy = Double.parseDouble(args[3]);\r\n drawAnimation(new Point(xStart, yStart), dx, dy);\r\n //drawAnimation(new Point(200,200),3,4);\r\n }", "private final void m75344c(int i) {\n ((FrameLayout) mo78146a(R.id.selectorLayout)).animate().alpha(i < 0 ? 1.0f : 0.0f).start();\n }", "private void runAnimation() {\n if (footage == null) {\n System.out.println(\"Load the footage first\");\n } else {\n Runnable animationToRun = () -> {\n\n Background yellowBg = new Background(new BackgroundFill(Color.YELLOW, CornerRadii.EMPTY, Insets.EMPTY));\n Background blackBg = new Background(new BackgroundFill(Color.BLACK, CornerRadii.EMPTY, Insets.EMPTY));\n Background blueBg = new Background(new BackgroundFill(Color.BLUE, CornerRadii.EMPTY, Insets.EMPTY));\n Background whiteBg = new Background(new BackgroundFill(Color.WHITE, CornerRadii.EMPTY, Insets.EMPTY));\n\n doRun = true;\n int numFrames = footage.getNumFrames();\n int currentFrameIndex = 0;\n Background bck = null;\n while (doRun) {\n if (currentFrameIndex >= numFrames - 1) currentFrameIndex = 0;\n IFrame currentFrame = footage.getFrame(currentFrameIndex);\n // Iterate through the current frame displaying appropriate colour\n for (int row = 0; row < footage.getNumRows(); row++) {\n for (int col = 0; col < footage.getNumRows(); col++) {\n switch (currentFrame.getChar(row, col)) {\n case 'l':\n bck = yellowBg;\n break;\n case 'r':\n bck = blackBg;\n break;\n case 'b':\n bck = blueBg;\n break;\n default:\n bck = whiteBg;\n }\n final int theRow = row;\n final int theCol = col;\n final Background backgroundColour = bck;\n // This is another lambda callback. When the Platform\n // GUI thread is ready it will run this code.\n Platform.runLater(() -> {\n\n // Update UI here\n // We have to make this request on a queue that the GUI thread\n // will run when ready.\n gridArray[theRow][theCol].setBackground(backgroundColour);\n });\n\n }\n }\n try {\n // This is how we delay for 200th of a second\n Thread.sleep(200);\n } catch (InterruptedException e) {\n }\n currentFrameIndex++;\n }\n };\n animation = new Thread(animationToRun);\n animation.start();\n }\n }", "public final void h(int i) {\n this.g.d().c(i);\n }", "protected abstract void animate(int anim);", "public abstract void nextAnimationStep();", "private void m7227c(int i) {\n m7230f();\n this.f5601w.postDelayed(this.f5579D, (long) i);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n if (animationInProgress) {\n logger.info(\"Lost frame...\");\n return;\n }\n animationInProgress = true;\n\n java.util.List<Double> toIndex = indexFind.get(0);\n\n int value = Step + stepStep * animDirection;\n if (value < 1) {\n value = 1;\n }\n else if (value > toIndex.size()) {\n value = toIndex.size() - 1;\n }\n\n Step = value;\n\n try {\n long start = System.currentTimeMillis();\n XYPlot plot = (XYPlot)this.chartPanel.getChart().getPlot();\n currentIndex = Step - 1;\n plot.setDomainCrosshairValue(toIndex.get(currentIndex));\n //selectStructure(Step);\n //structureManagerInterface.selectStructure(currentIndex);\n float secs = (System.currentTimeMillis() - start) / 1000.0f;\n logger.info(\"Elapsed time: \" + secs);\n //setSnapshotValue(Step);\n }\n catch (Exception ex) {\n animationInProgress = false;\n timer.stop();\n JOptionPane.showMessageDialog(this, \"Error during animation: \" + ex.getMessage() + \"\\nAnimation stopped\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n\n if (animationMode == 0) { // Animate once\n if (Step == 1 && animDirection == -1) {\n stopAnimation();\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n stopAnimation();\n }\n }\n\n else if (animationMode == 1) { // Animate in loop\n if (Step == 1 && animDirection == -1) {\n Step = toIndex.size();\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n Step = 1;\n }\n }\n\n else if (animationMode == 2) { // Animate back & forth\n if (Step == 1 && animDirection == -1) {\n if (toIndex.size() > 1) {\n Step = 1;\n animDirection = 1;\n }\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n if (toIndex.size() > 1) {\n Step = toIndex.size() - 1;\n animDirection = -1;\n }\n }\n }\n\n animationInProgress = false;\n }", "void debugarcf() {\t\n\t\tfor( int i = 0; i < N; i++ )\n\t\t{\tSystem.out.print(\"f[\"+i+\"]= \");\n\t\tfor( int j = 0; j < N; j++ )\n\t\t\tSystem.out.print(f[i][j]+\" \");\n\t\tSystem.out.print(\" arcs[\"+i+\"]= \");\n\t\tfor( int j = 0; j < N; j++ )\n\t\t\tSystem.out.print(arcs[i][j]+\" \");\n\t\tSystem.out.println();\n\t\t}\n\t}", "private void m87316a(int i, float f) {\n int i2;\n m87326d();\n int i3 = (int) this.f61212e;\n int i4 = i - i3;\n if (i4 != 0) {\n int height = getHeight();\n int i5 = height / 2;\n float f2 = (float) height;\n float f3 = (float) i5;\n float b = f3 + (m87322b(Math.min(1.0f, (((float) Math.abs(i4)) * 1.0f) / f2)) * f3);\n float abs = Math.abs(f);\n if (abs > 0.0f) {\n i2 = Math.round(Math.abs(b / abs) * 1000.0f) * 4;\n } else {\n i2 = (int) (((((float) Math.abs(i4)) / f2) + 1.0f) * 100.0f);\n }\n this.f61222o.startScroll(0, i3, 0, i4, Math.min(i2, 300));\n ViewCompat.postInvalidateOnAnimation(this);\n }\n }", "public void animateDice() {\n pos += vel*tickCounter + ACC*tickCounter*tickCounter/2;\n if(pos<(TILE_SIZE*15-DICE_SIZE)/2){\n if(this.pIndex%3==0)\n diceImg = diceAnimation[tickCounter%diceAnimation.length];\n else\n diceImg = diceAnimation[diceAnimation.length-1-(tickCounter%diceAnimation.length)];\n tickCounter++;\n vel += ACC;}\n else{\n diceImg = dice[result-1];\n pos=(TILE_SIZE*15-DICE_SIZE)/2;}\n setCoordinates(pos);\n //System.out.println(\"dice pos \"+pos);\n }", "public void mo27002c(int i) {\n this.f24578r = i;\n TextView textView = this.f24577q;\n if (textView != null) {\n C0513i.m2778d(textView, i);\n }\n }", "public void mo3355b(int i) {\n boolean z = this.f3364f;\n this.f3364f = true;\n try {\n scrollTo(0, i);\n } finally {\n this.f3364f = z;\n }\n }", "public void show(int c) {\n noFill();\n stroke(255, c, 0);\n strokeWeight(5);\n ellipse(x, y, size, size);\n \n }", "@Override\n\tpublic void draw() {\n\t\tfloat delta = Gdx.graphics.getDeltaTime();\n\t\ti+= delta;\n\t\timage.setRegion(animation.getKeyFrame(i, true));\n\t\t//this.getSpriteBatch().draw(animation.getKeyFrame(i, true), 0, 0);\n\t\t\n\t\tGdx.app.log(\"tag\", \"delta = \" + i);\n\t\t\n\t\tsuper.draw();\n\t}", "public static void main(String[] args) throws InterruptedException\n {\n // create and configure the frame (window) for the program\n JFrame frame = new JFrame();\n \n frame.setSize(800 /* x */, 600 /* y */);\n frame.setTitle(\"Cityscape\");\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n \n \n // a frame contains a single component; create the Cityscape component and add it to the frame\n CityscapeComponent component = new CityscapeComponent();\n frame.add(component);\n \n // make the frame visible which will result in the paintComponent method being invoked on the\n // component.\n frame.setVisible(true);\n\n \n int r = 30; //->253\n int g = 144; //->94\n int b = 255; //->83\n // animate the cityscape\n for(seconds = 0; seconds < ANIMATION_TIME_IN_SECONDS; seconds++ )\n {\n if(seconds < 28)\n {\n r+=8;\n g-=2;\n b-=6;\n }\n else if((seconds >= 28 && seconds < 36) && (r > 32 && b > 11 && g > 7))\n {\n r-= 32;\n g-=11;\n b-=7;\n }\n else\n {\n r = 0;\n g = 0;\n b = 0;\n }\n frame.getContentPane().setBackground(new Color(r, g, b));\n component.nextFrame();\n Thread.sleep( 1000 );\n }\n \n }", "public final void mo22642a(int i, boolean z) {\n this.f25291f = false;\n if (!z || !this.f25289d.isFinished()) {\n if (!this.f25289d.isFinished()) {\n this.f25289d.abortAnimation();\n }\n int max = Math.max(Math.min(i, this.f25301p.size() - 1), 0);\n this.f25262I = max;\n this.f25263J = max;\n this.f25272S = 0;\n m27469e();\n requestLayout();\n invalidate();\n return;\n }\n int size = getData().size();\n int i2 = i - this.f25263J;\n if (i2 != 0) {\n if (this.f25281ae && Math.abs(i2) > size / 2) {\n if (i2 > 0) {\n size = -size;\n }\n i2 += size;\n }\n this.f25289d.startScroll(0, this.f25289d.getCurrY(), 0, (-i2) * this.f25259F);\n this.f25287b.post(this);\n }\n }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n Point[] points = new Point[n];\n for (int i = 0; i < n; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n\n // draw the points\n StdDraw.enableDoubleBuffering();\n StdDraw.setXscale(0, 32768);\n StdDraw.setYscale(0, 32768);\n for (Point p : points) {\n p.draw();\n }\n StdDraw.show();\n\n FastCollinearPoints fcp = new FastCollinearPoints(points);\n for (LineSegment ls : fcp.segments()) {\n StdOut.println(ls);\n ls.draw();\n }\n StdDraw.show();\n }", "private void showTheMove() {\n\r\n updateTicTacToeShape();\r\n for (int ii=0; ii<5; ii++) {\r\n System.out.println(ticTacToeShape[ii]);\r\n }\r\n }", "public void setKeyFrame(int value) {\n this.keyFrame = value;\n }", "@Override // com.android.systemui.qs.TouchAnimator.KeyframeSet\n public void interpolate(int i, float f, Object obj) {\n float[] fArr = this.mValues;\n float f2 = fArr[i - 1];\n this.mProperty.set(obj, Float.valueOf(f2 + ((fArr[i] - f2) * f)));\n }", "public void e()\n/* */ {\n/* 193 */ if (!this.g) {\n/* 194 */ AnimatorSet localAnimatorSet = new AnimatorSet();\n/* 195 */ localAnimatorSet.play(a(this.b)).with(b(this.c));\n/* 196 */ localAnimatorSet.setDuration(this.f).start();\n/* 197 */ this.c.setVisibility(View.VISIBLE);\n/* 198 */ this.g = true;\n/* */ }\n/* */ }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n Point[] points = new Point[n];\n for (int i = 0; i < n; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n\n // draw the points\n StdDraw.enableDoubleBuffering();\n StdDraw.setXscale(0, 32768);\n StdDraw.setYscale(0, 32768);\n for (Point p : points) {\n p.draw();\n }\n StdDraw.show();\n\n // print and draw the line segments\n Stopwatch watch = new Stopwatch();\n\n FastCollinearPoints collinear = new FastCollinearPoints(points);\n\n for (LineSegment segment : collinear.segments()) {\n StdOut.println(segment);\n segment.draw();\n }\n StdOut.println(\"Line Segments number: \" + collinear.numberOfSegments());\n StdOut.println(\"Running time: \" + watch.elapsedTime());\n\n for (LineSegment segment : collinear.segments()) {\n StdOut.println(segment);\n segment.draw();\n }\n StdOut.println(\"Line Segments number: \" + collinear.numberOfSegments());\n\n StdDraw.show();\n }", "g(int paramInt) {\n/* 14364 */ this.a = (Interpolator)new DecelerateInterpolator();\n/* 14365 */ this.b = paramInt;\n/* 14366 */ this.c = this.b + 500;\n/* */ }", "public void setCol(int c) {\n\t\tthis.col = c;\n\t}", "private void printThings(int i) {\n System.out.println(\"\\nTrying:\");\n System.out.println(\"currRow: \" + currRow);\n System.out.println(\"currColumn: \" + currColumn);\n System.out.print(\"Number = \" + i);\n printBoard(board);\n }", "public void run() {\n\tObjectFrame flange = lbr_iiwa_14_R820_1.getFlange();\t\t//flange frame\n\tObjectFrame lbrRoot = lbr_iiwa_14_R820_1.getRootFrame();\t//root frame\n\t\t\t\n\t// define frames for task trajectory:\n\tFrame F_contactEnd = new Frame(lbrRoot,500,0,385,Math.toRadians(180),Math.toRadians(0),Math.toRadians(180));\n\t\n\tFrame F_tmp = F_contactEnd.copy();\n\t\n\tF_flyMin \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, 50)).copy();\n\tF_fly3 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, 60)).copy();\n\tF_fly4 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 200,0, 0)).copy();\n\tF_flyMax \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, -60)).copy();\t\t\n\tF_contactStart \t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, -50)).copy();\n\t\n\tSystem.out.println(String.format(\"F_flyMin, x: %1$f y: %2$f z: %3$f\", F_flyMin.getX(), F_flyMin.getY(), F_flyMin.getZ()));\n\tSystem.out.println(String.format(\"F_fly3, x: %1$f y: %2$f z: %3$f\", F_fly3.getX(), F_fly3.getY(), F_fly3.getZ()));\n\tSystem.out.println(String.format(\"F_fly4, x: %1$f y: %2$f z: %3$f\", F_fly4.getX(), F_fly4.getY(), F_fly4.getZ()));\n\tSystem.out.println(String.format(\"F_flyMax, x: %1$f y: %2$f z: %3$f\", F_flyMax.getX(), F_flyMax.getY(), F_flyMax.getZ()));\n\tSystem.out.println(String.format(\"F_contactStart, x: %1$f y: %2$f z: %3$f\", F_contactStart.getX(), F_contactStart.getY(), F_contactStart.getZ()));\n\t\n\tSpline flyingPhase_spline = new Spline(\n\t\t\tlin(F_contactEnd),\n\t\t\tspl(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_contactStart)\n\t\t);\n\t\n\t\n\t// move to standBy position:\n\tSystem.out.println(\"going to standBy position\");\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\n\n\t\n\t/*\n\tSystem.out.println(\"going to end frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing));\n\t*/\n\t\n\t/*\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMin).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly3).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly4).setCartVelocity(v_taxing));\n\t\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMax).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing)); \n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - spline (3x)\");\n\tfor (int i=1; i<=3; i++)\n\t{\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250));\n\t}\n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - batch\");\n\tlbr_iiwa_14_R820_1.moveAsync(batch(\n\t\t\tlin(F_contactEnd),\n\t\t\tlin(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_contactStart)\n\t).setCartVelocity(v_fly));\n\t*/\n\t\n\t\n\tSystem.out.println(\"Setting impedance mode\");\n\tCartesianImpedanceControlMode cartImpMode = new CartesianImpedanceControlMode();\n\n\t/*\n\tcartImpMode.parametrize(CartDOF.TRANSL).setStiffness(1500);\n\tcartImpMode.parametrize(CartDOF.TRANSL).setDamping(0.7);\n\n\tcartImpMode.parametrize(CartDOF.Z).setStiffness(100);\n\n\tcartImpMode.parametrize(CartDOF.ROT).setStiffness(200);\n\tcartImpMode.parametrize(CartDOF.ROT).setDamping(0.7);\n\n\tcartImpMode.setNullSpaceDamping(0.3);\n\tcartImpMode.setNullSpaceStiffness(0);\n\n\tcartImpMode.setMaxControlForce(30, 30, 30, 10, 10, 10, false);\n\t*/\n\t\n\t// manage data recording\n\tDataRecorder rec = new DataRecorder(); //data recording \n\trec.setFileName(\"Recording.log\");\n\trec.setSampleRate(100);\n\trec.addCartesianForce(lbr_iiwa_14_R820_1.getFlange(),lbrRoot);\n\tStartRecordingAction startAction = new StartRecordingAction(rec);\n\t\n\tForceCondition condstart = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, 1); //recording trigger\n\tForceCondition condend = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, force_z); //stop movement trigger\n\t\n\t\n\tSystem.out.println(\"going to start frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing).setCartAcceleration(200));\t\n\t\n\t//start cycling\n\tfor (int i_cycle=1; i_cycle <= 3; i_cycle ++)\n\t{\n\t\tSystem.out.println(String.format(\"cycle # %1$d\", i_cycle));\n\t\t\n\t\t//PHASE 1: transition, landing\n\t\t//System.out.println(\"start transition phase, landing, impedance mode \");\n\t\t//lbr_iiwa_14_R820_1.move(linRel(0,0,-dz,lbrRoot).triggerWhen(condstart, startAction).breakWhen(condend).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t\n\t\tif (i_cycle == 1)\n\t\t{\n\t\t\t// check data recording\n\t\t\tSystem.out.println(\"recording activated\");\n\t\t\tif(rec.isFileAvailable())\n\t\t\t\tSystem.out.println(\"data file available\");\n\t\t\t\n\t\t\tURL url = rec.getURL();\n\t\t\tdummy = url.toString();\n\t\t\tSystem.out.println(dummy);\n\t\t}\n\t\t\n\t\t// print current force value\n\t\tForceSensorData data = lbr_iiwa_14_R820_1.getExternalForceTorque(lbr_iiwa_14_R820_1.getFlange());\n\t\tSystem.out.println(String.format(\"Fz = %1$f \",data.getForce().getZ()));\n\t\t\n\t\t// PHASE 2: contact phase\n\t\t//System.out.println(\"start contact phase, impedance mode\");\n\t\t//lbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_contact).setMode(cartImpMode));\n\t\t/*\n\t\t// PHASE 3: transition phase, take off\n\t\tSystem.out.println(\"start transition phase, impedance mode\");\n\t\tlbr_iiwa_14_R820_1.move(linRel(0,0,dz,lbrRoot).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t*/\n\t\t// PHASE 4: flying phase \n\t\tSystem.out.println(\"start flying phase, swift\");\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250).setMode(cartImpMode));\n\t}\n\t\n\t\n\t// stop recording\n\trec.stopRecording();\n\tSystem.out.println(\"data recording stopped\");\n\t\n\t\n\t// move to standBy position:\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\t\n\t}", "private void m32685a(int i, int i2, boolean z) {\n if (z) {\n AnimatorSet animatorSet = new AnimatorSet();\n this.f24567g = animatorSet;\n ArrayList arrayList = new ArrayList();\n ArrayList arrayList2 = arrayList;\n int i3 = i;\n int i4 = i2;\n m32688a(arrayList2, this.f24576p, this.f24577q, 2, i3, i4);\n m32688a(arrayList2, this.f24572l, this.f24573m, 1, i3, i4);\n C11469b.m36996a(animatorSet, arrayList);\n C10348a aVar = new C10348a(i2, m32690d(i), i, m32690d(i2));\n animatorSet.addListener(aVar);\n animatorSet.start();\n } else {\n m32684a(i, i2);\n }\n this.f24562b.mo27023c();\n this.f24562b.mo27021b(z);\n this.f24562b.mo27024d();\n }", "void startAnimation();", "public void displayGrid()\n {\n\t\t\n\tfor (int y=0; y<cases.length; y++)\n\t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tSystem.out.print(\"|\"+cases[y][x].getValue());\n }\n System.out.println(\"|\");\n\t}\n }", "private ObjectAnimator a(c paramc)\n/* */ {\n/* 143 */ int i = getWidth();\n/* 144 */ ObjectAnimator localObjectAnimator = ObjectAnimator.ofFloat(paramc, \"translationX\", new float[] { 0.0F, -i });\n/* 145 */ return localObjectAnimator;\n/* */ }", "void setStepCounterTileXY();", "private void m87592f(boolean z) {\n int i;\n int i2;\n int i3;\n this.f70274c = z ^ true ? 1 : 0;\n C0520q qVar = new C0520q();\n qVar.mo2151a(new C0488d().mo2131b(this.f70291h).mo2131b(this.f70288e).mo2131b(this.f70289f).mo2131b(this.f70290g));\n qVar.mo2151a(new C0476c().mo2128b((int) R.id.cu7));\n qVar.mo2116a((TimeInterpolator) new C38457aq(0.32f, 0.94f, 0.6f, 1.0f));\n qVar.mo2115a(200);\n C0516o.m2171a((ViewGroup) this.f70287d, qVar);\n View view = this.f70289f;\n int i4 = 0;\n if (z) {\n i = 8;\n } else {\n i = 0;\n }\n view.setVisibility(i);\n if (!this.f70293j || this.f70294k) {\n View view2 = this.f70290g;\n if (z) {\n i2 = 8;\n } else {\n i2 = 0;\n }\n view2.setVisibility(i2);\n if (this.f70294k) {\n View view3 = this.f70291h;\n if (!z) {\n i3 = 8;\n } else {\n i3 = 0;\n }\n view3.setVisibility(i3);\n }\n }\n if (this.f70295l) {\n View view4 = this.f70288e;\n if (!z) {\n i4 = 8;\n }\n view4.setVisibility(i4);\n }\n }", "public Animation(Texture texture, int columns, int rows, float step, boolean loop) {\n this(null, texture, columns, rows, step, loop);\n }", "@Override\n\tpublic void debugDraw(Graphics g) {\n\t\tfor(int i = 0; i < CELL_SIDE_COUNT; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < CELL_SIDE_COUNT; j++)\n\t\t\t{\n\t\t\t\t//Place code for debug drawing here\n\t\t\t}\n\t\t}\n\t}", "private int caclSteps(float g, float h, float i) {\n\t\tint steps = 0;\n\t\tfloat currSpeed = i;\n\t\tfloat f = 0;\n\t\twhile(f<g){\n\t\t\tf +=currSpeed;\n\t\t\tcurrSpeed+=h;\n\t\t\tsteps++;\n\t\t\t\n\t\t}\n\t\treturn steps;\n\t}", "void setGridX(int i);", "private void shiftLeftAnimal(int row) {\r\n\t\t//some source code and matrix highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tmainMatrix.highlightCellColumnRange(row, 0, 3, new TicksTiming(0), new TicksTiming(0));\r\n\t\tshiftLeftSc.highlight(0);\r\n\t\tshiftLeftSc.highlight(9);\r\n\t\tlang.nextStep();\r\n\t\tshiftLeftSc.unhighlight(0);\r\n\t\tshiftLeftSc.unhighlight(9);\r\n\t\tshiftLeftSc.highlight(1);\r\n\t\tshiftLeftSc.highlight(7);\r\n\t\t//initialize element that shows current state of loop variable\r\n\t\tiText.setText(\"i = 0\", new TicksTiming(0), new TicksTiming(0));\r\n\t\tiText.show();\r\n\t\thighlightText(iText);\r\n\t\t//loop for shifts\r\n\t\tfor (int i = 0; i < row; i++) {\r\n\t\t\tlang.nextStep();\r\n\t\t\t//some source code and matrix highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftLeftSc.unhighlight(1);\r\n\t\t\tshiftLeftSc.unhighlight(7);\r\n\t\t\tshiftLeftSc.highlight(2);\r\n\t\t\tunhighlightText(iText);\r\n\t\t\ttmpText.show();\r\n\t\t\ttmpMatrix.show();\r\n\t\t\t\r\n\t\t\t//add lines to swap values through the matrix. This is where the action happens!\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][0]\\\" and \\\"tmpMatrix[0][0]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(2);\r\n\t\t\tshiftLeftSc.highlight(3);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][0]\\\" and \\\"mainMatrix[\" + row + \"][1]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(3);\r\n\t\t\tshiftLeftSc.highlight(4);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][1]\\\" and \\\"mainMatrix[\" + row + \"][2]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(4);\r\n\t\t\tshiftLeftSc.highlight(5);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][2]\\\" and \\\"mainMatrix[\" + row + \"][3]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(5);\r\n\t\t\tshiftLeftSc.highlight(6);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][3]\\\" and \\\"tmpMatrix[0][0]\\\" refresh after 0 ticks within 100 ticks\");\r\n\r\n\t\t\tlang.nextStep();\r\n\t\t\ttmpText.hide();\r\n\t\t\ttmpMatrix.hide();\r\n\t\t\t//some source code and matrix highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftLeftSc.highlight(1);\r\n\t\t\tshiftLeftSc.highlight(7);\r\n\t\t\tshiftLeftSc.unhighlight(6);\r\n\t\t\tiText.setText(\"i = \" + (i + 1), new TicksTiming(0), new TicksTiming(0));\r\n\t\t\thighlightText(iText);\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t\t//some source code and matrix highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tshiftLeftSc.unhighlight(0);\r\n\t\tshiftLeftSc.unhighlight(9);\r\n\t\tshiftLeftSc.unhighlight(1);\r\n\t\tshiftLeftSc.unhighlight(7);\r\n\t\tshiftLeftSc.highlight(8);\r\n\t\tunhighlightText(iText);\r\n\t\tiText.hide();\r\n\t\tlang.nextStep();\r\n\t\tshiftLeftSc.unhighlight(8);\r\n\t\tmainMatrix.unhighlightCellColumnRange(row, 0, 3, new TicksTiming(0), new TicksTiming(0));\r\n\t}", "public abstract void animationStarted();", "public double trace(){\r\n \tdouble trac = 0.0D;\r\n \tfor(int i=0; i<Math.min(this.ncol,this.ncol); i++){\r\n \ttrac += this.matrix[i][i];\r\n \t}\r\n \treturn trac;\r\n \t}", "public static void main(String[] args) {\n\t\tint j=2;\n\t\twhile(j < 10){\n\t\t\tfor(int i = 1; i <10; i ++){//for(1;2;3)1放初始條件2放繼續執行條件3執行後行為\n\t\t\t\tSystem.out.print(j + \"X\" + i + \"=\" + j*i + \" \");\n\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(); // 換行\n\t\t\tj++; // J遞增才能跳出迴圈\n\t\t}\n\t\t\n\t}", "public void startAnimation() {\n int delay = 50; // milliseconds\n ActionListener taskPerformer = new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (counter < points.length - 1) {\n counter += 20;\n if (counter > points.length) {\n counter = points.length - 1;\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n validate();\n repaint();\n } else {\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n }\n };\n new Timer(delay, taskPerformer, getFreeColClient()).start();\n }", "public void updateFaith(int i){\n this.gameboardPanel.faithPathPane.updateIndicator(i);\n }", "public /* synthetic */ void lambda$createView$5(int i, int i2, float f) {\n if (this.isMotion) {\n this.backgroundImage.getBackground();\n float f2 = 1.0f;\n if (this.motionAnimation != null) {\n f2 = (this.backgroundImage.getScaleX() - 1.0f) / (this.parallaxScale - 1.0f);\n }\n this.backgroundImage.setTranslationX(((float) i) * f2);\n this.backgroundImage.setTranslationY(((float) i2) * f2);\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tVariable animateVar = Variable\r\n\t\t\t\t\t\t.getVariable(Grapher2DConstants.Grapher2DAnimateFlag);\r\n\t\t\t\tanimateVar.set(new BooleanValue(false));\r\n\r\n\t\t\t\t// load the script\r\n\t\t\t\tExpressionConsoleHistory history = ActionScriptLoadUtilities\r\n\t\t\t\t\t\t.promptUserToLoadScript();\r\n\r\n\t\t\t\tMap<String, String> initialSymbolTable = history\r\n\t\t\t\t\t\t.getInitialSymbolTableSnapshot();\r\n\r\n\t\t\t\tMap<String, Variable> currentSymbolTable = Variable\r\n\t\t\t\t\t\t.getSymbolTable();\r\n\r\n\t\t\t\tExpressionConsoleModel console = ExpressionConsoleModel\r\n\t\t\t\t\t\t.getInstance();\r\n\r\n\t\t\t\tRecursiveDescentParser parser = console.getParser();\r\n\r\n\t\t\t\t// initialize the symbol table\r\n\t\t\t\tfor (Iterator<Entry<String, Variable>> it = currentSymbolTable\r\n\t\t\t\t\t\t.entrySet().iterator(); it.hasNext();) {\r\n\t\t\t\t\tEntry<String, Variable> currentEntry = it.next();\r\n\t\t\t\t\tString newValue = initialSymbolTable.get(currentEntry\r\n\t\t\t\t\t\t\t.getKey());\r\n\t\t\t\t\tString expressionToEvaluate = currentEntry.getKey() + \" = \"\r\n\t\t\t\t\t\t\t+ (newValue == null ? \"0\" : newValue);\r\n\t\t\t\t\tparser.parse(expressionToEvaluate).evaluate();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// step through all events\r\n\t\t\t\tList<ExpressionConsoleHistoryEntry> historyList = history\r\n\t\t\t\t\t\t.getExpressionList();\r\n\r\n\t\t\t\tfor (Iterator<ExpressionConsoleHistoryEntry> it = historyList\r\n\t\t\t\t\t\t.iterator(); it.hasNext();) {\r\n\t\t\t\t\tExpressionConsoleHistoryEntry currentEntry = it.next();\r\n\t\t\t\t\tif (currentEntry.getType() == ExpressionConsoleHistoryEntry.INPUT)\r\n\t\t\t\t\t\tconsole.enterExpression(currentEntry.getString());\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// restart animation if it was on before\r\n\t\t\t\t// animateVar.set(oldAnimateValue);\r\n\t\t\t}", "private void m12806a(int i, boolean z) {\n if (((double) i) > 0.0d && i >= this.f10120g) {\n if (i > this.f10120g) {\n this.f10119f.m12637a((double) (((float) (i - this.f10120g)) / 1000.0f), (double) m12817d());\n this.f10120g = i;\n if (i - this.f10121h >= 5000) {\n this.f10117d.mo1750d(this.f10114a, m12804a(C1478b.TIME, i));\n this.f10121h = this.f10120g;\n this.f10119f.m12636a();\n return;\n }\n }\n if (z) {\n this.f10117d.mo1750d(this.f10114a, m12804a(C1478b.TIME, i));\n }\n }\n }", "public void printForward(){\n int k=start;\n for(int i=0;i<size;i++){\n System.out.print(cir[k]+\",\");\n k=(k+1)%cir.length;\n }\n System.out.println();\n }", "public Animation(TState state, Texture texture, int columns, int rows, float step, boolean loop) {\n this(state, texture, columns, rows, step);\n this.loop = loop;\n }", "public void mo13878c(int i) {\n this.f5081g = i;\n }", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "void debugc() {\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tboolean any = false;\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tif( c[i][j] != 0 ) {\n\t\t\t\t\tany = true;\n\t\t\t\t\tSystem.out.print(\"c(\"+i+\",\"+j+\":\"+label[i][j]+\")=\"+c[i][j]+\" \");\n\t\t\t\t}\n\t\t\tif( any )\n\t\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}", "public final void mo91724f(int i) {\n }", "public void showSlice(int z, int t, int c) {\n int index = db.getIndex(z - 1, t - 1, c - 1);\n if (LociDataBrowser.DEBUG) {\n db.log(\"showSlice: index=\" + index +\n \"; z=\" + z + \"; t=\" + t + \"; c=\" + c);\n }\n showSlice(index);\n }", "public void doAnimateStep () {\n\t\tadvanceSimulation();\n\t\tpaint();\n\t}", "public void c(int i) {\n while (true) {\n synchronized (this) {\n if (this.f287b < 0 || (this.f286a.isEmpty() && this.f287b != 0)) {\n } else if (this.f287b <= i) {\n break;\n } else if (this.f286a.isEmpty()) {\n break;\n } else {\n Map.Entry<K, V> next = this.f286a.entrySet().iterator().next();\n K key = next.getKey();\n next.getValue();\n this.f286a.remove(key);\n this.f287b--;\n this.e++;\n }\n }\n }\n }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n Point[] points = new Point[n];\n for (int i = 0; i < n; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n\n // draw the points\n StdDraw.enableDoubleBuffering();\n StdDraw.setXscale(0, 32768);\n StdDraw.setYscale(0, 32768);\n for (Point p : points) {\n p.draw();\n }\n StdDraw.show();\n\n // print and draw the line segments\n FastCollinearPoints collinear = new FastCollinearPoints(points);\n for (LineSegment segment : collinear.segments()) {\n StdOut.println(segment);\n segment.draw();\n }\n StdDraw.show();\n }", "public static void main(String[] args) {\n boolean hasI = false;\n boolean hasV = false;\n String in = \"\";\n String view = \"\";\n int speed = 1;\n\n if (Arrays.asList(args).contains(\"-view\")) {\n int ind = Arrays.asList(args).indexOf(\"-view\") + 1;\n view = Arrays.asList(args).get(ind++);\n hasV = true;\n }\n\n if (Arrays.asList(args).contains(\"-in\")) {\n int ind = Arrays.asList(args).indexOf(\"-in\") + 1;\n in = Arrays.asList(args).get(ind++);\n hasI = true;\n }\n if (!(hasV && hasI)) {\n throw new IllegalArgumentException(\"Must input an in and a view type\");\n }\n\n // Instantiate the correct view & set FileReader object\n ViewFactory factory = new ViewFactory();\n IView v = factory.getView(view);\n\n AnimationBuilder<AnimationModelImpl> builder = AnimationModelImpl.builder();\n Readable rn = null;\n try {\n rn = new FileReader(in);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Parse animation input file\n AnimationReader.parseFile(rn, builder);\n AnimationModel model = builder.build();\n if (Arrays.asList(args).contains(\"-out\")) {\n int ind = Arrays.asList(args).indexOf(\"-out\") + 1;\n String out = Arrays.asList(args).get(ind++);\n Appendable ap = null;\n try {\n ap = new FileWriter(out);\n } catch (IOException e) {\n e.printStackTrace();\n }\n v.setOutput(ap);\n }\n\n if (Arrays.asList(args).contains(\"-speed\")) {\n int speedIndex = Arrays.asList(args).indexOf(\"-speed\") + 1;\n speed = Integer.parseInt(Arrays.asList(args).get(speedIndex));\n }\n v.setSpeed(speed);\n IController controller = new Controller(model, v);\n if (v instanceof VisualAnimationView || v instanceof EditorView) {\n controller.playAnimation();\n }\n if (v.getOut() instanceof FileWriter) {\n try {\n ((FileWriter) v.getOut()).close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void mo21838c(int i) {\n this.f24532d.mo22003u(i);\n }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n Point[] points = new Point[n];\n for (int i = 0; i < n; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n\n // draw the points\n StdDraw.enableDoubleBuffering();\n StdDraw.setXscale(0, 32768);\n StdDraw.setYscale(0, 32768);\n for (Point p : points) {\n p.draw();\n }\n StdDraw.show();\n\n // print and draw the line segments\n FastCollinearPoints collinear = new FastCollinearPoints(points);\n for (LineSegment segment : collinear.segments()) {\n StdOut.println(segment);\n segment.draw();\n }\n StdDraw.show();\n }", "public void stepForward(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\n\t\t//check to see if we have reached the last frame\n\t\tif(frameIndex == frames.length-1){ frameIndex = 0; }\n\t\telse{ frameIndex++; }\n\t\n\t\tframes[frameIndex].display();\n frames[frameIndex].clearDisplay();\n\t}", "private void fly() {\n\t\tint xTarget = 12 *Board.TILE_D;\r\n\t\tint yTarget = 12 * Board.TILE_D;\r\n\t\tif(centerX - xTarget >0) {\r\n\t\t\tcenterX--;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterX++;\r\n\t\t}\r\n\t\tif(centerY - yTarget > 0) {\r\n\t\t\tcenterY --;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterY ++;\r\n\t\t}\r\n\t}", "public void mo3369k(int i) {\n this.f2802a.setVisibility(i);\n }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "private int getAnimationRow() {\n double dirDouble = (Math.atan2(xSpeed, ySpeed) / (Math.PI / 2) + 2);\n int direction = (int) Math.round(dirDouble) % BMP_ROWS;\n return DIRECTION_TO_ANIMATION_MAP[direction];\n }", "public int getFixedPoint(int i) {\n/* 161 */ return this.e.getFixedPoint(i);\n/* */ }", "public abstract void interpolate(int i, float f, Object obj);", "public void m6701a(int i) {\n this.f5471a.postDelayed(new C1337jb(this, i), (long) this.f5473c[i]);\n }", "public void run() {\n\t// Remember the starting time\n\tlong tm = System.currentTimeMillis();\n\twhile (Thread.currentThread() == animator) {\n\t // Display the next frame of animation.\n\t repaint();\n\n\t // Delay depending on how far we are behind.\n\t try {\n\t\ttm += delay;\n\t\tThread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n\t } catch (InterruptedException e) {\n\t\tbreak;\n\t }\n\n\t // Advance the frame\n\t frame++;\n\t}\n }", "@Override\n public void run()\n {\n while(bomb[0][0].getyAxis()<1000)\n {\n for(int i=0; i<bomb.length; i++)\n {\n for(int j=0; j<bomb[i].length; j++)\n {\n bomb[i][j].setyAxis(bomb[i][j].getyAxis()+10);\n }\n }\n try \n {\n Thread.sleep(1000);\n } \n catch (InterruptedException ex) \n {\n ex.printStackTrace();\n }\n fl.repaint();\n }\n }", "private void m3208a(C0952cb c0952cb, int[] iArr, int i) {\n int b = c0952cb.mo10151b();\n if (b == 1) {\n m3205a(c0952cb, iArr[0], iArr[1], getWidth() - iArr[0], (getHeight() + iArr[1]) / 2, i);\n } else if (b == 0) {\n m3205a(c0952cb, iArr[0], iArr[1], getWidth() - iArr[0], getHeight(), i);\n }\n }", "private final void m57540c(int i) {\n m57544f(i);\n }", "public static void main(String[] args) {\n In in = new In(args[0]);\n int n = in.readInt();\n Point[] points = new Point[n];\n for (int i = 0; i < n; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n\n // draw the points\n // StdDraw.enableDoubleBuffering();\n // StdDraw.setXscale(0, 32768);\n // StdDraw.setYscale(0, 32768);\n // Arrays.sort(points);\n // for (Point p : points) {\n // StdOut.println(\"point\" + p);\n // // p.draw();\n // }\n // StdOut.println();\n // StdDraw.show();\n\n // print and draw the line segments\n FastCollinearPoints_ov collinear = new FastCollinearPoints_ov(points);\n for (LineSegment segment : collinear.segments()) {\n StdOut.println(segment);\n // segment.draw();\n }\n\n // StdDraw.show();\n }", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "public void goTo(double x, double y, double z)\r\n {\n }", "void play(int col) throws IllegalMoveException;", "public void show(int i){\n if (i == 0){\n this.showmap();\n } else \n this.showfigure();\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getSource() instanceof Timer) {\r\n if (animatedPos == canvas.size() - 1)\r\n animatedDir = -1;\r\n if (animatedPos == 0)\r\n animatedDir = 1;\r\n animatedPos += animatedDir;\r\n repaint();\r\n }\r\n }", "@Override\n public void aPressed() {\n if (currAnimation == Animation.CROUCHING) {\n currFrame = 0;\n counter = 0; // (to begin the sliding time count)\n setAnimation(Animation.SLIDING);\n dx = (facingLeft) ? -2 : 2;\n }\n }", "@Override\n\tpublic void selog(String c, String i) {\n\t\tSystem.out.println(c + \" : \" + i + \"\\n\");\n\t}", "public void makeCharVisible(int line,int column) {\n float y = getLineHeight() * line;\n float minY = getOffsetY();\n float maxY = minY + getHeight();\n float targetY = minY;\n if(y < minY) {\n targetY = y;\n }else if(y + getLineHeight() > maxY) {\n targetY = y + getLineHeight() - getHeight();\n }\n float prefix_width = measureLineNumber() + mDividerMargin * 2 + mDividerWidth;\n float minX = getOffsetX();\n float maxX = minX + getWidth();\n float targetX = minX;\n prepareLine(line);\n float x = prefix_width + measureText(mChars,0,column);\n float char_width = 2 * measureText(mChars,column,1);\n if(x < minX) {\n targetX = x;\n }else if(x + char_width > maxX) {\n targetX = x + char_width - getWidth();\n }\n if(targetY == minY && targetX == minX) {\n invalidate();\n return;\n }\n boolean animation = true;\n if(System.currentTimeMillis() - mLastMakeVisible < 100) {\n animation = false;\n }\n mLastMakeVisible = System.currentTimeMillis();\n if(animation){\n getScroller().forceFinished(true);\n getScroller().startScroll(getOffsetX(),getOffsetY(),(int)(targetX - getOffsetX()),(int)(targetY - getOffsetY()));\n if(Math.abs(getOffsetY() - targetY) > mDpUnit * 100) {\n mEventHandler.notifyScrolled();\n }\n }else{\n getScroller().startScroll(getOffsetX(),getOffsetY(),(int)(targetX - getOffsetX()),(int)(targetY - getOffsetY()),0);\n }\n\n invalidate();\n }", "public void m916a(int[] iArr, ValueAnimator valueAnimator) {\n C0245a c0245a = new C0245a(iArr, valueAnimator);\n valueAnimator.addListener(this.f893d);\n this.f891b.add(c0245a);\n }", "public void repaint(int c){\n pUI.repaint(pUI.getBound(c));\n }", "public interface AnimationView {\n\n /**\n * Displays the specific view's output. For instance, visual will produce a visual representation\n * of the data, SVG will represent SVG output of the data, and the textual will produce a text\n * output of the data.\n *\n * @throws InterruptedException if the visual view is closed early\n * @throws IOException if the txt or svg file is unable to be written \n */\n void display() throws InterruptedException, IOException;\n}", "public final void mo71530c(int i) {\n super.mo71530c(i);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"holder_on_resume\", (Object) Integer.valueOf(i));\n }\n }", "private void mo73989c(int i) {\n if (i >= 0 && this.f29077d != i) {\n this.f29077d = i;\n View view = (View) this.f29074a.get(0);\n if (view instanceof DmtLoadingLayout) {\n ((DmtLoadingLayout) view).mo25766a(this.f29077d);\n }\n View view2 = (View) this.f29074a.get(1);\n if (view2 instanceof C10778e) {\n ((C10778e) view2).mo25766a(this.f29077d);\n }\n View view3 = (View) this.f29074a.get(2);\n if (view3 instanceof DmtDefaultView) {\n ((DmtDefaultView) view3).mo25766a(this.f29077d);\n }\n View view4 = (View) this.f29074a.get(3);\n if (view4 instanceof DmtDefaultView) {\n ((DmtDefaultView) view4).mo25766a(this.f29077d);\n }\n View view5 = (View) this.f29074a.get(4);\n if (view5 instanceof DmtDefaultView) {\n ((DmtDefaultView) view5).mo25766a(this.f29077d);\n }\n }\n }", "void editKeyframe(IKeyframe newKeyframe);", "public void mo12699a(int i) {\n int i2 = i;\n if (this.f13673l == -1) {\n C1085v b = this.f13679r.mo5059b(0);\n if (b != null && (this.f13674m.mo12697d(this.f13679r, b) & i2) == i2) {\n int i3 = i2 == 1 ? -this.f13679r.getHeight() : i2 == 2 ? this.f13679r.getHeight() : 0;\n int i4 = i2 == 8 ? this.f13679r.getWidth() : i2 == 4 ? -this.f13679r.getWidth() : 0;\n mo12712b(b);\n mo12708a(this.f13663b);\n float[] fArr = this.f13663b;\n float f = fArr[0];\n float f2 = fArr[1];\n float f3 = (float) i4;\n float f4 = (float) i3;\n float f5 = f3;\n C5318f fVar = r0;\n C5318f fVar2 = new C5318f(this, b, 2, 1, f, f2, f3, f4, b, i);\n fVar.mo12743a(this.f13674m.mo12690a(this.f13679r, 2, f5 - f, f4 - f2));\n this.f13677p.add(fVar);\n fVar.mo12745b();\n this.f13664c = null;\n this.f13679r.getParent().requestDisallowInterceptTouchEvent(false);\n this.f13674m.mo12725a(this.f13664c, this.f13675n);\n this.f13679r.invalidate();\n }\n }\n }", "void debugf() {\n\t\tfloat sum = 0;\n\t\tfor( int i = 0; i < N; i++ ) {\t\n\t\t\tboolean any = false;\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tif( f[i][j] != 0 ) {\n\t\t\t\t\tany = true;\n\t\t\t\t\tSystem.out.print(\"f(\"+i+\",\"+j+\":\"+label[i][j]+\")=\"+f[i][j]+\"@\"+c[i][j]+\" \");\n\t\t\t\t\tsum += f[i][j]*c[i][j];\n\t\t\t\t}\n\t\t\tif( any )\n\t\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"-->phi=\"+sum);\n\t}", "void mo1754c(int i);", "public static void show(int[] kd){\n final int NUM_OF_LINES = 5;\n\n Line[] lines = new Line[NUM_OF_LINES];\n\n //gives each array element the necessary memory\n for(int i = 0; i < NUM_OF_LINES; i++){\n lines[i] = new Line();\n }\n\n //in order to print\n lines[0].setLine(4,0,0);\n lines[1].setLine(3,1,2);\n lines[2].setLine(2,3,5);\n lines[3].setLine(1,6,9);\n lines[4].setLine(0,10,14);\n\n for(int i = 0; i < NUM_OF_LINES; i++){\n String tab = \"\";\n\n //creates the 'tab' effect based on position\n for(int j = 0; j < lines[i].getT(); j++){\n tab += \" \";\n }\n System.out.print(tab);\n\n for(int j = lines[i].getA(); j < lines[i].getB() + 1; j++){\n if(kd[j] == 0){\n System.out.print(\". \");\n }\n else{\n System.out.print(\"x \");\n }\n }\n System.out.println();\n }\n\n }", "void setGridY(int i);", "protected abstract float getFrameTimeNormalAnimation();", "public void setPositionColumn(int value){this.positionColumn = value;}", "private final void m27242i(long j) {\n this.f20661c.position((int) (j - this.f20662d));\n }", "private final void m57544f(int i) {\n this.f47568d.m63092a(new C15335a(i, true));\n }" ]
[ "0.52327985", "0.50107116", "0.4882087", "0.48601997", "0.4845732", "0.48342156", "0.48255852", "0.48225597", "0.48148206", "0.47849423", "0.4759369", "0.4740534", "0.4698727", "0.46905637", "0.4683305", "0.4660886", "0.46577778", "0.46453747", "0.4638241", "0.46148184", "0.461092", "0.4610672", "0.46105242", "0.45914394", "0.45716143", "0.4549127", "0.45341572", "0.45315546", "0.4512482", "0.4484075", "0.4479665", "0.447638", "0.44740748", "0.4449243", "0.44455284", "0.4440812", "0.44402194", "0.4439856", "0.44370893", "0.44358012", "0.44287133", "0.44274333", "0.4422173", "0.44172183", "0.44164455", "0.44133803", "0.44096115", "0.44043657", "0.44005188", "0.43997958", "0.43973", "0.43895322", "0.43852624", "0.43846992", "0.43815205", "0.43810797", "0.43798336", "0.43774188", "0.4372976", "0.43707716", "0.4366263", "0.43585733", "0.43572074", "0.43532163", "0.434206", "0.43416634", "0.43390378", "0.43327934", "0.43324792", "0.4324262", "0.43215102", "0.43209434", "0.43168813", "0.4314454", "0.43076503", "0.43059576", "0.43059513", "0.43041563", "0.42967892", "0.42944202", "0.4294087", "0.42920408", "0.42911592", "0.4290099", "0.42893395", "0.4288951", "0.42856222", "0.428506", "0.42803067", "0.42798135", "0.4277455", "0.4275013", "0.42732987", "0.4271015", "0.42702773", "0.42700237", "0.4265226", "0.42651352", "0.4260241", "0.425955" ]
0.7374994
0
Return the starting value x0 at column c.
private float x0(int c) { PlotProperties props = getPlotProperties(); float x0 = props.getXMin() + c*props.getXDelta(); x0Text.setText(Float.toString(x0)); return x0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getStartX();", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public double getStartX() {\n\treturn v1.getX();\n }", "private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}", "private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}", "public double getStartX() {\r\n return startx;\r\n }", "public double getStartX()\n {\n return startxcoord; \n }", "public int getX0() {\n\t\treturn this.origin.getX0();\n\t}", "public int getBlockX()\n\t {\n\t\t if(x >= 0.0) return (int)x;\n\t\t return -1 + (int)(x);\n\t }", "public int getStartx(){\n\t\treturn startx;\n\t}", "public int getXOffset();", "public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }", "public int getX() {\r\n return ix % numCols;\r\n }", "public Object getCurrentCellX() {\n\t\treturn x;\n\t}", "public int getCellXCoord(int col) {\n return TOP_LEFT_X + (col * BLOCK_WIDTH);\n }", "public int getStartX() {\r\n\t\treturn startX;\r\n\t}", "private int goalEntry0ind(int r, int c) {\n if (r == N - 1 && c == N - 1) return 0;\n else return N * r + c + 1;\n }", "public int getX() {\n\t\treturn this.x_indice * DIM_CASE;\n\t}", "public double getx0()\n\t{\n\t\treturn this.x0;\n\t}", "public int x (int index) { return coords[index][0]; }", "@Override\n public Number getStartX(int series, int item) {\n assert 0 <= series && series < checkpoint.gcTraceSize();\n assert 0 <= item && item < checkpoint.size(series);\n\n return getStartXValue(series, item);\n }", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "double getX() { return pos[0]; }", "public float getStartX() {return startX;}", "private int getX() {\n\t\treturn 0;\r\n\t}", "public double getX() {\n\t\tif (v == 0) {\n\t\t\treturn 0.0;\n\t\t} else {\n\t\t\treturn x;\n\t\t}\n\t}", "public int getX() {\n\t\treturn 0;\n\t}", "public double getxOffset() {\n return currentXOffset + xOffset;\n }", "protected abstract int getXOffset();", "private int transformXStart(int x)\r\n\t{\r\n\t\treturn (int) Math.floor((x-0.5)/referenceImage.getWidth() * displayedImage.getWidth());\r\n\t}", "public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }", "Coordinate getMinX();", "int getXMin();", "public int getX(){\n return this.position[0];\n }", "float getXEntry();", "public int getEmptyX()\n\t{\n\t\treturn x0;\n\t}", "public static int getOrigX() {\n return 1;\n }", "public com.a9.spec.opensearch.x11.QueryType.StartIndex xgetStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.StartIndex target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.StartIndex)get_store().find_attribute_user(STARTINDEX$10);\n return target;\n }\n }", "public int getRootX() {\n return this.mX + this.mOffsetX;\n }", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "@Override\n\tpublic int getX() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getX() {\n\t\treturn 0;\n\t}", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "private int get_x() {\n return center_x;\n }", "public void setStartX(double x)\n {\n startxcoord=x; \n }", "@Override\r\n\tpublic double getX1() {\n\t\treturn 0;\r\n\t}", "public float getMinX(){\n return points.get(0).getX();\n }", "public int getStartRow();", "double getPositionX();", "double getPositionX();", "double getPositionX();", "public int getX() { return 0; }", "public Float getxBegin() {\r\n return xBegin;\r\n }", "public double getX()\n\t\t{\n\t\t\treturn this.x[0];\n\t\t}", "Pair<Integer, Integer> getInitialPosition();", "double getXPosition();", "public int getX() { \n\t\treturn x;\n\t}", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public double getX1()\n\t{\n\t\treturn this.x[1];\n\t}", "public int getX()\n\t{\n\t\treturn mX;\n\t}", "public int getX() {\n return PADDING;\n //return columnToX(this.getCols());\n //throw new UnsupportedOperationException();\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public final int getXOffset() {\n return xOffset;\n }", "protected double getReferenceX() {\n if (isXAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingX()) {\n if (Double.isNaN(referenceX)) {\n referenceX = getMinX(false);\n }\n return referenceX;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }", "public int startPointColumn(Array a){\n\t\tint max = a.getFirstDimension();\n\t\tRandom rand = new Random();\n\t\tint random = Math.abs(rand.nextInt()) % max;\n\t\tint startPoint = random;\n\t\treturn startPoint;\n\t}", "public float getX1() {\r\n return (b + 3*a)/3;\r\n }", "public float getxOffset() {\n\t\treturn xOffset;\n\t}", "float getXStepMin();", "public int getLocationX() {\r\n\t\treturn x;\r\n\t}", "public static int convertColumnToX(int column) {\n return PIECES_START_X + SQUARE_WIDTH * column;\n }", "public int getXColumn() {\n\t\t\treturn xColumn;\n\t\t}", "public int getX() { return loc.x; }", "public double getX() { return _width<0? _x + _width : _x; }", "public int SQ_LEFT_TOP(int c) {\n return (c % 10 == 6 || c <= 5)\n ? 0 : ((c % 10 >= 1) && (c % 10 <= 5))\n ? SAFE(c - 5) : SAFE(c - 6); // ODD ROW : EVEN ROW\n }", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "private int getX(int arg) {\n\n\t\targ = (arg * Width) / 1000;\n\n\t\treturn arg;\n\t}", "private int getX(int arg) {\n\n\t\targ = (arg * Width) / 1000;\n\n\t\treturn arg;\n\t}", "default Integer getXOffset() {\n return null;\n }", "@Override\n public double getStartXValue(int series, int item) {\n assert 0 <= series && series < checkpoint.gcTraceSize();\n assert 0 <= item && item < checkpoint.size(series);\n\n double startSec = gcActivity(series, item).getStartSec();\n return startSec;\n }", "public float getX() { return xCoordinate;}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "protected float getX(float x) {\r\n\t\treturn ((x - viewStart.x) * parent.pixelsPerUnit);\r\n\t}", "public int getX(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(0)/ AvesAblazeHardware.mmPerInch);\n\t}", "public int getInitX(){\r\n\t\treturn initX;\r\n\t}", "@Override\n public double getPosX() {\n return this.pos[0];\n }", "private float getMinX(HomePieceOfFurniture piece) {\n float [][] points = piece.getPoints();\n float minX = Float.POSITIVE_INFINITY;\n for (float [] point : points) {\n minX = Math.min(minX, point [0]);\n } \n return minX;\n }", "public int getX()\r\n\t{\r\n\t\treturn x;\r\n\t}", "public int getTheXPosition(int x){\n\t\t\tif(x==5 || x==13 || x==21 || x==29){\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse if(x==1 || x==9 || x==17 || x==25){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse if(x==6 || x==14 || x==22 || x==30){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\telse if(x==2 || x==10 || x==18 || x==26){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\telse if(x==7 || x==15 || x==23 || x==31){\n\t\t\t\treturn 4;\n\t\t\t}\n\t\t\telse if(x==3 || x==11 || x==19 || x==27){\n\t\t\t\treturn 5;\n\t\t\t}\n\t\t\telse if(x==8 || x==16 || x==24 || x==32){\n\t\t\t\treturn 6;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn 7;\n\t\t\t}\t\t\n\t}", "public int getXIndex(){\r\n return xIndex;\r\n }", "public int getX() {\n return pos_x;\n }", "public java.math.BigInteger getStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTINDEX$10);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX() {\n\t\t\n\t\treturn xPosition;\t\t// Gets the x integer\n\t}" ]
[ "0.6526052", "0.64295936", "0.6411828", "0.63185984", "0.6313321", "0.62641305", "0.62561107", "0.6250003", "0.6241089", "0.6234942", "0.6225662", "0.62133294", "0.6192746", "0.61789745", "0.6178935", "0.6167192", "0.61505854", "0.6136924", "0.6076697", "0.60762596", "0.6075476", "0.6050757", "0.5991135", "0.5973574", "0.5966175", "0.5965123", "0.5938363", "0.59348667", "0.588447", "0.58825916", "0.5879776", "0.5878119", "0.58761096", "0.58587945", "0.5852425", "0.58395535", "0.5835074", "0.5819603", "0.5812352", "0.58002657", "0.57871264", "0.57871264", "0.57787865", "0.57670975", "0.57338023", "0.5727887", "0.57278705", "0.5725506", "0.5716638", "0.57146364", "0.57146364", "0.57146364", "0.5710561", "0.57078993", "0.5703166", "0.56971186", "0.56856686", "0.56683606", "0.56640583", "0.5654588", "0.5652964", "0.5652431", "0.5645268", "0.5633881", "0.5626203", "0.5625225", "0.561747", "0.56105506", "0.55964905", "0.5593283", "0.55832165", "0.555947", "0.55584764", "0.55570364", "0.55546236", "0.55475926", "0.5544321", "0.55371535", "0.55350727", "0.55350727", "0.55319244", "0.5526442", "0.5525774", "0.55159307", "0.55116636", "0.55116206", "0.55106467", "0.55083805", "0.550253", "0.5492666", "0.5490094", "0.5489418", "0.5489293", "0.54891646", "0.5489106", "0.5489106", "0.5489106", "0.5489106", "0.5489106", "0.5485641" ]
0.75627476
0
Iterate to create the graphic trace of fixedpoint iteration starting at x0.
private void iterate(float x0) { // Plot properties. PlotProperties plotProps = getPlotProperties(); int w = plotProps.getWidth(); int h = plotProps.getHeight(); int xAxisRow = plotProps.getXAxisRow(); int yAxisCol = plotProps.getYAxisColumn(); float xMin = plotProps.getXMin(); float yMax = plotProps.getYMax(); float deltaX = plotProps.getXDelta(); float deltaY = plotProps.getYDelta(); float xn; float gn; boolean converged = false; k = 0; finder.reset(x0); // Apply fixed-point iteration. For each iteration, plot // the vertical at xn and the horizontal to the y = x line. do { try { converged = finder.step(); } catch(RootFinder.IterationCountExceededException ex) { iterationLimitExceeded(MAX_ITERS, xnText); return; } catch(RootFinder.PositionUnchangedException ex) { // ignore } xn = finder.getXn(); gn = finder.getGn(); int c, r; // Plot the vertical. The initial vertical is from // (x0, 0) to (x0, g(x0)). Subsequent verticals are // from (xn, xn) to (xn, g(xn)). c = Math.min(Short.MAX_VALUE, Math.max(Short.MIN_VALUE, Math.round((xn - xMin)/deltaX))); cs1[k] = c; rs1[k] = k == 0 ? xAxisRow : rs1[k-1]; cs2[k] = cs1[k]; r = Math.min(Short.MAX_VALUE, Math.max(Short.MIN_VALUE, Math.round((yMax - gn)/deltaY))); rs2[k] = r; ++k; // Plot the horizontal from (xn, g(xn)) to // (g(xn), g(xn)). cs1[k] = cs2[k-1]; rs1[k] = rs2[k-1]; c = Math.min(Short.MAX_VALUE, Math.max(Short.MIN_VALUE, Math.round((gn - xMin)/deltaX))); cs2[k] = c; rs2[k] = rs1[k]; ++k; } while (!converged); // Update the n and xn text controls. nText.setText(Integer.toString(finder.getIterationCount())); xnText.setText(Float.toString(xn)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n // Create the fixed-point iteration root finder.\n finder = new FixedPointRootFinder((Function) plotFunction.getFunction());\n }", "private void run() {\n List<Point> points = Arrays.asList(this.points);\n Collections.sort(points);\n for (int i=0; i < points.size(); i++) {\n Point p0 = points.get(i);\n List<Point> cp = new ArrayList<>(points); // clone\n Collections.sort(cp, p0.SLOPE_ORDER);\n for (int s=0, e; s < cp.size(); s=e) {\n for (e=s; e < cp.size() && p0.SLOPE_ORDER.compare(cp.get(s) , cp.get(e)) == 0; e++);\n if (e-s+1>= 4) {\n List<Point> r = new ArrayList<>(cp.subList(s, e));\n r.add(p0);\n Collections.sort(r);\n if (r.get(0).equals(p0)) {\n Point[] ret = r.toArray(new Point[e-s+1]);\n StdOut.println(this.toString(ret));\n this.drawLine(ret);\n }\n }\n }\n }\n }", "private void drawPoints(Graphics2D g2d) {\n for(int i = 0; i < controlPoints.length; i++) {\n int x = (int)controlPoints[i].x;\n int y = (int)controlPoints[i].y;\n drawFatPoint(x, y, g2d);\n }\n }", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "private void animate(int c)\n {\n // Erase the previous fixed-point iteration trace, if any.\n if (k > 0) plotLines(cs1, rs1, cs2, rs2, k, Color.red);\n\n // Draw a new fixed-point iteration trace.\n iterate(x0(c));\n plotLines(cs1, rs1, cs2, rs2, k, Color.red);\n }", "public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "void diplayNeighborPoints() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (point[i].position.dist(P) < 10) {\n\t\t\t\tmyParent.pushStyle();\n\t\t\t\tmyParent.fill(255, 255, 0);\n\t\t\t\tmyParent.text(i, point[i].x + 10, point[i].y + 5); // draw\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// point\n\t\t\t\tmyParent.text(\"left neighbor\", point[neighbor(i)[0]].x, point[neighbor(i)[0]].y);\n\t\t\t\tmyParent.text(\"right neighbor\", point[neighbor(i)[1]].x, point[neighbor(i)[1]].y);\n\t\t\t\tmyParent.text(\"opposite\", point[neighbor(i)[2]].x, point[neighbor(i)[2]].y);\n\t\t\t\t// neighbor(int sourcePointId)\n\t\t\t\tmyParent.noFill();\n\t\t\t\tmyParent.popStyle();\n\t\t\t}\n\t\t}\n\n\t\tif (state == State.SCALE_PORPORTIONALLY_POINT || state == State.SCALE_FREE_POINT)\n\t\t\tdisplayLineBetweenCurrentAndOppositePoints();\n\t}", "public int getFixedPoint(int i) {\n/* 161 */ return this.e.getFixedPoint(i);\n/* */ }", "@Override\n\tprotected void createInitial()\n\t{\n\t\tLoop<Bar> loop = new Loop();\n\t\tedges.add( loop );\n\n\t\tfor ( Pair<Point2d, Point2d> pair : new ConsecutivePairs<Point2d>( Arrays.asList(\n\t\t\t\tnew Point2d( 250, 100 ),\n\t\t\t\tnew Point2d( 350, 100 ),\n\t\t\t\tnew Point2d( 350, 250 ),\n\t\t\t\tnew Point2d( 500, 250 ),\n\t\t\t\tnew Point2d( 500, 350 ),\n\t\t\t\tnew Point2d( 350, 350 ),\n\t\t\t\tnew Point2d( 350, 500 ),\n\t\t\t\tnew Point2d( 250, 500 ),\n\t\t\t\tnew Point2d( 250, 350 ),\n\t\t\t\tnew Point2d( 100, 350 ),\n\t\t\t\tnew Point2d( 100, 250 ),\n\t\t\t\tnew Point2d( 250, 250 ) ), true ) )\n\t\t{\n\t\t\tBar b = new Bar( pair.first(), pair.second() );\n\t\t\tloop.append( b );\n\t\t\tsetup(b, 0.7);\n\t\t}\n\n\t\tLoop<Bar> loop2 = new Loop();\n\t\tedges.add( loop2 );\n\n\t\tfor ( Pair<Point2d, Point2d> pair : new ConsecutivePairs<Point2d>( Arrays.asList(\n\t\t\t\tnew Point2d( 330, 330),\n\t\t\t\tnew Point2d( 330, 270 ),\n\t\t\t\tnew Point2d( 270, 270 ),\n\t\t\t\tnew Point2d( 270, 330 )\n\t\t), true ) )\n\t\t{\n\t\t\tBar b = new Bar( pair.first(), pair.second() );\n\t\t\tloop2.append( b );\n\t\t\tsetup(b, 0.7);\n\t\t}\n\t}", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "private Point[] getF(Point x[]) throws OptimizerException, Exception\n {\n Point[] r = opt.getF(x, true);\n for(int i = 0; i < r.length; i++){\n \t r[i].setComment(\"Linesearch.\");\n \t opt.report(r[i], Optimizer.SUBITERATION);\n }\n return r;\n }", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "public static void main(String args[])\n {\n Frame test = new Frame();\n FixedPointPanel demo = new FixedPointPanel();\n\n Function function = new Function()\n {\n public float at( float x) { return (float) (x*x + 0.5); }\n// public float at( float x) { return (float) Math.sqrt(x); }\n };\n\n PlotFunction plotFunction =\n new PlotFunction(function, -2.25f, 2.25f, -1.25f, 5.25f);\n\n FUNCTIONS[0] = plotFunction;\n\n/*\n Function function = new Function()\n {\n public float at( float x) { return (float) Math.exp(1/x); }\n };\n\n PlotFunction plotFunction =\n new PlotFunction(function, -3.25f, 4.255f, -0.25f, 5.25f);\n*/\n\n test.setTitle(\"Fixed Point Test\");\n test.setSize(600, 500);\n\n test.setLayout(new BorderLayout());\n test.add(demo, BorderLayout.CENTER);\n\n test.setVisible(true);\n\n demo.chooseFunction(0);\n demo.draw();\n }", "@Override\n\tprotected void paint2d(Graphics2D g) {\n\t\tdouble x = 0;//getX();\n\t\tdouble y = 0;//getY();\n\t\tfor (int i = 0; i < size() - 1; i++) {\n\t\t\tGPoint p1 = points.get(i);\n\t\t\tGPoint p2 = points.get(i + 1);\n\t\t\tdouble x0 = p1.getX() - x;\n\t\t\tdouble y0 = p1.getY() - y;\n\t\t\tdouble x1 = p2.getX() - x;\n\t\t\tdouble y1 = p2.getY() - y;\n\t\t\tg.drawLine(GMath.round(x0), GMath.round(y0),\n\t\t\t\t\tGMath.round(x1), GMath.round(y1));\n\t\t}\n\t}", "public void drawAxis(boolean x) {\n\n\t\tint stepPixels;\n\t\tfloat scale;\n\t\tif(x)\n\t\t{\n\t\t\tscale=this.drawnPlot.getScale().x;\n\t\t\tg.setColor(Color.green);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setStroke(new BasicStroke(2));\n\t\t\tg.drawLine((int)drawnPlot.getOffset().x-maxStepPixels*10, (int)drawnPlot.getOffset().y,(int)drawnPlot.getOffset().x+maxStepPixels*10,(int) drawnPlot.getOffset().y);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tg.setColor(Color.green);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setStroke(new BasicStroke(2));\n\t\t\tg.drawLine((int)drawnPlot.getOffset().x, (int)drawnPlot.getOffset().y-maxStepPixels*10,(int)drawnPlot.getOffset().x,(int) drawnPlot.getOffset().y+maxStepPixels*10);\n\n\t\t\tscale=this.drawnPlot.getScale().y;\n\t\t}\n\t\t\n\t\tfloat actualStepSize = maxStepPixels /scale;//calc how much is the maximum step size in pixels in actual units\n\t\tint scaleOrder=(int)Math.floor(Math.log10(actualStepSize));//see the order of magnitude the actual step size is in; no loss from casting to int with floor\n\t\tfloat divisor=(float) Math.pow(10, scaleOrder);//convert the order of magnitude to the lowest number of that order (2-->100, 1-->10...)\n\t\tdouble correctedStepSize=actualStepSize-(actualStepSize%divisor);//round the actual step size down based on its order of magnitude (0.253-->0.2, 101-->100, 1523-->1000)\n\t\tstepPixels=(int)(correctedStepSize*scale);\n\t\t//System.out.println(\"stepPixels: \"+stepPixels);\n\t\t\n\t\t\n\t\tfor(int i=-10;i<10;i++)\n\t\t{\n\t\t\tint xCommon=(int) (stepPixels *i + drawnPlot\n\t\t\t\t\t.getOffset().x);\n\t\t\tint x1 = xCommon;\n\t\t\tint y1 = (int) (drawnPlot\n\t\t\t\t\t.getOffset().y);\n\t\t\tint x2 = xCommon;\n\t\t\t\n\t\t\tint y2 = (int) ( drawnPlot\n\t\t\t\t\t.getOffset().y+tickSize);\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setStroke(new BasicStroke(1));\n\t\t\t\n\t\t\tString markTxt=Double.toString(correctedStepSize*i);\n\t\t\tmarkTxt=markTxt.substring(0, Math.min(markTxt.length(), 5));\n\t\t\tmarkTxt=markTxt.replaceAll(\"(.*?\\\\..*?)0+$\", \"$1\");\n\t\t\tchar[] markTxtCa=markTxt.toCharArray();\n\t\t\t//System.out.println(\"test: \"+\"30.0200\".replaceAll(\"(.*?\\\\..*?)0+$\", \"$1\"));\n\t\t\t\n\t\t\tif(x)\n\t\t\t{\n\t\t\t\t\tg.drawLine(x1, y1, x2, y2);\n\t\t\t\t\tg.drawChars(markTxtCa, 0, markTxtCa.length, xCommon, (int) (drawnPlot\n\t\t\t\t\t.getOffset().y+tickSize*2));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.drawLine((int)drawnPlot\n\t\t\t\t\t\t.getOffset().x, stepPixels*-i+(int)(int)drawnPlot\n\t\t\t\t\t\t.getOffset().y, (int)drawnPlot\n\t\t\t\t\t\t.getOffset().x+tickSize, (int)drawnPlot\n\t\t\t\t\t\t.getOffset().y+stepPixels*-i);\n\t\t\t\tg.drawChars(markTxtCa, 0, markTxtCa.length, \n\t\t\t\t\t\t(int)drawnPlot\n\t\t\t\t\t\t.getOffset().x+tickSize*2, stepPixels*-i+(int)(int)drawnPlot\n\t\t\t\t\t\t.getOffset().y\n\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(markTxt);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void traceLink(int i1, int j1, int i0, int j0) {\n\t\tif(j1 < axis.getY()) {\n\t\t\tif(j1 > j0)\n\t\t\t\tfor(int k=j0+1; k<j1; k++)\n\t\t\t\t\tpaintPointInColor(i0, k);\n\t\n\t\t\telse\n\t\t\t\tfor(int k=j1+1; k<j0; k++)\n\t\t\t\t\tpaintPointInColor(i1, k);\n\t\t}\n\t\t\n\t\telse {\n\t\t\tif(j1 > j0)\n\t\t\t\tfor(int k=j0+1; k<j1; k++)\n\t\t\t\t\tpaintPointInColor(i1, k);\n\t\n\t\t\telse\n\t\t\t\tfor(int k=j1+1; k<j0; k++)\n\t\t\t\t\tpaintPointInColor(i0, k);\n\t\t}\n\t}", "public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }", "void render() {\n smooth();\n for (int x = 0; x < yvalues.length; x++) {\n noStroke();\n fill(0,0,255,100);\n ellipseMode(CENTER);\n ellipse(x*xspacing,yvalues[x],16,16);\n }\n }", "private void plotEntries() {\n\t\tfor (int i = 0; i < entries.size(); i++) {\n\t\t\tdrawLine(i);\n\t\t}\n\t}", "public void print(){\n\t\t\n\t\tfor(int i=0;i<maxindex;i++)\n\t\t{\n\t\t\tif(data[i] != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(data[i]+\"x\"+i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}", "public void poofExample()\n\t{\n\t\tFalconLinePlot fig3 = new FalconLinePlot(new double[][]{{0.0,0.0}});\n\t\tfig3.yGridOn();\n\t\tfig3.xGridOn();\n\t\tfig3.setYLabel(\"Y (feet)\");\n\t\tfig3.setXLabel(\"X (feet)\");\n\t\tfig3.setTitle(\"Top Down View of FRC Field (30ft x 27ft) \\n shows global position of robot path, along with left and right wheel trajectories\");\n\n\n\t\t//force graph to show 1/2 field dimensions of 24.8ft x 27 feet\n\t\tdouble fieldWidth = 32.0;\n\t\tfig3.setXTic(0, 27, 1);\n\t\tfig3.setYTic(0, fieldWidth, 1);\n\n\t\t//kys alex im done\n\t\t//lets add field markers to help visual\n\t\t//http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2014/fe-00037_RevB.pdf\n\t\t//Goal line\n\t\tdouble[][] goalLine = new double[][] {{26.5,0}, {26.5, fieldWidth}};\n\t\tfig3.addData(goalLine, Color.black);\n\n\t\t//Low Goals roughly 33 inch x 33 inch and 24.6 ft apart (inside to inside)\n\t\tdouble[][] leftLowGoal = new double[][]{\n\t\t\t\t{26.5, fieldWidth/2 + 24.6/2},\n\t\t\t\t{26.5, (fieldWidth)/2 + 24.6/2 + 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 + 24.6/2 + 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 + 24.6/2},\n\t\t\t\t{26.5, fieldWidth/2 + 24.6/2},\n\t\t};\n\n\t\tdouble[][] rightLowGoal = new double[][]{\n\t\t\t\t{26.5, fieldWidth/2 - 24.6/2},\n\t\t\t\t{26.5, fieldWidth/2 - 24.6/2 - 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 - 24.6/2 - 2.75},\n\t\t\t\t{26.5 - 2.75, fieldWidth/2 - 24.6/2},\n\t\t\t\t{26.5, fieldWidth/2 - 24.6/2},\n\t\t};\n\n\t\tfig3.addData(leftLowGoal, Color.black);\n\t\tfig3.addData(rightLowGoal, Color.black);\n\n\t\t//Auto Line\n\t\tdouble[][] autoLine = new double[][] {{26.5-18,0}, {26.5-18, fieldWidth}};\n\t\tfig3.addData(autoLine, Color.black);\n\n\n\t\tdouble[][] CheesyPath = new double[][]{\n\t\t\t\t{7,16},\n\t\t\t\t{11,16},\n\t\t\t\t{17,28},\n\t\t\t\t{23,28},\n\t\t};\n\t\t\n\t\t\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\n\t\tdouble totalTime = 5; //seconds\n\t\tdouble timeStep = 0.1; //period of control loop on Rio, seconds\n\t\tdouble robotTrackWidth = 2; //distance between left and right wheels, feet\n\n\t\tfinal FalconPathPlanner path = new FalconPathPlanner(CheesyPath);\n\t\tpath.calculate(totalTime, timeStep, robotTrackWidth);\n\t\t\n\t\tSystem.out.println(\"Time in ms: \" + (System.currentTimeMillis()-start));\n\n\t\t//waypoint path\n\t\tfig3.addData(path.nodeOnlyPath,Color.blue,Color.green);\n\n\t\t//add all other paths\n\t\tfig3.addData(path.smoothPath, Color.red, Color.blue);\n\t\tfig3.addData(path.leftPath, Color.magenta);\n\t\tfig3.addData(path.rightPath, Color.magenta);\n\n\n\t\t//Velocity\n\t\tFalconLinePlot fig4 = new FalconLinePlot(path.smoothCenterVelocity,null,Color.blue);\n\t\tfig4.yGridOn();\n\t\tfig4.xGridOn();\n\t\tfig4.setYLabel(\"Velocity (ft/sec)\");\n\t\tfig4.setXLabel(\"time (seconds)\");\n\t\tfig4.setTitle(\"Velocity Profile for Left and Right Wheels \\n Left = Cyan, Right = Magenta\");\n\t\tfig4.addData(path.smoothRightVelocity, Color.magenta);\n\t\tfig4.addData(path.smoothLeftVelocity, Color.cyan);\n\n\t\t//path heading accumulated in degrees\n\t\t//FalconPathPlanner.print(path.heading);\n\n\n\t}", "@Override\n\tpublic void debugDraw(Graphics g) {\n\t\tfor(int i = 0; i < CELL_SIDE_COUNT; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < CELL_SIDE_COUNT; j++)\n\t\t\t{\n\t\t\t\t//Place code for debug drawing here\n\t\t\t}\n\t\t}\n\t}", "public void drawSelf() {\n for (Point p : matches) {\n this.drawPoint(p, Color.WHITE);\n }\n }", "public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }", "public void generateGraph() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tgraph = new boolean[map.size()][map.size()];\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject cloned = map.get(i).duplicate();\r\n\t\t\tArrayList<Location> locs = sc.traceLinearMotion(i,sc.getMaxVelocity(),cloned.getGoal());\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(j != i) {\r\n\t\t\t\t\tfor(int k = 0; k < locs.size(); k++) {\r\n\t\t\t\t\t\tcloned.setLocation(locs.get(k));\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 2)) {\r\n\t\t\t\t\t\t\tgraph[i][j] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 0)) {\r\n\t\t\t\t\t\t\tgraph[j][i] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void display(int x) {\n\t\tString str=\"\";\n\t\tfor(int i=0;i<x;i++) str+=\"\\t\";\n\t\tSystem.out.println(str+row+\" \"+col);\n\t\tfor (Iterator iterator = children.iterator(); iterator.hasNext();) {\n\t\t\tMove move = (Move) iterator.next();\n\t\t\tmove.display(x+1);\n\t\t}\n\t}", "private void smooth_plot(Bundle bundle, boolean spliceCurve, String suffix) {\n\n int[] xdata = bundle.getIntArray(\"xdata\" + suffix);\n float[] ydata = bundle.getFloatArray(\"ydata\" + suffix);\n\n // create a list of the points\n int totalPoints = xdata.length;\n ArrayList<UtilsMisc.XYPoint> details = new ArrayList<>();\n for (int i = 0; i < totalPoints; i++)\n details.add(new UtilsMisc.XYPoint(xdata[i], ydata[i]));\n\n // break up the list into chunks of NUM_POINTS based on the number of curves\n List<List<UtilsMisc.XYPoint>> partitions = new ArrayList<>();\n int NUM_CURVES = (int) Math.round(Math.log10(totalPoints)) * 2;\n int NUM_POINTS = (NUM_CURVES == 0) ? 1 : totalPoints / NUM_CURVES;\n for (int i = 0; i < totalPoints; i += NUM_POINTS)\n partitions.add(details.subList(i, Math.min(i + NUM_POINTS, totalPoints)));\n\n // for each partition, get 4 control points\n ArrayList<UtilsMisc.XYPoint> fourPoints = new ArrayList<>();\n int color = 0;\n for (int i = 0; i < partitions.size(); i++) {\n // verify that there are at least four points\n if (partitions.get(i).size() < 4) continue;\n\n // get the subset of details\n List<UtilsMisc.XYPoint> subDetails = partitions.get(i);\n UtilsMisc.XYPoint[] p = new UtilsMisc.XYPoint[4];\n\n // set the first and last control points\n double x, y;\n int first = (i == 0) ? 1 : 0;\n //x = (subDetails.get(first).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, first, dataIndex);\n x = subDetails.get(first).getX();\n y = subDetails.get(first).getY();\n p[0] = new UtilsMisc.XYPoint(x, y, color);\n\n int last = subDetails.size() - 1;\n //x = (subDetails.get(last).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, last, dataIndex);\n x = subDetails.get(last).getX();\n y = subDetails.get(last).getY();\n p[3] = new UtilsMisc.XYPoint(x, y, color);\n\n // find the min. and max values for the second and third control points\n // in between the first and last control points\n int min_index = 0;\n int max_index = 0;\n float max_sub_value = 0.0f;\n float min_sub_value = Constants.LARGE_FLOAT;\n for (int j = 1; j < subDetails.size() - 1; j++) {\n // float value = getYCoordinate(subDetails, j, dataIndex);\n float value = (float) subDetails.get(j).getY();\n if (value < min_sub_value) {\n min_index = j;\n min_sub_value = value;\n }\n if (value > max_sub_value) {\n max_index = j;\n max_sub_value = value;\n }\n }\n\n double xmin = subDetails.get(min_index).getX();\n double ymin = subDetails.get(min_index).getY();\n double xmax = subDetails.get(max_index).getX();\n double ymax = subDetails.get(max_index).getY();\n\n if (max_index > min_index) {\n p[1] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[2] = new UtilsMisc.XYPoint(xmax, ymax, color);\n } else {\n p[2] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[1] = new UtilsMisc.XYPoint(xmax, ymax, color);\n }\n\n fourPoints.addAll(Arrays.asList(p)); // build the list of main points\n }\n\n // build the list of control points,\n ArrayList<UtilsMisc.XYPoint> controlPoints = new ArrayList<>();\n for (int i = 0; i < fourPoints.size(); i++) {\n controlPoints.add(fourPoints.get(i));\n // in a spliced curve, add a center control point for every alternate pair of points\n if (spliceCurve && (i % 2 == 0) && (i > 0) && (i + 3) < fourPoints.size()) {\n controlPoints.add(UtilsMisc.center(fourPoints.get(i), fourPoints.get(i + 1)));\n }\n }\n\n // for a spliced curve do the 4 point bezier interpolation from 0..3, 3..6, 6..9\n // otherwise, do the 4 point bezier interpolation from 0..3, 4..7, 8..11\n UtilsMisc.XYPoint p1, p2, p3, p4;\n ArrayList<UtilsMisc.XYPoint> allPoints = new ArrayList<>();\n int INCREMENT = spliceCurve ? 3 : 4;\n for (int i = 0; i < controlPoints.size(); i += INCREMENT) {\n if ((i + 3) < controlPoints.size()) {\n p1 = controlPoints.get(i);\n p2 = controlPoints.get(i + 1);\n p3 = controlPoints.get(i + 2);\n p4 = controlPoints.get(i + 3);\n allPoints.addAll(UtilsMisc.BezierInterpolate(p1, p2, p3, p4));\n }\n }\n\n // remove duplicate x coordinates\n ArrayList<Integer> times_list = new ArrayList<>();\n ArrayList<Float> values_list = new ArrayList<>();\n Hashtable<Integer, Boolean> seenInt = new Hashtable<>();\n for (int i = 0; i < allPoints.size(); i++) {\n int xloc = (int) Math.round(allPoints.get(i).getX());\n if (seenInt.containsKey(xloc)) continue;\n seenInt.put(xloc, true);\n times_list.add(xloc);\n values_list.add((float) allPoints.get(i).getY());\n }\n\n // convert array list to array\n int[] smooth_times = UtilsMisc.convertIntegers(times_list);\n float[] smooth_values = UtilsMisc.convertFloats(values_list);\n\n bundle.putIntArray(\"xdata\" + suffix, smooth_times);\n bundle.putFloatArray(\"ydata\" + suffix, smooth_values);\n }", "public void plot() {\n // TODO: Implement this method\n System.out.printf(\"%10s : [\",this.label);\n for (int i=1;i<=this.value;i++) {\n System.out.print(\"#\");\n }\n System.out.printf(\"] (%d)\\n\",this.value);\n }", "@Override\n public void draw(Graphics g) {\n for (int i = 0; i < values.size(); i++) {\n g.setColor(Color.GRAY);\n g.fillRect(i * 25 - 5, 250 - values.get(i), 10, values.get(i));\n }\n super.draw(g);\n }", "protected void plotScatterDiagram(){\n double xmax = a + 5. * gamma;\r\n double xmin = a - 5. * gamma;\r\n DatanGraphics.openWorkstation(getClass().getName(), \"\");\r\n DatanGraphics.setFormat(0., 0.);\r\n DatanGraphics.setWindowInComputingCoordinates(xmin, xmax, 0., .5);\r\n DatanGraphics.setViewportInWorldCoordinates(-.15, .9, .16, .86);\r\n DatanGraphics.setWindowInWorldCoordinates(-.414, 1., 0., 1.);\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawFrame();\r\n DatanGraphics.drawScaleX(\"y\");\r\n DatanGraphics.drawScaleY(\"f(y)\");\r\n DatanGraphics.drawBoundary();\r\n double xpl[] = new double[2];\r\n double ypl[] = new double[2];\r\n// plot scatter diagram\r\n DatanGraphics.chooseColor(1);\r\n for(int i = 0; i < y.length; i++){\r\n xpl[0] = y[i];\r\n xpl[1] = y[i];\r\n ypl[0] = 0.;\r\n ypl[0] = .1;\r\n DatanGraphics.drawPolyline(xpl, ypl); \r\n }\r\n// draw Breit-Wigner corresponding to solution\r\n int npl = 100;\r\n xpl = new double[npl];\r\n ypl = new double[npl];\r\n double dpl = (xmax - xmin) / (double)(npl - 1);\r\n for(int i = 0; i < npl; i++){\r\n xpl[i] = xmin + (double)i * dpl;\r\n ypl[i] = breitWigner(xpl[i], x.getElement(0), x.getElement(1));\r\n }\r\n DatanGraphics.chooseColor(5);\r\n DatanGraphics.drawPolyline(xpl, ypl);\r\n// draw caption\r\n String sn = \"N = \" + nny;\r\n\t numForm.setMaximumFractionDigits(3);\r\n \t numForm.setMinimumFractionDigits(3);\r\n String sx1 = \", x_1# = \" + numForm.format(x.getElement(0));\r\n String sx2 = \", x_2# = \" + numForm.format(x.getElement(1));\r\n String sdx1 = \", &D@x_1# = \" + numForm.format(Math.sqrt(cx.getElement(0,0)));\r\n String sdx2 = \", &D@x_2# = \" + numForm.format(Math.sqrt(cx.getElement(1,1)));\r\n caption = sn + sx1 + sx2 + sdx1 + sdx2;\r\n DatanGraphics.setBigClippingWindow();\r\n DatanGraphics.chooseColor(2);\r\n DatanGraphics.drawCaption(1., caption);\r\n DatanGraphics.closeWorkstation();\r\n\r\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }", "public void recordWaypoints(){\n\t\t\n\t\tfor (int i = 0; i < waypoints.size(); i++) {\n WayPoint wei = waypoints.get(i);\n int x = (int)Math.round((wei.getX() * scale) + width/2);\n int y = (int)Math.round((wei.getY() * scale) + height/2);\n g2d.setColor(Color.blue);\n g2d.fillRect(x,y,4,4);\n\t\t\t\t\t \n //System.out.println(x + \" \" + y);\n }\n\t}", "void setStepCounterTileXY();", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void evaluate_fixedpoint() {\n // DES_action_type = 0;\n // JOptionPane.showMessageDialog(null, \"Evaluating FP && Action-Type = \" + DES_action_type);\n int[] last2_fixedpoint_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n last2_fixedpoint_rounds[i] = DES_fixedpoint_sequence[9][i];\n last2_fixedpoint_rounds[32 + i] = DES_fixedpoint_sequence[8][i];\n }\n DES_fixedpoint = select(last2_fixedpoint_rounds, FP);\n }", "public void draw_plane(Graphics g, int log_num, int i);", "public void run() {\n\tObjectFrame flange = lbr_iiwa_14_R820_1.getFlange();\t\t//flange frame\n\tObjectFrame lbrRoot = lbr_iiwa_14_R820_1.getRootFrame();\t//root frame\n\t\t\t\n\t// define frames for task trajectory:\n\tFrame F_contactEnd = new Frame(lbrRoot,500,0,385,Math.toRadians(180),Math.toRadians(0),Math.toRadians(180));\n\t\n\tFrame F_tmp = F_contactEnd.copy();\n\t\n\tF_flyMin \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, 50)).copy();\n\tF_fly3 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, 60)).copy();\n\tF_fly4 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 200,0, 0)).copy();\n\tF_flyMax \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, -60)).copy();\t\t\n\tF_contactStart \t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, -50)).copy();\n\t\n\tSystem.out.println(String.format(\"F_flyMin, x: %1$f y: %2$f z: %3$f\", F_flyMin.getX(), F_flyMin.getY(), F_flyMin.getZ()));\n\tSystem.out.println(String.format(\"F_fly3, x: %1$f y: %2$f z: %3$f\", F_fly3.getX(), F_fly3.getY(), F_fly3.getZ()));\n\tSystem.out.println(String.format(\"F_fly4, x: %1$f y: %2$f z: %3$f\", F_fly4.getX(), F_fly4.getY(), F_fly4.getZ()));\n\tSystem.out.println(String.format(\"F_flyMax, x: %1$f y: %2$f z: %3$f\", F_flyMax.getX(), F_flyMax.getY(), F_flyMax.getZ()));\n\tSystem.out.println(String.format(\"F_contactStart, x: %1$f y: %2$f z: %3$f\", F_contactStart.getX(), F_contactStart.getY(), F_contactStart.getZ()));\n\t\n\tSpline flyingPhase_spline = new Spline(\n\t\t\tlin(F_contactEnd),\n\t\t\tspl(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_contactStart)\n\t\t);\n\t\n\t\n\t// move to standBy position:\n\tSystem.out.println(\"going to standBy position\");\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\n\n\t\n\t/*\n\tSystem.out.println(\"going to end frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing));\n\t*/\n\t\n\t/*\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMin).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly3).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly4).setCartVelocity(v_taxing));\n\t\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMax).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing)); \n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - spline (3x)\");\n\tfor (int i=1; i<=3; i++)\n\t{\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250));\n\t}\n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - batch\");\n\tlbr_iiwa_14_R820_1.moveAsync(batch(\n\t\t\tlin(F_contactEnd),\n\t\t\tlin(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_contactStart)\n\t).setCartVelocity(v_fly));\n\t*/\n\t\n\t\n\tSystem.out.println(\"Setting impedance mode\");\n\tCartesianImpedanceControlMode cartImpMode = new CartesianImpedanceControlMode();\n\n\t/*\n\tcartImpMode.parametrize(CartDOF.TRANSL).setStiffness(1500);\n\tcartImpMode.parametrize(CartDOF.TRANSL).setDamping(0.7);\n\n\tcartImpMode.parametrize(CartDOF.Z).setStiffness(100);\n\n\tcartImpMode.parametrize(CartDOF.ROT).setStiffness(200);\n\tcartImpMode.parametrize(CartDOF.ROT).setDamping(0.7);\n\n\tcartImpMode.setNullSpaceDamping(0.3);\n\tcartImpMode.setNullSpaceStiffness(0);\n\n\tcartImpMode.setMaxControlForce(30, 30, 30, 10, 10, 10, false);\n\t*/\n\t\n\t// manage data recording\n\tDataRecorder rec = new DataRecorder(); //data recording \n\trec.setFileName(\"Recording.log\");\n\trec.setSampleRate(100);\n\trec.addCartesianForce(lbr_iiwa_14_R820_1.getFlange(),lbrRoot);\n\tStartRecordingAction startAction = new StartRecordingAction(rec);\n\t\n\tForceCondition condstart = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, 1); //recording trigger\n\tForceCondition condend = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, force_z); //stop movement trigger\n\t\n\t\n\tSystem.out.println(\"going to start frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing).setCartAcceleration(200));\t\n\t\n\t//start cycling\n\tfor (int i_cycle=1; i_cycle <= 3; i_cycle ++)\n\t{\n\t\tSystem.out.println(String.format(\"cycle # %1$d\", i_cycle));\n\t\t\n\t\t//PHASE 1: transition, landing\n\t\t//System.out.println(\"start transition phase, landing, impedance mode \");\n\t\t//lbr_iiwa_14_R820_1.move(linRel(0,0,-dz,lbrRoot).triggerWhen(condstart, startAction).breakWhen(condend).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t\n\t\tif (i_cycle == 1)\n\t\t{\n\t\t\t// check data recording\n\t\t\tSystem.out.println(\"recording activated\");\n\t\t\tif(rec.isFileAvailable())\n\t\t\t\tSystem.out.println(\"data file available\");\n\t\t\t\n\t\t\tURL url = rec.getURL();\n\t\t\tdummy = url.toString();\n\t\t\tSystem.out.println(dummy);\n\t\t}\n\t\t\n\t\t// print current force value\n\t\tForceSensorData data = lbr_iiwa_14_R820_1.getExternalForceTorque(lbr_iiwa_14_R820_1.getFlange());\n\t\tSystem.out.println(String.format(\"Fz = %1$f \",data.getForce().getZ()));\n\t\t\n\t\t// PHASE 2: contact phase\n\t\t//System.out.println(\"start contact phase, impedance mode\");\n\t\t//lbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_contact).setMode(cartImpMode));\n\t\t/*\n\t\t// PHASE 3: transition phase, take off\n\t\tSystem.out.println(\"start transition phase, impedance mode\");\n\t\tlbr_iiwa_14_R820_1.move(linRel(0,0,dz,lbrRoot).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t*/\n\t\t// PHASE 4: flying phase \n\t\tSystem.out.println(\"start flying phase, swift\");\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250).setMode(cartImpMode));\n\t}\n\t\n\t\n\t// stop recording\n\trec.stopRecording();\n\tSystem.out.println(\"data recording stopped\");\n\t\n\t\n\t// move to standBy position:\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\t\n\t}", "public void drawGraph() {\n for (int x = 0; x < width; ++x) {\n for (int y = 0; y < height; ++y) {\n\n if (y == height / 2) {\n imageRaster.setPixel(x, y, lineColor);\n } else {\n imageRaster.setPixel(x, y, backgroundColor);\n }\n }\n }\n\n // lateral\n for (int x = 0; x < width; ++x) {\n float xUnit = x / (float) width;\n float slipAngle = map(xUnit, 0, 1, 0, maxSlipAngle);\n\n float lat = tireModel.calcLateralTireForce(slipAngle);\n lat = map(lat, -tireModel.getMaxLoad(), tireModel.getMaxLoad(), 0, height);\n int pixelY = (int) FastMath.clamp(lat, 0, height - 1);\n\n imageRaster.setPixel(x, pixelY, lateralColor);\n }\n\n // longitudinal\n for (int x = 0; x < width; ++x) {\n float xUnit = x / (float) width;\n float slipAngle = map(xUnit, 0, 1, 0, maxSlipAngle);\n\n float lng = tireModel.calcLongitudeTireForce(slipAngle);\n lng = map(lng, -tireModel.getMaxLoad(), tireModel.getMaxLoad(), 0, height);\n int pixelY = (int) FastMath.clamp(lng, 0, height - 1);\n\n imageRaster.setPixel(x, pixelY, longitudinalColor);\n }\n\n // align moment\n for (int x = 0; x < width; ++x) {\n float xUnit = x / (float) width;\n float slipAngle = map(xUnit, 0, 1, 0, maxSlipAngle);\n\n float mnt = tireModel.calcAlignMoment(slipAngle);\n mnt = map(mnt, -tireModel.getMaxLoad(), tireModel.getMaxLoad(), 0, height);\n int pixelY = (int) FastMath.clamp(mnt, 0, height - 1);\n\n imageRaster.setPixel(x, pixelY, momentColor);\n }\n }", "private static FunctionCycle findCycleWithFloydsInternal(IntUnaryOperator func, int x0) {\n\n int t = func.applyAsInt(x0);\n int h = func.applyAsInt(func.applyAsInt(x0));\n\n // find point inside the cycle\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(func.applyAsInt(h));\n }\n\n h = x0;\n\n while (h != t) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n final int startPoint = t;\n int length = 1;\n h = func.applyAsInt(h);\n\n while (t != h) {\n h = func.applyAsInt(h);\n ++length;\n }\n\n return new FunctionCycle(startPoint, length);\n }", "private void paintBeanMachine(){\n Line baseLine = new Line();\n\n baseLine.startXProperty().bind(widthProperty().multiply(0.2));\n baseLine.startYProperty().bind(heightProperty().multiply(0.8));\n baseLine.endXProperty().bind(widthProperty().multiply(0.8));\n baseLine.endYProperty().bind(heightProperty().multiply(0.8));\n\n // distance gap per circle\n double distance = (baseLine.getEndX() - baseLine.getStartX()) / SLOTS;\n ballRadius = distance / 2;\n\n //Draw pegs\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n Circle[] pegs = new Circle[factorialSum(SLOTS)];\n int index = 0;\n\n for(int row = 0; row < SLOTS; row++){\n DoubleBinding y = baseLine.startYProperty().subtract(heightProperty().multiply(0.2).divide(row + 1));\n\n for(int col = 0; col < SLOTS - row; col++){\n Circle peg = new Circle(5, Color.BLUE);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(row).multiply(0.5))\n .add(dist.divide(2))\n .add(dist.multiply(row)));\n peg.centerYProperty().bind(y);\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n\n Line line = new Line();\n line.startXProperty().bind(peg.centerXProperty());\n line.startYProperty().bind(peg.centerYProperty());\n line.endXProperty().bind(peg.centerXProperty());\n line.endYProperty().bind(baseLine.startYProperty());\n getChildren().add(line);\n }\n }\n\n /*\n for(int i = 1; i <= SLOTS; i++){\n double x = baseLine.getStartX() + (i * distance * 0.50) + distance / 2;\n double y = baseLine.getStartY() - (distance * i) - distance / 2;\n\n for(int j = 0; j <= SLOTS - i; j++){\n Circle peg = new Circle(5, Color.BLUE);\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(i).multiply(0.5))\n .add(dist.divide(2)));\n peg.centerYProperty().bind(baseLine.startYProperty()\n .subtract(dist.multiply(i))\n .subtract(dist.divide(2)));\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n x += distance;\n }\n }\n */\n\n distance = distance + (distance / 2) - pegs[0].getRadius();\n // Connect the base of the triangle with lowerLine\n // NOT including left most and right most line\n Line[] lines = new Line[SLOTS - 1];\n for (int i = 0; i < SLOTS - 1; i++) {\n double x1 = pegs[i].getCenterX() + pegs[i].getRadius() * Math.sin(Math.PI);\n double y1 = pegs[i].getCenterY() - pegs[i].getRadius() * Math.cos(Math.PI);\n lines[i] = new Line(x1, y1, x1, y1 + distance);\n\n }\n // Draw right most and left most most line\n Line[] sides = new Line[6];\n sides[0] = new Line(\n baseLine.getEndX(), baseLine.getEndY(),\n baseLine.getEndX(), baseLine.getEndY() - distance);\n sides[1] = new Line(\n baseLine.getStartX(), baseLine.getStartY(),\n baseLine.getStartX(), baseLine.getStartY() - distance);\n\n //Draw left side line\n /*\n for(int i = 2; i < 4; i++){\n double x = pegs[pegs.length - i].getCenterX();\n double y = pegs[pegs.length - i].getCenterY() - distance;\n sides[i] = new Line(x, y, sides[i - 2].getEndX(), sides[i - 2].getEndY());\n }\n */\n\n // Draw the upper 2 lines on top of the triangle\n /*\n for (int i = 4; i < sides.length; i++){\n sides[i] = new Line(\n sides[i-2].getStartX(), sides[i-2].getStartY(),\n sides[i-2].getStartX(), sides[i-2].getStartY() - (distance * 0.6)\n );\n }\n */\n\n getChildren().addAll(baseLine);\n getChildren().addAll(pegs);\n //getChildren().addAll(lines);\n //getChildren().addAll(sides);\n }", "public void setPoints(int numOfIter) {\n\t\tint x = getX();\n\t\tint y = getY();\n\t\tint w = getW();\n\t\tint h = getH();\n\t\th = ((int) (getH() - w*0.29));\n\t\tint numOfSides = 3 * power(4, numOfIter);\n\t\n\t\t\n\t\tif(numOfIter == 0) {\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\txPointsD[2] = x;\n\t\t\tyPointsD[2] = y + h;\n\t\t\t\n\t\t\txPointsD[1] = (double) x + ((double) w)/2;\n\t\t\tyPointsD[1] = y;\n\t\t\t\n\t\t\txPointsD[0] = x + w;\n\t\t\tyPointsD[0] = y + h;\n\t\t} else {\n\t\t\tsetPoints(numOfIter - 1);\n\t\t\tint numOfSidesBefore = xPoints.length;\n\t\t\tdouble[] xPointsDB = xPointsD;\n\t\t\tdouble[] yPointsDB = yPointsD;\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\tfor(int i = 0; i < numOfSidesBefore; i++) {\n\t\t\t\txPointsD[4*i] = xPointsDB[i];\n\t\t\t\tyPointsD[4*i] = yPointsDB[i];\n\t\t\t\t\n\t\t\t\tdouble nextXPointsDB;\n\t\t\t\tdouble nextYPointsDB;\n\t\t\t\tif(i < numOfSidesBefore - 1) {\n\t\t\t\t\tnextXPointsDB = xPointsDB[i+1];\n\t\t\t\t\tnextYPointsDB = yPointsDB[i+1];\n\t\t\t\t} else {\n\t\t\t\t\tnextXPointsDB = xPointsDB[0];\n\t\t\t\t\tnextYPointsDB = yPointsDB[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4i + 1 --> U = (2A+B)/3\n\t\t\t\txPointsD[4*i + 1] = (2 * xPointsDB[i] + nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 1] = (2 * yPointsDB[i] + nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t\t//4i + 2 --> this one is complicated --> V = U + (AB/3)*(cos(ang(AB) + pi.3), sin(ang(AB) + pi/3))\n\t\t\t\tdouble angAB = Math.atan2(nextYPointsDB-yPointsDB[i], nextXPointsDB-xPointsDB[i]);\n\t\t\t\txPointsD[4*i + 2] = xPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.cos(angAB + Math.PI/3.0); \n\t\t\t\t\n\t\t\t\tyPointsD[4*i + 2] = yPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.sin(angAB + Math.PI/3.0);\n\t\t\t\t\n\t\t\t\t//4i + 3 --> W = (A + 2B)/3\n\t\t\t\txPointsD[4*i + 3] = (xPointsDB[i] + 2 * nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 3] = (yPointsDB[i] + 2 * nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\txPoints = new int[numOfSides];\n\t\tyPoints = new int[numOfSides];\n\t\tfor(int i = 0; i < numOfSides; i++) {\n\t\t\txPoints[i] = (int) xPointsD[i];\n\t\t\tyPoints[i] = (int) yPointsD[i];\n\t\t}\n\t\t\n\t}", "private void draw() {\n\n // Current generation (y-position on canvas)\n int generation = 0;\n\n // Looping while still on canvas\n while (generation < canvasHeight / CELL_SIZE) {\n\n // Next generation\n cells = generate(cells);\n\n // Drawing\n for (int i = 0; i < cells.length; i++) {\n gc.setFill(colors[cells[i]]);\n gc.fillRect(i * CELL_SIZE, generation * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }\n\n // Next line..\n generation++;\n }\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "void drawFormula7(Graphics2D g2d){\r\n\t\tArrayList<Point2D.Double> p_list= new ArrayList<Point2D.Double>();\r\n\t\tArrayList<Point3D> three_list=new ArrayList<Point3D>();\r\n\r\n\t\tfor(int i=0; i<pCanvas.iterations; i++){\r\n\r\n\t\t\tdouble theta=((double)i/1000)*8*Math.PI;\r\n\t\t\tdouble r=Math.pow(Math.E, Math.cos(theta))-2*Math.cos(4*theta)+Math.pow(Math.cos(theta/4.0),3.0);\r\n\t\t\tPoint3D next= new Point3D(r*Math.cos(theta), r*Math.sin(theta),0.0);\r\n\t\t\tnext=pointRotate(next, theta);\r\n\t\t\tthree_list.add(next);;\r\n\t\t}\r\n\t\tthree_list=CameraRotate(three_list);\r\n\t\tutils.scalePoint3D(three_list, pCanvas.getWidth()/11);\r\n\t\tp_list=utils.convert3DPointsTo2DPoints(three_list, eye);\r\n\t\tdrawPointArr(g2d, p_list);\r\n\t\r\n\t}", "public static void main(String[] args) {\n\t\tint j=2;\n\t\twhile(j < 10){\n\t\t\tfor(int i = 1; i <10; i ++){//for(1;2;3)1放初始條件2放繼續執行條件3執行後行為\n\t\t\t\tSystem.out.print(j + \"X\" + i + \"=\" + j*i + \" \");\n\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(); // 換行\n\t\t\tj++; // J遞增才能跳出迴圈\n\t\t}\n\t\t\n\t}", "public void paintComponent(Graphics page)\r\n {\r\n super.paintComponent(page);\r\n \r\n //Goes through each object in the array list and\r\n //draws the dot.\r\n for(int i = 0; i < dotList.size(); i++)\r\n {\r\n \t ((Dot) dotList.get(i)).draw(page); //Draws the dot\r\n }\r\n }", "void setGridX(int i);", "public void generate() {\n\t\tMirror m = new Mirror();\n\t\tpoints.addAll(m.fish());\n\t\twhile (remainingPoints > 0) {\n\t\t\titerate();\n\t\t\tremainingPoints--;\n\t\t}\n\n\t}", "public void drawGraph(){\n this.post(new Runnable(){\n @Override\n public void run(){\n removeAllSeries();\n addSeries(xySeries);\n addSeries(currentPoint);\n //addSeries(currentPoint);\n }\n });\n }", "public static void main(String[] args) {\n\t\tArrayList<Points> pointsPath = new ArrayList<>();\r\n\t\tPoints p = new Points();\r\n\t\tpointsPath.add(new Points(p));\r\n\t\tp.move(4, 4);\r\n\t\tpointsPath.add(new Points(p));\r\n\t\tp.move(10, 10);\r\n\t\tpointsPath.add(new Points(p));\r\n\t\tIterator<Points> it = pointsPath.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t it.next());\r\n\t\t}\r\n\t\t\r\n\t}", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "@SuppressWarnings(\"unused\")\r\n private void printVOI(VOI theVOI) {\r\n int numCurves;\r\n VOIContour curve;\r\n Vector<VOIBase>[] curves = theVOI.getSortedCurves(zDim);\r\n for (int sliceIdx = 0; sliceIdx < zDim; sliceIdx++) {\r\n numCurves = curves[sliceIdx].size();\r\n ViewUserInterface.getReference().getMessageFrame().append(\"Slice number: \" +sliceIdx +\" number of curves: \" +numCurves+\"\\n\", ViewJFrameMessage.DEBUG);\r\n for (int curveIdx = 0; curveIdx < numCurves; curveIdx++) {\r\n curve = ((VOIContour)curves[sliceIdx].get(curveIdx));\r\n ViewUserInterface.getReference().getMessageFrame().append(\" Curve: \" +curveIdx +\" number of points: \" +curve.size()+\"\\n\", ViewJFrameMessage.DEBUG);\r\n } // end for (int curveIdx = 0; ...)\r\n } // end for (int sliceIdx = 0; ...)\r\n }", "@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }", "public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }", "@Override\n\t\tpublic void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tsetBackground(Color.gray);\n\n\t\t\tif (points != null) {\n\t\t\t\tPoint lastPoint = null;\n\t\t\t\tint step = 0;\n\t\t\t\tfor (Point p : points) {\n\t\t\t\t\tint shade = 255 * step / points.length;\n\t\t\t\t\tstep++;\n\t\t\t\t\tg.setColor(new Color(shade, 0, 255 - shade));\n\n\t\t\t\t\t// Draw the point, and maybe connect to the previous point\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\tint jiggleX = (int) (jiggleFactor * Math.random() - jiggleFactor / 2);\n\t\t\t\t\t\tint jiggleY = (int) (jiggleFactor * Math.random() - jiggleFactor / 2);\n\n\t\t\t\t\t\tg.fillOval(p.x + jiggleX - diameter / 2, p.y + jiggleY\n\t\t\t\t\t\t\t\t- diameter / 2, diameter, diameter);\n\t\t\t\t\t\tif (connectTheDots) {\n\t\t\t\t\t\t\tif (lastPoint != null)\n\t\t\t\t\t\t\t\tg.drawLine(lastPoint.x, lastPoint.y, p.x, p.y);\n\t\t\t\t\t\t\tlastPoint = p;\n\t\t\t\t\t\t}\n\t\t\t\t\t} // end of drawing one point\n\t\t\t\t} // End of loop that draws all points\n\t\t\t} // end of non-null logic\n\t\t}", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "private void paintCourbeLie() {\n\t\tfloat x, y, yPrec = parent.getY(0);\n\t\tint j=0, jPrec = (int) axis.getY();\n\t\t\n\t\tfor(int i=(int) axis.getX()-1; i>0; i--) { //Dessine la courbe precedant l'origine\n\t\t\tx = (float) ((i-axis.getX())/(pointsParX));\n\t\t\ty = parent.getY(x);\n\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\tj = convertY(y);\n\t\t\t\n\t\t\t\tpaintPointInColor(i, j);\n\t\t\t\t\n\t\t\t\tif(j != jPrec-1 && j != jPrec+1) //Si il y a un espacement entre ce point et le dernier point dessine\n\t\t\t\t\ttraceLink(i, j, i-1, jPrec); //on trace une ligne entre ces deux points\n\t\t\t\t\n\t\t\t\tjPrec = j;\n\t\t\t}\n\t\t\t\n\t\t\telse if(y > yMax && yPrec < yMax) //Trace la courbe jusqu'en haut si le point sort de l'affichage\n\t\t\t\ttraceLink(i, 1, i-1, jPrec);\n\t\t\t\t\n\t\t\telse if(y < yMin && yPrec > yMin) //Trace la courbe jusqu'en bas si le point sort de l'affichage\n\t\t\t\ttraceLink(i, height-1, i-1, jPrec);\n\n\t\t\tyPrec = y;\n\t\t}\n\t\t\n\t\tyPrec = parent.getY(0);\n\t\tjPrec = (int) axis.getY();\n\t\t\n\t\tfor(int i=(int) axis.getX(); i<width; i++) { //Dessine la courbe suivant l'origine\n\t\t\tx = (float) ((i-axis.getX())/(pointsParX));\n\t\t\ty = parent.getY(x);\n\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\tj = convertY(y);\n\t\t\t\n\t\t\t\tpaintPointInColor(i, j);\n\t\t\t\t\n\t\t\t\tif(j != jPrec-1 && j != jPrec+1)\n\t\t\t\t\ttraceLink(i, j, i-1, jPrec);\n\t\t\t\t\n\t\t\t\tjPrec = j;\n\t\t\t}\n\t\t\t\n\t\t\telse if(y > yMax && yPrec < yMax)\n\t\t\t\ttraceLink(i, 1, i-1, jPrec);\n\n\t\t\telse if(y < yMin && yPrec > yMin)\n\t\t\t\ttraceLink(i, height-1, i-1, jPrec);\n\t\t\t\t\n\t\t\tyPrec = y;\n\t\t}\n\t}", "@Override\n public void draw(GraphicsContext gc){\n for(int i = 1; i < path.size(); i++) {\n Point2D from = path.get(i-1);\n Point2D to = path.get(i);\n gc.strokeLine(from.getX(), from.getY(), to.getX(), to.getY());\n }\n }", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\t\tgc.drawImage(image.get(n), x, y);\n\t\tn++;\n\t\tif (n>=15) n=0;\n\t}", "public static void printBlink(PrintWriter pw, GBlink G, double x0, double y0, double ww, double hh, double margin) {\r\n\r\n double topMargin = margin; // space to info\r\n double leftMargin = margin;\r\n double bottomMargin = margin; // space to info\r\n double rightMargin = margin;\r\n double w = ww - leftMargin - rightMargin;\r\n double h = hh - topMargin - bottomMargin;\r\n\r\n HashMap<GBlinkVertex, Point2D.Double> map = TuttesLayout.mapLayout(G, 0, 0, 1, 1);\r\n\r\n HashMap<Variable, Point2D.Double> mapVPos = new HashMap<Variable, Point2D.Double>();\r\n\r\n AffineTransform T = new AffineTransform();\r\n T.translate(x0+leftMargin,y0+hh-topMargin);\r\n T.scale(w,-h);\r\n\r\n // translate\r\n pw.println(\"gsave\");\r\n // pw.println(String.format(\"%.4f %.4f translate\", x0, y0));\r\n\r\n ArrayList<Variable> varVertices = G.getGVertices();\r\n for (Variable var : varVertices) {\r\n Point2D.Double p = new Point2D.Double(0, 0);\r\n for (GBlinkVertex vv : var.getVertices()) {\r\n Point2D.Double pAux = map.get(vv);\r\n T.transform(pAux,pAux);\r\n p.setLocation(p.getX() + pAux.getX(), p.getY() + pAux.getY());\r\n }\r\n if (var.size() == 0) {\r\n p.setLocation(0.5,0.5);\r\n T.transform(p,p);\r\n } else {\r\n p.setLocation(p.getX() / var.size(), p.getY() / var.size());\r\n }\r\n mapVPos.put(var, p);\r\n }\r\n\r\n for (int i = 1; i <= G.getNumberOfGEdges(); i++) {\r\n GBlinkVertex va = G.findVertex((i - 1) * 4 + 1);\r\n GBlinkVertex vb = G.findVertex((i - 1) * 4 + 2);\r\n GBlinkVertex vc = G.findVertex((i - 1) * 4 + 3);\r\n GBlinkVertex vd = G.findVertex((i - 1) * 4 + 4);\r\n\r\n Point2D.Double p1 = mapVPos.get(G.findVariable(va, Variable.G_VERTICE));\r\n Point2D.Double p2 = new Point2D.Double(0, 0);\r\n p2.setLocation((map.get(va).getX() + map.get(vb).getX()) / 2.0,\r\n (map.get(va).getY() + map.get(vb).getY()) / 2.0);\r\n Point2D.Double p3 = new Point2D.Double(0, 0);\r\n p3.setLocation((map.get(vc).getX() + map.get(vd).getX()) / 2.0,\r\n (map.get(vc).getY() + map.get(vd).getY()) / 2.0);\r\n Point2D.Double p4 = mapVPos.get(G.findVariable(vc, Variable.G_VERTICE));\r\n\r\n pw.println(\"newpath\");\r\n pw.println(String.format(\"%.4f %.4f moveto\", p1.getX(), p1.getY()));\r\n pw.println(String.format(\"%.4f %.4f %.4f %.4f %.4f %.4f curveto\",\r\n p2.getX(),\r\n p2.getY(),\r\n p3.getX(),\r\n p3.getY(),\r\n p4.getX(),\r\n p4.getY()));\r\n\r\n if (G.getColor(i) == BlinkColor.green)\r\n pw.println(\"0 180 0 setrgbcolor\");\r\n else\r\n pw.println(\"180 0 0 setrgbcolor\");\r\n pw.println(\"stroke\");\r\n }\r\n\r\n // draw vertices as black dots\r\n for (Variable var : varVertices) {\r\n Point2D.Double p = mapVPos.get(var);\r\n pw.println(\"newpath\");\r\n // pw.println(String.format(\"%.4f %.4f moveto\", p.getX(), p.getY()));\r\n pw.println(String.format(\"%.4f %.4f %.4f 0 360 arc\", p.getX(), p.getY(), 1.0));\r\n pw.println(\"closepath\");\r\n pw.println(\"0 0 0 setrgbcolor\");\r\n pw.println(\"fill\");\r\n }\r\n pw.println(\"grestore\");\r\n\r\n }", "public static void main(String[] args) throws Exception {\n File file = new File(\"out/gSeries\" + Interpolate.prefix + \"/zeros.dat\");\n// DataOutputStream out = Interpolate.outputStream( file);\n ZeroInfo zeroInput = null;\n int N = 1003814;\n double[] nextValues = null;\n double max = 70;\n int run = 0;\n int beginRun = 0;\n for (int i = 0; i < N ; i++) {\n zeroInput = readSingleZero( Interpolate.zeroIn, nextValues);\n nextValues = zeroInput.nextValues;\n// if(i>1003800){\n// if(Math.abs(zeroInput.lastZero[1])>max){\n// run = 0;\n// beginRun = i;\n// } else {\n// run++;\n// }\n// }\n// if(run>40){\n// //run at 1003813\n// System.out.println(\"run at \" + beginRun);\n// break;\n// }\n if(i<3792 ){\n continue;\n }\n final double z0 = zeroInput.lastZero[0];\n final double z1 = zeroInput.nextValues[0];\n final double d0 = zeroInput.lastZero[1];\n final double d1 = zeroInput.nextValues[1];\n final double maxFromInput = d0>0?zeroInput.lastZero[2]:-zeroInput.lastZero[2];\n if(i==3792 || i==1003813){\n //gSeries.begin 476.85026008636953\n Poly4 poly = new Poly4(z0,z1, d0,d1,maxFromInput);\n System.out.println(i + \", \" + Arrays.toString(zeroInput.lastZero) +\n \", \\n\" + \"positionMax \" + poly.positionMax \n + \", \" + poly.eval(poly.positionMax) \n + \", \\n\" + Arrays.toString(nextValues));\n }\n// for (int j = 0; j < zeroInput.lastZero.length; j++) {\n// out.writeDouble(zeroInput.lastZero[j]);\n// }\n// out.writeDouble(poly.positionMax);\n }\n// out.close();\n// DataInputStream in = Interpolate.dataInputStream( file);\n// double[] tmin = new double[4];\n// for (int i = 0; i < N-3792 ; i++) \n// {\n// for (int i1 = 0; i1 < tmin.length; i1++) \n// {\n// tmin[i1] = in.readDouble();\n// }\n// System.out.println(Arrays.toString(tmin));\n// }\n// in.close();\n }", "@Override\r\n public void paintComponent(Graphics g)\r\n {\r\n super.paintComponent(g); // clears drawing area\r\n\r\n for(Point point : points)\r\n g.fillOval(point.x, point.y, 4, 4);\r\n }", "public void evaluate_fixpoint_sequence() {\n // JOptionPane.showMessageDialog(null, \"Evaluating the Fixed Point-Sequence m[8]...m[17]\" );\n // DES_action_type = 0;\n int[][] init_fixedpoint_sequence = new int[10][32];\n // Initialisierung\n // for (int p=0; p<10; p++)\n // for (int t=0; t<32; t++)\n // init_fixedpoint_sequence[p][t] = 0;\n intialize_matrix(init_fixedpoint_sequence);\n DES_fixedpoint_sequence = init_fixedpoint_sequence;\n\n for (int j = 0; j < 32; j++) {\n DES_fixedpoint_sequence[0][j] = DES_m8[j];\n DES_fixedpoint_sequence[1][j] = DES_m8[j];\n }\n\n for (int i = 2; i < 10; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(DES_fixedpoint_sequence[i - 1]), DES_K[i + 6]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n DES_fixedpoint_sequence[i] = exclusive_or(DES_fixedpoint_sequence[i - 2], fmK);\n }\n }", "private void createVertices(int iX, int iY, int iXO, int iYO, int num, int increment) {\n int y = iY;\n if (num == 0 && increment == 0) {\n BracketNode last = new BracketNode(\"\", iX, y - 20, iXO, 20);\n nodes.add(last);\n getChildren().addAll(new Line(iX, iY, iX + iXO, iY), last);\n last.setName(currentBracket.getBracket().get(location));\n bracketMap.put(last, location);\n nodeMap.put(location, last);\n } else {\n ArrayList<BracketNode> aNodeList = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n Point2D tl = new Point2D(iX, y);\n Point2D tr = new Point2D(iX + iXO, y);\n Point2D bl = new Point2D(iX, y + iYO);\n Point2D br = new Point2D(iX + iXO, y + iYO);\n BracketNode nTop = new BracketNode(\"\", iX, y - 20, iXO, 20);\n aNodeList.add(nTop);\n nodes.add(nTop);\n BracketNode nBottom = new BracketNode(\"\", iX, y + (iYO - 20), iXO, 20);\n aNodeList.add(nBottom);\n nodes.add(nBottom);\n Line top = new Line(tl.getX(), tl.getY(), tr.getX(), tr.getY());\n Line bottom = new Line(bl.getX(), bl.getY(), br.getX(), br.getY());\n Line right = new Line(tr.getX(), tr.getY(), br.getX(), br.getY());\n getChildren().addAll(top, bottom, right, nTop, nBottom);\n isTop = !isTop;\n y += increment;\n }\n ArrayList<Integer> tmpHelp = helper(location, num);\n for (int j = 0; j < aNodeList.size(); j++) {\n //System.out.println(currentBracket.getBracket().get(tmpHelp.get(j)));\n aNodeList.get(j).setName(currentBracket.getBracket().get(tmpHelp.get(j)));\n bracketMap.put(aNodeList.get(j), tmpHelp.get(j));\n nodeMap.put(tmpHelp.get(j), aNodeList.get(j));\n //System.out.println(bracketMap.get(aNodeList.get(j)));\n }\n }\n\n }", "public void avvio_gioco(){\n\n punti = 3;\n //Posizione iniziale della x\n for (short i = 0; i < punti; i++) {\n x[i] = 150 - i*10;\n y[i] = 150;\n }\n posiziona_bersaglio();\n\n //Attivazione del timer\n timer = new Timer(RITARDO, this);\n timer.start();\n }", "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "public void draw(PGraphics pg, float x, float y) {\n\t\t// save previous styling\n\t\tpg.pushStyle();\n\t\t\t\t\n\t\t// determine color of marker from depth\n\t\tcolorDetermine(pg);\n\t\t\t\n\t\t// call abstract method implemented in child class to draw marker shape\n\t\tdrawEarthquake(pg, x, y);\n\t\t\t\n\t\t//draw X over marker if within past day\n\t\tif(age.contentEquals(\"Past Day\")){\n\t\t\tpg.line(x-10, y-10, x+10, y+10);\n\t\t\tpg.line(x+10, y-10, x-10, y+10);\n\t\t}\n\t\t\t\n\t\t// reset to previous styling\n\t\tpg.popStyle();\n\t}", "private void fillVector()\r\n {\r\n // The x and y coordinates of a point\r\n int xPoint;\r\n int yPoint;\r\n \r\n // The x and y coordinates of a point with the displacement of the plot \r\n // origin from the component origin taken into consideration\r\n int xPointOffset, yPointOffset;\r\n \r\n // The point to be stored in the vector\r\n SPlotPoint plotPoint;\r\n\r\n\r\n // Get the max of the data types to figure out how to scale plot\r\n maxX_ = (new Double(xData_.getMax())).intValue();\r\n maxY_ = (new Double(yData_.getMax())).intValue();\r\n \r\n // Want max axes to be max of 200. Need to calculate the scaling factor\r\n xFactor_ = maxX_/MAX_AXIS_LENGTH;\r\n yFactor_ = maxY_/MAX_AXIS_LENGTH;\r\n \r\n // Extract x and y values, generate SPlotPoints and store in vector\r\n for (int i = 0; i < xSize_; i++)\r\n {\r\n xPoint = (int)(xData_.getValue(i) / xFactor_);\r\n yPoint = (int)(yData_.getValue(i) / yFactor_); \r\n\r\n\r\n // The xy coordinates where to plot the point (after taking the \r\n // offset btn the plot origin and the component origin into account\r\n xPointOffset = xPoint+OFFSET;\r\n yPointOffset = yPoint+OFFSET;\r\n \r\n // Generate SPlotPoints and store in vector\r\n plotPoint = new SPlotPoint(xPointOffset,\r\n yPointOffset);\r\n \r\n // Set the id of the scatter plot point (corresponds to the row\r\n // number in the .dbf\r\n // Must add one to compensate for geodata starting at 1 and vector\r\n // index starting at 0\r\n plotPoint.setId(i+1);\r\n \r\n pointVector_.addElement(plotPoint);\r\n }\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n if (animationInProgress) {\n logger.info(\"Lost frame...\");\n return;\n }\n animationInProgress = true;\n\n java.util.List<Double> toIndex = indexFind.get(0);\n\n int value = Step + stepStep * animDirection;\n if (value < 1) {\n value = 1;\n }\n else if (value > toIndex.size()) {\n value = toIndex.size() - 1;\n }\n\n Step = value;\n\n try {\n long start = System.currentTimeMillis();\n XYPlot plot = (XYPlot)this.chartPanel.getChart().getPlot();\n currentIndex = Step - 1;\n plot.setDomainCrosshairValue(toIndex.get(currentIndex));\n //selectStructure(Step);\n //structureManagerInterface.selectStructure(currentIndex);\n float secs = (System.currentTimeMillis() - start) / 1000.0f;\n logger.info(\"Elapsed time: \" + secs);\n //setSnapshotValue(Step);\n }\n catch (Exception ex) {\n animationInProgress = false;\n timer.stop();\n JOptionPane.showMessageDialog(this, \"Error during animation: \" + ex.getMessage() + \"\\nAnimation stopped\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n\n if (animationMode == 0) { // Animate once\n if (Step == 1 && animDirection == -1) {\n stopAnimation();\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n stopAnimation();\n }\n }\n\n else if (animationMode == 1) { // Animate in loop\n if (Step == 1 && animDirection == -1) {\n Step = toIndex.size();\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n Step = 1;\n }\n }\n\n else if (animationMode == 2) { // Animate back & forth\n if (Step == 1 && animDirection == -1) {\n if (toIndex.size() > 1) {\n Step = 1;\n animDirection = 1;\n }\n }\n else if (Step == toIndex.size() && animDirection == 1) {\n if (toIndex.size() > 1) {\n Step = toIndex.size() - 1;\n animDirection = -1;\n }\n }\n }\n\n animationInProgress = false;\n }", "public void printForward(){\n int k=start;\n for(int i=0;i<size;i++){\n System.out.print(cir[k]+\",\");\n k=(k+1)%cir.length;\n }\n System.out.println();\n }", "public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}", "public void afficherPoints(){\n for(Point point : pointArrayList){\n getMapPane().getChildren().add(point.getImageView());\n visualObjects.add(point);\n }\n }", "public void solveFlow() {\n for(int ix=1;ix<cols-1;ix++) {\n int x0=ix*resolution+resolution/2;\n for(int iy=1;iy<rows-1;iy++) {\n int y0=iy*resolution+resolution/2;\n int ig=iy*cols+ix;\n //y0Z=iy*resolution+resolution/2;\n //igz=iy*cols+ix;\n\n // prepare vectors fx, fy, ft\n getnext9(dxr,fx,ig,0); // dx red\n //getnext9(dxg,fx,ig,9); // dx green\n //getnext9(dxb,fx,ig,18);// dx blue\n getnext9(dyr,fy,ig,0); // dy red\n //getnext9(dyg,fy,ig,9); // dy green\n //getnext9(dyb,fy,ig,18);// dy blue\n getnext9(dtr,ft,ig,0); // dt red\n //getnext9(dtg,ft,ig,9); // dt green\n //getnext9(dtb,ft,ig,18);// dt blue\n\n // solve for (flowx, flowy) such that\n // fx flowx + fy flowy + ft = 0\n solveSectFlow(ig);\n\n // smoothing\n sflowx[ig]+=(flowx[ig]-sflowx[ig])*wflow;\n sflowy[ig]+=(flowy[ig]-sflowy[ig])*wflow;\n\n float u=df*sflowx[ig];\n float v=df*sflowy[ig];\n //float u=df*sflowx[ig];\n //float v=df*sflowy[ig];\n\n float a=sqrt(u*u+v*v);\n\n // register new vectors\n if(a>= minRegisterFlowVelocity) \n {\n field[ix][iy] = new PVector(u,v);\n\n // REMOVED FROM drawColorFlow() to here\n if(a>=minDrawParticlesFlowVelocity) { \n \n // display flow when debugging\n if (drawOpticalFlow) \n {\n stroke(255.0f, 0.0f, 0.0f);\n line(x0,y0,x0+u,y0+v);\n } \n\n // same syntax as memo's fluid solver (http://memo.tv/msafluid_for_processing)\n float mouseNormX = (x0+u) * invKWidth;// / kWidth;\n float mouseNormY = (y0+v) * invKHeight; // kHeight;\n float mouseVelX = ((x0+u) - x0) * invKWidth;// / kWidth;\n float mouseVelY = ((y0+v) - y0) * invKHeight;// / kHeight; \n\n particleManager.addForce(1-mouseNormX, mouseNormY, -mouseVelX, mouseVelY);\n }\n }\n }\n }\n }", "public void step(){\r\n\t\t\r\n\t\t\r\n\t\tsuper.step();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(marketEntryHappend){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taddSequencesToGraphs();\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\t\r\n\t\tif(marketExitHappend){\r\n\t\t\t\r\n\t\t\tfor(int i =0; i < exitedFirms.size();i++){\r\n\t\t\t\r\n\t\t\t\tfreeCoordinates.add(new Coordinate(exitedFirms.get(i).x_coord,exitedFirms.get(i).y_coord)); \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\tgraphOutput.step();\r\n\t\tgraphPrice.step();\r\n\t\tgraphQuality.step();\r\n\t\tgraphFirmLocations.step();\r\n\t\t//graphEnteringCosts.step();\r\n\t\tgraphAverageProbability.step();\r\n\t\tgraphTotalProfit.step();\r\n\t\tgraphNumFirms.step();\r\n\t\t\r\n\t\tgraphSingleOutput.step();\r\n\t\tgraphSinglePrice.step(); \r\n\t\tgraphSingleQuality.step(); \r\n\t\tgraphSingleFirmLocations.step();\r\n\t graphSingleProbability.step(); \r\n\t\tgraphSinglelProfit.step();\r\n\t\tgraphSingleQualityConcept.step();\r\n\t\r\n\t\tgraphClusteringCoefficient.step();\r\n\t\t\r\n\t\tgraphCumProfit.step();\r\n\t\t\r\n\t\tfor(int i=0; i < dsurfList.size();i++){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgridSpaceList.get(i).update(locationList.get(i));;\r\n\t\t\t\r\n\t\t dsurfList.get(i).updateDisplay();\r\n\t\t }\r\n\t\t\r\n\t\t\tlayout.setList(nodeList);\r\n\t\t\r\n\t\t layout.updateLayout();\r\n\t\t surface.updateDisplay();\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t}", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "void iterate(FnIntFloatToVoid function);", "void display() {\n\t\t\t\t\tSystem.out.println(\"display: outer_x = \" + outer_x);\n\t\t\t\t}", "public int[][] FractalShip(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tBurningShipSet burn = new BurningShipSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdouble xDiff = (xRangeEnd - xRangeStart) / n;\r\n\t\tdouble yDiff = (yRangeEnd - yRangeStart) / n;\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < n; x++) {\r\n\t\t\txVal = xVal + xDiff;\r\n\t\r\n\t\t\tyVal = yRangeStart;\r\n\r\n\t\t\tfor (int y = 0; y < n; y++) {\r\n\t\t\t\t\r\n\t\t\t\tyVal = yVal + yDiff;\r\n\t\t\t\t\r\n\t\t\t\tPoint2D cords = new Point.Double(xVal, yVal);\r\n\r\n\t\t\t\tint escapeTime = burn.burningShip(cords);\r\n\t\t\t\t\r\n\t\t\t\tfractal[x][y] = escapeTime;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\treturn fractal;\r\n\t\r\n\t\r\n}", "private void drawLines()\n {\n getBackground().setColor( Color.BLACK );\n \n for( int i = 200; i < getWidth(); i += 200 )\n {\n getBackground().drawLine(i, 0, i, getHeight() );\n getBackground().drawLine(0, i, getWidth(), i);\n }\n \n Greenfoot.start();\n }", "protected abstract void trace_begin_loop();", "private void fill() {\n\t\tseries1.clear();\n\t\tint m = 50;\n\t\tdouble tmpX, tmpZ;\n\n\t\tfor (double x=-m; x <= +m; x++) {\n\t\t\ttmpX = MathUtils.sqr(x/30);\n\t\t\tfor (double z=-m; z <= +m; z++) {\n\t\t\t\ttmpZ = MathUtils.sqr(z/30);\n\t\t\t\ttmpZ = Math.sqrt(tmpX+tmpZ);\n\t\t\t\tseries1.add(x, 4*Math.cos(3*tmpZ)*Math.exp(-0.5*tmpZ), z);\n\t\t\t}\n\t\t}\n\t }", "void drawPointArr(Graphics2D g2d, ArrayList<Point2D.Double> l){\r\n\t\tfor(int i=0; i<l.size()-1; i++){\r\n\t\t\tLine2D.Double line=new Line2D.Double(l.get(i), l.get(i+1));\r\n\t\t\tg2d.draw(line);\r\n\t\t}\r\n\r\n\t}", "void drawCustomFormula(Graphics2D g2d){\r\n\t\tStaticVariableSet<Double> variables = new StaticVariableSet<Double>(); //javaluator junk\r\n\t\tArrayList<Point2D.Double> p_list= new ArrayList<Point2D.Double>();\r\n\t\tArrayList<Point3D> three_list=new ArrayList<Point3D>();\r\n\r\n\t\tfor(int i=0; i<pCanvas.iterations; i++){\r\n\r\n\t\t\tdouble theta=((double)i/1000)*2*Math.PI;\r\n\t\t\tvariables.set(\"x\", theta); //changes the variable xs value to be equal to theta\r\n\t\t\tdouble r=eval.evaluate(equation,variables); //evaluates the custom expression\r\n\t\t\tPoint3D next= new Point3D(r*Math.cos(theta), r*Math.sin(theta),0.0); //tells what point the cartesian coord is (z always zero since normally drawn on xy plane\r\n\t\t\tnext=pointRotate(next, theta); //rotates point around some axis\r\n\t\t\tthree_list.add(next);; //adds to pointlist\r\n\t\t}\r\n\t\tthree_list=CameraRotate(three_list); //rotates all points by some theta if camera is enabled\r\n\t\tutils.scalePoint3D(three_list, 100); //scales\r\n\t\tp_list=utils.convert3DPointsTo2DPoints(three_list, eye); //perspective transform\r\n\t\tdrawPointArr(g2d, p_list); //draws lines betweeen consecutive points\r\n\r\n\r\n\r\n\t}", "void display() {\n\t\t\tSystem.out.println(\"display: outer_x = \" + outer_x);\n\t\t}", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public void paintComponent(Graphics g)\n {\n int xRange = Integer.parseInt(xLabel);\n \n // Udhezimi per kthimin e vleres se variablave x1-6 ne proporcion me gjatsine e boshtit x te shprehur ne pixela\n int propX1 = ((x1*axisLength)/xRange)+xPos;\n int propX2 = ((x2*axisLength)/xRange)+xPos;\n int propX3 = ((x3*axisLength)/xRange)+xPos;\n int propX4 = ((x4*axisLength)/xRange)+xPos;\n int propX5 = ((x5*axisLength)/xRange)+xPos;\n int propX6 = ((x6*axisLength)/xRange)+xPos;\n \n g.setColor(Color.white);\n g.fillRect(0,0,width,height);\n g.setColor(Color.black);\n \n // Boshti x dhe y me gjatesi prej axisLength\n g.drawLine(xPos+2, yPos, xPos+axisLength, yPos);\n g.drawLine(xPos, yPos, xPos, yPos-axisLength);\n \n // Paraqitja e pikes max te boshtit x(xLabel) dhe boshtit y(yLabel)\n g.drawString(xLabel, xPos+axisLength, yPos+20);\n g.drawString(yLabel, xPos-20, yPos-axisLength);\n g.drawString(\"0\", xPos+5,yPos+20);\n g.drawString(\"0\", xPos-15,yPos-5);\n \n // Udhezimi per paraqitjen grafike te pikave ne panel\n g.fillOval(propX1,propY1-3,4,4);\n g.fillOval(propX2,propY2-3,4,4);\n g.fillOval(propX3,propY3-3,4,4);\n g.fillOval(propX4,propY4-3,4,4);\n g.fillOval(propX5,propY5-3,4,4);\n g.fillOval(propX6,propY6-3,4,4);\n \n // Udhezimi per paraqitjen e drejtezave te cilat lidhin pikat x1-5\n g.drawLine(propX1, propY1, propX2 ,propY2);\n g.drawLine(propX2, propY2, propX3, propY3);\n g.drawLine(propX3, propY3, propX4, propY4);\n g.drawLine(propX4, propY4, propX5, propY5);\n g.drawLine(propX5, propY5, propX6, propY6);\n }", "@Override\r\n\tpublic void withDraw(int x) {\n\t\t\r\n\t}", "@Test\n public void test41() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(407.99, (-371.62), (-371.62), 0.0);\n line2D_Double0.x1 = 0.0;\n line2D_Double0.setLine((-371.62), 3820.38477815176, 0.0, 3820.38477815176);\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(0.0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n combinedRangeCategoryPlot0.setRangeCrosshairValue((-371.62));\n CategoryPointerAnnotation categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"K(Jj1`SZJ!y81S;n?%Y\", (Comparable) (-371.62), 1834.808976, (-371.62));\n combinedRangeCategoryPlot0.addAnnotation(categoryPointerAnnotation0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n float[][] floatArray0 = new float[9][0];\n float[] floatArray1 = new float[0];\n floatArray0[0] = floatArray1;\n float[] floatArray2 = new float[6];\n floatArray2[0] = Float.NEGATIVE_INFINITY;\n floatArray2[1] = 8.0F;\n floatArray2[2] = (-970.0398F);\n floatArray2[3] = (-2174.3F);\n floatArray2[4] = 0.0F;\n floatArray2[5] = 2953.279F;\n floatArray0[1] = floatArray2;\n float[] floatArray3 = new float[9];\n floatArray3[0] = 2953.279F;\n floatArray3[1] = (-970.0398F);\n floatArray3[2] = (-2174.3F);\n floatArray3[3] = (-970.0398F);\n floatArray3[4] = (-970.0398F);\n floatArray3[5] = 0.0F;\n floatArray3[6] = (-2174.3F);\n floatArray3[7] = 0.0F;\n floatArray3[8] = Float.NEGATIVE_INFINITY;\n floatArray0[2] = floatArray3;\n float[] floatArray4 = new float[0];\n floatArray0[3] = floatArray4;\n float[] floatArray5 = new float[7];\n floatArray5[0] = 8.0F;\n floatArray5[1] = 2953.279F;\n floatArray5[2] = (-966.2956F);\n floatArray5[3] = 8.0F;\n floatArray5[4] = 8.0F;\n floatArray5[5] = (-2174.3F);\n floatArray5[6] = (-2174.3F);\n floatArray0[4] = floatArray5;\n float[] floatArray6 = new float[6];\n floatArray6[0] = 0.0F;\n floatArray6[1] = Float.NEGATIVE_INFINITY;\n floatArray6[2] = (-966.2956F);\n floatArray6[3] = (-1797.876F);\n floatArray6[4] = (-966.2956F);\n floatArray6[5] = (-2174.3F);\n floatArray0[5] = floatArray6;\n float[] floatArray7 = new float[8];\n floatArray7[0] = 0.0F;\n floatArray7[1] = (-966.2956F);\n floatArray7[2] = 0.0F;\n floatArray7[3] = Float.NEGATIVE_INFINITY;\n floatArray7[4] = (-970.0398F);\n floatArray7[5] = (-970.0398F);\n floatArray7[6] = 0.0F;\n floatArray7[7] = (-970.0398F);\n floatArray0[6] = floatArray7;\n float[] floatArray8 = new float[3];\n floatArray8[0] = Float.NEGATIVE_INFINITY;\n floatArray8[1] = Float.NEGATIVE_INFINITY;\n floatArray8[2] = (-1797.876F);\n floatArray0[7] = floatArray8;\n float[] floatArray9 = new float[8];\n floatArray9[0] = 8.0F;\n floatArray9[1] = (-2209.7039F);\n floatArray9[2] = 0.0F;\n floatArray9[3] = (-2174.3F);\n floatArray9[4] = (-2174.3F);\n floatArray9[5] = Float.NEGATIVE_INFINITY;\n floatArray9[6] = 0.0F;\n floatArray9[7] = 2953.279F;\n floatArray0[8] = floatArray9;\n FastScatterPlot fastScatterPlot0 = new FastScatterPlot(floatArray0, (ValueAxis) numberAxis0, (ValueAxis) numberAxis0);\n BasicStroke basicStroke0 = (BasicStroke)fastScatterPlot0.getDomainGridlineStroke();\n combinedRangeCategoryPlot0.setRangeCrosshairStroke(basicStroke0);\n }", "void nextGaussianStep(){\n \n \n int stepx=nextGaussian(2,1)*(r.nextInt(3)-1);\n int stepy=nextGaussian(2,1)*(r.nextInt(3)-1);\n \n StdDraw.line(x,y,x+stepx,y+stepy);\n x += stepx;\n y += stepy;\n }", "public void printCoordinates ()\n\t{\n\t\tfor (int a = 0; a < object.size(); a++)\n\t\t{\n\t\t\tSystem.out.println(\"Polygon \" + (a+1) + \":\");\n\t\t\tobject.get(a).detailedPrint();\n\t\t\tSystem.out.println(\"**********\");\n\t\t}\n\t}", "public void printForward() {\r\n int k = start;\r\n for (int i = 0; i < size; i++) {\r\n if (i == size - 1) {\r\n System.out.print(cir[k] + \".\");\r\n } else {\r\n System.out.print(cir[k] + \", \");\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n System.out.println();\r\n }", "void draw (ObservableList<Node> objects, ObservableList<Node> persistentObjects) {\n\n// defines the start and end of the Line based on the first and last Event\n// of the Timeline, the zoom (stretch) and global edge of all Nodes (shift)\n start = (timeline.events.peekFirst().startDate[2] * stretch) - shift;\n end = (timeline.events.peekLast().startDate[2] * stretch) - shift;\n\n// defines the X coordinates of the Label before the first Event\n this.setLayoutX(start - this.width() - 10);\n\n// places and styles the accompanying Line\n line = new Line(start, y, end, y);\n line.setStyle(stylesheet.toString());\n line.getStyleClass().add(\"axisLine\");\n\n// sets right click on the Line to expand Timeline as well\n line.setOnMouseClicked(mouseEvent -> {\n if (mouseEvent.getButton() == MouseButton.SECONDARY)\n expandElement(timeline);\n });\n\n// draws the Label and Line on mainPane\n objects.addAll(this, line);\n\n// cycles through all Timeline Events\n// creates Marker and draws it on mainPane\n for (Event event : timeline.events) {\n if (event.visible) {\n Marker marker = new Marker(event, y);\n objects.addAll(marker, marker.line);\n }\n }\n\n// draws persistentLabel on persistentPane\n persistentObjects.add(persistentLabel);\n }", "public static void show(int[] kd){\n final int NUM_OF_LINES = 5;\n\n Line[] lines = new Line[NUM_OF_LINES];\n\n //gives each array element the necessary memory\n for(int i = 0; i < NUM_OF_LINES; i++){\n lines[i] = new Line();\n }\n\n //in order to print\n lines[0].setLine(4,0,0);\n lines[1].setLine(3,1,2);\n lines[2].setLine(2,3,5);\n lines[3].setLine(1,6,9);\n lines[4].setLine(0,10,14);\n\n for(int i = 0; i < NUM_OF_LINES; i++){\n String tab = \"\";\n\n //creates the 'tab' effect based on position\n for(int j = 0; j < lines[i].getT(); j++){\n tab += \" \";\n }\n System.out.print(tab);\n\n for(int j = lines[i].getA(); j < lines[i].getB() + 1; j++){\n if(kd[j] == 0){\n System.out.print(\". \");\n }\n else{\n System.out.print(\"x \");\n }\n }\n System.out.println();\n }\n\n }", "private void drawDataPoint(Graphics g, int radius, int x, int y)\r\n/* 123: */ {\r\n/* 124: 99 */ g.fillOval(x - radius, y - radius, 2 * radius, 2 * radius);\r\n/* 125: */ }" ]
[ "0.6171544", "0.59811616", "0.5966115", "0.58958334", "0.5846034", "0.5648952", "0.5614087", "0.55568683", "0.55256796", "0.5525641", "0.54999185", "0.54963225", "0.543733", "0.54165554", "0.5401748", "0.53614664", "0.53338796", "0.52872884", "0.52458376", "0.52357566", "0.52162653", "0.5202293", "0.5146725", "0.5146131", "0.51457477", "0.5107623", "0.51034564", "0.51032066", "0.5101745", "0.5100504", "0.5099176", "0.509853", "0.50965726", "0.50922525", "0.5086795", "0.5080714", "0.5070842", "0.50681806", "0.50564295", "0.50538456", "0.504934", "0.50484717", "0.5038647", "0.5029869", "0.5021078", "0.50119627", "0.5009352", "0.49972886", "0.49969277", "0.4987869", "0.49829847", "0.49821788", "0.49752796", "0.49721494", "0.49720868", "0.49662575", "0.4955997", "0.49528185", "0.49488997", "0.49445832", "0.4939414", "0.4935357", "0.49303025", "0.49255332", "0.49203366", "0.49181494", "0.4915578", "0.49139908", "0.49127054", "0.4907223", "0.4905737", "0.49053857", "0.49050874", "0.48938257", "0.48925877", "0.48916346", "0.48850092", "0.48836526", "0.48836526", "0.48836526", "0.48836526", "0.48751423", "0.48745728", "0.4872589", "0.48692945", "0.48661312", "0.48652905", "0.48651004", "0.48633078", "0.48602992", "0.48590726", "0.48575944", "0.48573306", "0.48545912", "0.48528817", "0.48528248", "0.4842677", "0.48420522", "0.48404887", "0.48349443" ]
0.7142506
0
// Debugging // // Main for debugging.
public static void main(String args[]) { Frame test = new Frame(); FixedPointPanel demo = new FixedPointPanel(); Function function = new Function() { public float at( float x) { return (float) (x*x + 0.5); } // public float at( float x) { return (float) Math.sqrt(x); } }; PlotFunction plotFunction = new PlotFunction(function, -2.25f, 2.25f, -1.25f, 5.25f); FUNCTIONS[0] = plotFunction; /* Function function = new Function() { public float at( float x) { return (float) Math.exp(1/x); } }; PlotFunction plotFunction = new PlotFunction(function, -3.25f, 4.255f, -0.25f, 5.25f); */ test.setTitle("Fixed Point Test"); test.setSize(600, 500); test.setLayout(new BorderLayout()); test.add(demo, BorderLayout.CENTER); test.setVisible(true); demo.chooseFunction(0); demo.draw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void debug() {\n\n }", "public void debug(String msg);", "public static void debugInfo() { throw Extensions.todo(); }", "public void debug(String message);", "public void debug(String comment);", "private void debug(String str) {\n }", "public abstract void debug(PrintStream console);", "private static void printDebug(String s)\n {\n }", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "private void debug(String post) {\n if (GameLauncher.isDebugging()) {\n System.out.println(post);\n }\n }", "private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}", "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "void debug(String a, String b) {\n\t\t}", "void debug(String msg)\n {\n if (yydebug)\n System.out.println(msg);\n }", "protected abstract void debug(String msg);", "void debug (String msg) throws RootException;", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public static void enableDebugging(){\n DEBUG = true;\n }", "private static void debug(String s) {\n if (System.getProperty(\"javafind.debug\") != null)\n System.out.println(\"debug in GnuNativeFind: \" + s);\n }", "public static void main(String[] args) {\n\t\tLog.debug(\"Im Debugging\");\n\t\tLog.info(\"info\");\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\t/////////////////////\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\tgaurav\n\t}", "void debug(String msg)\n{\n if (yydebug)\n System.out.println(msg);\n}", "void debug(String msg)\n{\n if (yydebug)\n System.out.println(msg);\n}", "boolean isDebug();", "boolean isDebug();", "@Override\n\tpublic void debug(Object message) {\n\n\t}", "public boolean isDebug();", "private void debug(final String msg) {\n \t\tif (debug) System.out.println(msg);\n \t}", "public void callDebug() throws IOException, FileNotFoundException, DebuggerCompilationException{\n //try{\n String debugArgs[] = new String[4];\n debugArgs[0] = ocamlDebugC;\n debugArgs[1] = outFile;\n debugArgs[2] = \"-s\";\n debugArgs[3] = \"localhost\";\n try{\n debugger = runtime.exec(debugArgs);\n }catch(IOException e){\n //e.printStackTrace();\n throw new DebuggerCompilationException();\n }\n debugWriter = new OutputStreamWriter(debugger.getOutputStream());\n\n InputStream debuggerInputStream = debugger.getInputStream();\n InputStream debuggerErrorStream = debugger.getErrorStream();\n debugReader = new DebugListener(debuggerInputStream, this.observers, handle);\n debugReader.start();\n debugErrorReader = new DebugListener(debuggerErrorStream, this.observers, handle);\n debugErrorReader.start();\n\n //}catch(IOException e){\n // throw new FileNotFoundException();\n //}\n }", "public void debug()\r\n {\n \t\treload();\r\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1) {\n\n\t}", "public Debug() {\n target = getProject().getObjects()\n .property(JavaForkOptions.class);\n port = getProject().getObjects()\n .property(Integer.class).convention(5005);\n server = getProject().getObjects()\n .property(Boolean.class).convention(true);\n suspend = getProject().getObjects()\n .property(Boolean.class).convention(true);\n finalizedBy(target);\n }", "public abstract void debug(RobocodeFileOutputStream output);", "public void debug(String s)\r\n {\r\n if (DEBUG)\r\n {\r\n System.out.println((debugCounter++) + \": \" + s);\r\n }\r\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5) {\n\n\t}", "public boolean isDebugEnabled();", "@Override\n\tpublic void debug(Message msg) {\n\n\t}", "public interface LibDebug\n {\n /***************************************************************************************************************\n * An output being logged if this debug group is enabled.\n ***************************************************************************************************************/\n void out( Object msg );\n\n /***************************************************************************************************************\n * An output being logged UNCONDITIONAL.\n ***************************************************************************************************************/\n void err( Object msg );\n\n /***************************************************************************************************************\n * A stacktrace being logged if this debug group is enabled.\n ***************************************************************************************************************/\n void trace( Throwable msg );\n\n /***************************************************************************************************************\n * Displays memory info.\n ***************************************************************************************************************/\n void mem();\n }", "@Override\n\tpublic void setDebugMode(boolean debug) {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate static void printDebug(String p) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(PREFIX + p);\n\t\t}\n\t}", "public static void debug(boolean d) {\n D = d;\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2) {\n\n\t}", "void debug() {\n\t\tfor( int i = 0; i < N; i++ ) {\t\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tSystem.out.print(j+\":\"+(defined[i][j]?\"T\":\"F\")+\" \"+\n\t\t\t\t\t\tc[i][j]+\" p=\"+path[i][j]+\" f=\"+f[i][j]+\"; \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "void debug(String messageKey, Object... args);", "@Override\n\tpublic void debug(String message, Throwable t) {\n\n\t}", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}", "boolean isDebugEnabled();", "public static void debug(boolean d, String message) {\n \tif(d) {\n \t\tSystem.out.println(message);\n \t}\n }", "@Override\n\tpublic void debug(String message, Object... params) {\n\n\t}", "@Override\n\tpublic void debug(String message, Object p0) {\n\n\t}", "protected void debug(String string) {\n\t\tif (DEBUGMODE)\n\t\t\tSystem.out.println(string);\n\t}", "public static void main(String[] args) {\n demo5();\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "public interface Debugable {\r\n\r\n /**\r\n * An <code>abstract void</code> that allows debugging data to be printed on a console.\r\n * \r\n * @param console - the <code>java.io.PrintStream</code> that the debugging data will be sent to.\r\n */\r\n public abstract void debug(PrintStream console);\r\n\r\n /**\r\n * An <code>abstract void</code> that allows debugging data to be printed to a file.\r\n * \r\n * @param output - the <code>java.io.ObjectOutputStream</code> that the data will be sent to.\r\n */\r\n public abstract void debug(RobocodeFileOutputStream output);\r\n\r\n}", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}", "public void continueDebugStep() {\n \tthis.continueDebug = true;\n }", "public static boolean debugging()\n {\n return info;\n }", "private int debug(Integer parameterIndex) throws ExceptionMalformedInput\n {\n this.debug = parseParameter(args, parameterIndex+1);\n Debug.INSTANCE = new DebugLoud();\n Debug.INSTANCE.initLogFlag(this.debug);\n return parameterIndex + 1;\n }", "@Override\n\tpublic void debug(Marker marker, String message) {\n\n\t}", "private static void debug(String message, Object... args)\n {\n StatusLogger.getLogger().debug(String.format(message, args));\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}", "public void Main(){\n }", "@Override\n\tpublic void debug(Object message, Throwable t) {\n\n\t}", "public void enableDebug() {\n this.debug = true;\n }", "static void debug(boolean b) {\n ProcessRunnerImpl.setGlobalDebug(b);\n }", "@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}", "public static void main(String[] args) {\n\t\tLogger logger = new Logger();\n\t\tlogger.setThreshold(LogLevels.DEBUG);\n\t\t\n\t\t\n\t\tlogger.info(\"program started\");\n\t\tlogger.warning(\"warning\");\n\t\tlogger.error(\"error\");\n\t\tlogger.debug(\"debug\");\n\t\tlogger.trace(\"trace\");\n\t\t\n\t\t\n\t\t\n\t}", "public static void main() {\n \n }", "public void debug(String word)\n\t{\n\t\tif(debug)\n\t\tSystem.out.println(word);\n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object p0, Object p1) {\n\n\t}", "public static void debug(Object s) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.DEBUG, s);\n\t\t}\n\t}", "public boolean supportsDebugArgument();", "public final DebugLogger Debug() {\n return system.Debug();\n }", "@Override\n\tpublic void debug(Marker marker, Object message) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object p0) {\n\n\t}", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void setDebug(boolean d) {\n\t\tdebug = d;\n\t}", "LabyDebugger getLabyDebugger();", "@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "public void debug(String filename) throws IOException {\n\t\tdebug(new FileWriter(filename));\n\t}", "protected boolean isDebugging() {\n\t\treturn debugging;\n\t}", "private void debugInConsole() {\n String command = \"\";\n do {\n try {\n command = getCommandWithPrompt();\n doDebugCommand(command);\n } catch (Error e) {\n println(e.getMessage());\n }\n } while (!command.equals(\"exit\"));\n }", "public boolean isDebug( ) {\n\t\treturn debug;\n\t}", "public static void disableDebugging(){\n DEBUG = false;\n }", "@Override\n\tpublic void debug(CharSequence message) {\n\n\t}", "public static void main(){\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tlog.debug(\"Debugging\");\n\t\tlog.info(\"Just FYI\");\n\t\tlog.error(\"Error message\");\n\n\t\tlog.fatal(\"Fatal Error\");\n\t}", "public static void main() {\n }", "@Override\n\tpublic void debug(CharSequence message, Throwable t) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object... params) {\n\n\t}", "public static void main(String [] args)\n{\n DpinMain dm = new DpinMain(args);\n dm.process();\n}", "public static final boolean isDebugInfo() { return true; }", "void debug (String msg, RootException ex) throws RootException;", "public void print_DEBUG() {\n\t\tSystem.out.println(\"Direction\");\n\t\tSystem.out.println(\"ID: \" + ID);\n\t\tSystem.out.println(\"FROM: \" + from.name() );\n\t\tSystem.out.println(\"TO: \" + to.name() );\n\t\tSystem.out.println(\"dir: \" + dir);\n\t\tSystem.out.println(\"Locked: \" + locked);\n\t\tSystem.out.println(\"LockPattern: \" + lockPattern);\n\t}", "@Override\n\tpublic void debug(Message msg, Throwable t) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, Message msg, Throwable t) {\n\n\t}", "public String debug(String packageName){\n return addConfiguration(Log4jConfiguration.DEBUG, packageName); \n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}" ]
[ "0.7729894", "0.6731185", "0.67283857", "0.6719095", "0.6716858", "0.6672792", "0.6607376", "0.65936065", "0.65729344", "0.6515191", "0.65108484", "0.6481813", "0.6465539", "0.6447803", "0.6425741", "0.63998383", "0.638058", "0.63743323", "0.63734037", "0.6362642", "0.63391143", "0.63391143", "0.6321342", "0.6321342", "0.62551343", "0.6255084", "0.6238085", "0.62024343", "0.619713", "0.61961496", "0.6183413", "0.6176411", "0.6142059", "0.6137944", "0.6118744", "0.6105702", "0.61033887", "0.6099115", "0.6093078", "0.6083384", "0.60805774", "0.6079347", "0.6068826", "0.60530025", "0.6050776", "0.60212755", "0.6013634", "0.60008293", "0.59961224", "0.5996067", "0.59752387", "0.59647375", "0.59634167", "0.59577405", "0.59487045", "0.5947496", "0.59383786", "0.5931626", "0.59316236", "0.5910616", "0.590058", "0.5899932", "0.58972925", "0.5887169", "0.58871585", "0.58827233", "0.58692604", "0.5851869", "0.58486056", "0.58454674", "0.5838605", "0.5834185", "0.5832395", "0.5832137", "0.58303696", "0.5826666", "0.5815847", "0.58070374", "0.58029854", "0.5802206", "0.5787923", "0.5780249", "0.57705444", "0.57651156", "0.5762856", "0.57593745", "0.5757103", "0.5756906", "0.5750103", "0.57467544", "0.5745003", "0.57404137", "0.5731471", "0.57298374", "0.57222414", "0.57161045", "0.57110125", "0.5704118", "0.56933135", "0.5693155", "0.56924164" ]
0.0
-1
Getting the place entered
@Override public void onClick(View v) { String location = etPlace.getText().toString(); if(location==null || location.equals("")){ Toast.makeText(getBaseContext(), "No Place is entered", Toast.LENGTH_SHORT).show(); return; } else if(location!=null && !location.equals("")){ new GeocoderTask().execute(location); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String Get_place() \n {\n\n return place;\n }", "Place getPlace();", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n return place;\n }", "public String getPlace() {\n\t\treturn place;\n\t}", "public int getPlace() {\n\t\treturn place;\n\t}", "public void Print_place()\n {\n\n System.out.println(\"Place: \" + place);\n }", "public String getPlace(){\n return place;\n }", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\n editTextBusinessName.setText(place.getName());\n editTextLocation.setText(place.getAddress());\n editTextPhone.setText(place.getPhoneNumber());\n barCoordinates = place.getLatLng();\n //editTextBusinessDescription.setText(place.getAttributions());\n\n }", "public Integer getQueryplace() {\n\t\treturn queryplace;\n\t}", "public String getActplace() {\r\n return actplace;\r\n }", "public int getPlaceLocation() {\n return mPlaceLocation;\n }", "private Place getPlace(String identifierPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getName().equals(identifierPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "private Place getPlaceWithTelephoneNumber() {\n\n // finds nearby place according the slot value\n List<Place> places = PlaceFinder.findNearbyPlace(GeoCoder.getLatLng(deviceAddress), slotBankNameValue);\n\n // check the list of places for one with opening hours\n return PlaceFinder.findTelephoneNumberPlace(places, slotBankNameValue);\n }", "public Place getStartingPlace() {\n return startingPlace;\n }", "public final native PlaceResult getPlace() /*-{\n return this.getPlace();\n }-*/;", "public void scanCurrentPlace()\r\n\t{\r\n\t\tSystem.out.println(this.getCurrentPlace().toString());\r\n\t\tSystem.out.println(\"The place contains these objects: \");\r\n\t\tSystem.out.println(this.getCurrentPlace().getItems().toString());\r\n\t}", "private Place getFromPlace(Element passageElement, ArrayList<Place> places) {\n Place start = null;\n for (int i = 0; i <= places.size() - 1; i++) {\n if (passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent()\n .equals(places.get(i).getName())) {\n start = places.get(i);\n }\n }\n return start;\n }", "Place resolveLocation( Place place );", "public String getOtherPlace() {\r\n return otherPlace;\r\n }", "@Override\n public void onPlaceSelected(Place place) {\n\n Log.i(\"place_autocomplete\", \"Place: \" + place.getName() + \", \" + place.getId() + \", \" + place.getLatLng());\n LatLng latLng = place.getLatLng();\n setLocationWork(latLng.latitude, latLng.longitude);\n }", "public String getplaceName() {\n\t\treturn placeName;\n\t}", "public String getOwnerPlace() {\r\n return ownerPlace;\r\n }", "public int getPlaceName() {\n return mPlaceName;\n }", "@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(\"city\",place.toString());\r\n Log.i(TAG, \"Place: \" + place.getName());\r\n city2=place.getName().toString();\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city2;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city2=h;\r\n\r\n }", "protected Place getPlace(int row, int col) {\n\t\treturn this.places.get(row * b.size() + col);\n\t}", "static Place getPlaceByID ( int key)\r\n\t{\r\n\t\treturn tm.get(key);\r\n\t}", "@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(TAG, \"Place: \" + place.getName());\r\n city1=place.getName().toString();\r\n Log.i(TAG,place.getAddress().toString());\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city1;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city1=h;\r\n\r\n }", "@Override\r\n\tpublic DiaryEventEditPlace getPlace() {\n\t\treturn null;\r\n\t}", "private void getLocation() {\n fields = Arrays.asList(Place.Field.ID, Place.Field.NAME, Place.Field.LAT_LNG);\n\n // Start the autocomplete intent.\n Intent intent = new Autocomplete.IntentBuilder(\n AutocompleteActivityMode.FULLSCREEN, fields)\n .build(this);\n startActivityForResult(intent, AUTOCOMPLETE_REQUEST_CODE);\n }", "public Location getEnterLocation() {\r\n return location;\r\n }", "public FindPlace(Scanner scanner) {\r\n\t\tSystem.out.print(\"Please enter a location: \");\r\n\t\tdestination = scanner.nextLine();\r\n\r\n\t}", "public String getPlacecode() {\n return placecode;\n }", "public void setPlace(String place){\n this.place = place;\n }", "@Override\n public void onPlaceSelected(Place place) {\n\n place_str[0] = place.getName() + \",\" + place.getId();\n }", "public java.lang.String getUiPlace() {\n java.lang.Object ref = uiPlace_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n uiPlace_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1) {\n if(resultCode == RESULT_OK) {\n location = data.getStringExtra(\"EXTRA_PLACE_NAME\");\n place_id = data.getStringExtra(\"EXTRA_PLACE_ID\");\n //lat = data.getDoubleExtra(\"EXTRA_PLACE_LAT\", 0);\n //lng = data.getDoubleExtra(\"EXTRA_PLACE_LNG\", 0);\n\n ViewLocation.setText(location);\n\n }\n }\n }", "public Place getPlace() {\n\t\treturn null;\r\n\t}", "public String getLivingPlace() {\n return livingPlace;\n }", "public String getCustomerPlace() {\r\n return town.getName();\r\n }", "public java.lang.String getUiPlace() {\n java.lang.Object ref = uiPlace_;\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 uiPlace_ = s;\n }\n return s;\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText etLocation = (EditText) findViewById(R.id.location);\n\n\t\t\t\t// Getting user input location\n\t\t\t\tString location = etLocation.getText().toString();\n\n\t\t\t\tif (location != null && !location.equals(\"\")) {\n\t\t\t\t\tfindPlace = new GeocoderTask(getBaseContext(), googleMap);\n\t\t\t\t\t\t\tfindPlace.execute(location);\n\t\t\t\t}\n\t\t\t}", "String getLocation();", "String getLocation();", "String getLocation();", "@Override\n public void onPlaceSelected(Place place) {\n Log.i(\"Place: \", place.getAddress().toString());\n if (mybound != null) {\n if (mybound.contains(place.getLatLng())) {\n zoomToSearchedLocation(place);\n }\n }\n// zoomToSearchedLocation(place);\n bolFlag = true;\n }", "static Place getRandomPlace()\r\n\t{\r\n\t\tPlace randomPlace = knownPlaces.get( new Random().nextInt ( knownPlaces.size()));\r\n\t\treturn randomPlace;\r\n\t}", "@Override\n protected MarkerItem doInBackground(MarkerItem... locationName) {\n Geocoder geocoder = new Geocoder(getBaseContext());\n List<Address> addresses = null;\n MarkerItem name = locationName[0];\n try {\n // Getting a maximum of 1 Address that matches the input text\n addresses = geocoder.getFromLocationName(name.getAddress(), 1);\n if (addresses != null && addresses.size() >= 1) {\n name.setPlaceItem(addresses.get(0));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return name;\n }", "private String getCityOrStateName() {\n System.out.println(\"Enter city/state name\");\n return scannerForAddressBook.scannerProvider().nextLine();\n }", "public int getPlaceDescription() {\n return mPlaceDescription;\n }", "public int getPlacesX()\n {\n return this.placesX;\n }", "public void searchPlace(String value)\n\t\t{ \n\t\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); \n\t\t try {\n\t\t List<Address> addresses = geoCoder.getFromLocationName(\n\t\t value, 5);\t\t \n\t\t if (addresses.size() > 0) {\n\t\t \t\n\t\t \tdouble latitude= 0.0, longtitude= 0.0;\n\t\t \tGeoPoint p = new GeoPoint(\n\t\t (int) (addresses.get(0).getLatitude() * 1E6), \n\t\t (int) (addresses.get(0).getLongitude() * 1E6));\n\t\t \tlatitude=p.getLatitudeE6()/1E6;\n\t\t\t\t\t\tlongtitude=p.getLongitudeE6()/1E6;\t \n\t\t\t\t\t\tlat = String.valueOf(latitude);\n\t\t\t\t\t\tlongi = String.valueOf(longtitude);\n\t\t\t\t\t\torigin = new LatLng(latitude,longtitude);\n\t\t \tmap.moveCamera( CameraUpdateFactory.newLatLngZoom(origin, (float) 14.0) ); \n\t\t } \n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\n\n\n\t\t \n\n\t\t}", "public synchronized Place getPlace() throws InterruptedException {\n\t\tif (!spatialCheckThread.isAlive())\n\t\t\tspatialCheckThread.start();\n\n\t\tif (currentPlace == null)\n\t\t\twait();\n\t\treturn currentPlace;\n\t}", "public static String getPlace(String place) {\n if (place != null\n && place.contains(\" of \")) {\n return place.substring(place.lastIndexOf(\" of \") + \" of \".length());\n }\n return place;\n }", "private void showCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n // Get the likely places - that is, the businesses and other points of interest that\n // are the best match for the device's current location.\n @SuppressWarnings(\"MissingPermission\")\n PendingResult<PlaceLikelihoodBuffer> result = Places.PlaceDetectionApi\n .getCurrentPlace(mGoogleApiClient, null);\n result.setResultCallback(new ResultCallback<PlaceLikelihoodBuffer>() {\n @Override\n public void onResult(@NonNull PlaceLikelihoodBuffer likelyPlaces) {\n int i = 0;\n mLikelyPlaceNames = new String[mMaxEntries];\n mLikelyPlaceAddresses = new String[mMaxEntries];\n mLikelyPlaceAttributions = new String[mMaxEntries];\n mLikelyPlaceLatLngs = new LatLng[mMaxEntries];\n for (PlaceLikelihood placeLikelihood : likelyPlaces) {\n // Build a list of likely places to show the user. Max 5.\n Place place = placeLikelihood.getPlace();\n mLikelyPlaceNames[i] = (String) place.getName();\n mLikelyPlaceAddresses[i] = (String) place.getAddress();\n mLikelyPlaceAttributions[i] = (String) place.getAttributions();\n mLikelyPlaceLatLngs[i] = place.getLatLng();\n\n i++;\n if (i > (mMaxEntries - 1)) {\n break;\n }\n }\n // Release the place likelihood buffer, to avoid memory leaks.\n likelyPlaces.release();\n\n // Show a dialog offering the user the list of likely places, and add a\n // marker at the selected place.\n openPlacesDialog();\n }\n });\n } else {\n // Add a default marker, because the user hasn't selected a place.\n /*mMap.addMarker(new MarkerOptions()\n .title(getString(R.string.default_info_title))\n .position(mDefaultLocation)\n .snippet(getString(R.string.default_info_snippet)));*/\n }\n }", "private Place getPlace(Integer idPlace) {\n\t\tPlace place = null;\n\t\tfor(Place p: places ){\n\t\t\tif(p.getId().equals(idPlace)){\n\t\t\t\tplace = p;\n\t\t\t}\n\t\t}\n\t\treturn place;\n\t}", "private Place getPlaceWithOpeningHours() {\n\n // finds nearby place according the slot value\n List<Place> places = PlaceFinder.findNearbyPlace(GeoCoder.getLatLng(deviceAddress), slotBankNameValue);\n\n // check the list of places for one with opening hours\n return PlaceFinder.findOpeningHoursPlace(places, slotBankNameValue);\n }", "public IPlace getPlace(int row, int column) {\n \t\tIPlace[][] students = this.getStudents();\n \t\tif (students != null) {\n \t\t\treturn students[row][column];\n \t\t}\n \t\tthrow new IllegalStateException();\n \t}", "String getLocationLabel();", "public String idOfPlace()\n {\n return id;\n }", "public int getPlaces() {\r\n return places;\r\n }", "public String getLocation(Widget w) {\n for (Iterator i = locationToWidget.keySet().iterator(); i.hasNext();) {\n String location = (String) i.next();\n if (locationToWidget.get(location) == w) {\n return location;\n }\n }\n return null;\n }", "public java.lang.String getPlaceOfOrigin () {\n\t\treturn placeOfOrigin;\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == PLACE_PICKER_REQUEST) {\n if (resultCode == RESULT_OK) {\n place = PlacePicker.getPlace(this, data);\n locationEditText.setText(place.getLatLng().toString());\n\n //Toast shown to user to let them know the location has been set.\n Toast.makeText(PictureActivity.this, R.string.location_toast,\n Toast.LENGTH_SHORT).show();\n\n }\n }\n }", "public String getOwnerPlace(int idPlace) throws Exception {\n if (idPlace > 40 || idPlace < 1) {\n\n throw new Exception(\"Place doesn't exist\");\n } else {\n String dono = (String) Donos.get(idPlace);\n if (dono.equals(\"noOwner\") || dono.equals(\"Luxury Tax\") || dono.equals(\"Income Tax\")) {\n throw new Exception(\"This place can't be owned\");\n } else {\n return (String) Donos.get(idPlace);\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Provide results based on location picked in placepicker.\n if (requestCode == PLACE_PICKER_REQUEST) {\n if (resultCode == RESULT_OK) {\n Place place = PlacePicker.getPlace(data, this);\n String toastPlaceNameMsg = String.format(\"Place selected: %s\", place.getName());\n Toast.makeText(this, toastPlaceNameMsg, Toast.LENGTH_LONG).show();\n\n /*String toastCoordinateNameMsg = String.format(\"Coordinates selected: %s\", place.getLatLng());\n Toast.makeText(this, toastCoordinateNameMsg, Toast.LENGTH_LONG).show();*/\n\n // Store information based on place picked.\n mPlaceSelected = (String) place.getName();\n mSelectedLat = place.getLatLng().latitude;\n mSelectedLng = place.getLatLng().longitude;\n mCoordinates = place.getLatLng();\n\n // Update TextView showing location\n locationChosen.setText(mPlaceSelected);\n\n // Store Coordinates in a bundle so other fragments can use if necessary.\n coordinatesBundle = new Bundle();\n coordinatesBundle.putParcelable(CoordinatesKey, mCoordinates);\n rad = 50000;\n }\n }\n }", "java.lang.String getLocation();", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n getLocationPermission();\n }\n }", "public java.lang.String getSignPlace() {\n\t\treturn _tempNoTiceShipMessage.getSignPlace();\n\t}", "String getArrivalLocation();", "private String getPlace(String[] tokens, int start_index) {\n\t\t\n\t\tint i = start_index + 1;\n\t\tboolean found = false;\n\t\tString ret = \"\";\n\t\t\n\t\twhile(!found && i < tokens.length)\n\t\t{\n\t\t\tif(isWordPlace(tokens[i]))\n\t\t\t{\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(found)\n\t\t{\n\t\t\tret = tokens[i];\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n // The user has not granted permission.\n Log.i(TAG, \"The user did not grant location permission.\");\n\n // Add a default marker, because the user hasn't selected a place.\n mMap.addMarker(new MarkerOptions()\n .title(getString(R.string.default_info_title))\n .position(mDefaultLocation)\n .snippet(getString(R.string.default_info_snippet)));\n\n // Prompt the user for permission.\n getLocationPermission();\n }\n }", "private JTextField getGridmapLocation() {\n if (gridmapLocation == null) {\n gridmapLocation = new JTextField();\n }\n return gridmapLocation;\n }", "public int getLocation()\r\n {\n }", "String askForCity();", "public String getPlaceId() {\n return placeId;\n }", "private void openPlacesDialog() {\n // Ask the user to choose the place where they are now.\n DialogInterface.OnClickListener listener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // The \"which\" argument contains the position of the selected item.\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n\n // Position the map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }\n };\n\n // Display the dialog.\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setTitle(R.string.pick_place)\n .setItems(mLikelyPlaceNames, listener)\n .show();\n }", "private void retrieveLocationClicked() {\n locationClikedId = getIntent().getIntExtra(GeneralConstants.EDIT_LOCATION_DETAILS_KEY, 0);\n }", "@Override\n public void onPlaceSelected(Place place) {\n latLng = place.getLatLng();\n locationName = place.getName().toString();\n locationAddress = place.getAddress().toString();\n Log.i(TAG, \"Location:latitude: \" + place.getLatLng().latitude);\n Log.i(TAG, \"Location:Address: \" + place.getAddress());\n Log.i(TAG, \"Location:Web: \" + place.getWebsiteUri());\n Log.i(TAG, \"Location:Place: \" + place.getName());\n mMap.addMarker(new MarkerOptions().position(latLng).title(locationName).snippet(locationAddress)).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }", "public Point inSearch(){\n\t\tSystem.out.println(\"Enter point coordinate, which you want to check\");\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}", "private String getPickUpLocation() {\n return priceDetailsModule.findElement(By.className(\"seleniumPickupLocation\")).getText();\n }", "public Point getNameFieldLoc() {\r\n\t\treturn nameField.getLocationOnScreen();\r\n\t}", "public void getCoord(MouseEvent me){\n if(mapImage.getImage()!=null) {\n double xPos = me.getX();\n double yPos = me.getY();\n Main.ps.setTitle(xPos + \" \" + yPos);\n }\n }", "public Placement getPlacement() {\n return getEntity();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Check that the result was from the autocomplete widget.\n if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {\n if (resultCode == RESULT_OK) {\n // Get the user's selected place from the Intent.\n Place place = PlaceAutocomplete.getPlace(this, data);\n Log.i(TAG, \"Place Selected: \" + place.getName());\n\n // Format the place's details and display them in the TextView.\n eventEditVenue.setText(place.getName().toString().trim());\n eventEditAddres.setText(place.getAddress().toString().trim());\n\n // Display attributions if required.\n CharSequence attributions = place.getAttributions();\n// if (!TextUtils.isEmpty(attributions)) {\n// mPlaceAttribution.setText(Html.fromHtml(attributions.toString()));\n// } else {\n// mPlaceAttribution.setText(\"\");\n// }\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n Log.e(TAG, \"Error: Status = \" + status.toString());\n } else if (resultCode == RESULT_CANCELED) {\n // Indicates that the activity closed before a selection was made. For example if\n // the user pressed the back button.\n }\n }\n }", "public PlaceMonsterMove getPlace(GameState state, Monster mon) {\n if (Tony == null) assignPlayers(state);\n if (castle1 == null) assignCastles(state);\n /*\n if (mon == Monster.SLAYER) {\n if (state.getMonsters(castle1, notTony).contains(Monster.DRAGON))\n return new PlaceMonsterMove(Tony, castle1, mon);\n else\n return new PlaceMonsterMove(Tony, castle2, mon);\n }\n\n CastleID castleChoice = castle1;\n if (mon.value > avgStr) {\n //try to place at castle2\n castleChoice = findValidPlacement(castle2, castle1, castle3, state);\n } else {\n //try to place at castle1\n castleChoice = findValidPlacement(castle1, castle2, castle3, state);\n }\n */\n\n CastleID castleChoice = findValidPlacement(castle2, castle1, castle3, state);\n System.out.println(Tony + \" is placing \" + mon + \" at \" + castleChoice);\n\n return new PlaceMonsterMove(Tony, castleChoice, mon);\n }", "public Point getLocation() { return loc; }", "private void getUserLocation()\n {\n Log.i(\"values\",getArguments().getString(\"type\"));\n fetchStores(placeID);\n }", "@Override\n public void onPlaceSelected(Place place) {\n destination = place.getName().toString();\n destinationLatLng = place.getLatLng();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Check that the result was from the autocomplete widget.\n if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {\n if (resultCode == RESULT_OK) {\n // Get the user's selected place from the Intent.\n Place place = PlaceAutocomplete.getPlace(this, data);\n Log.i(LOG_TAG, \"Place Selected: \" + place.getName());\n\n if(place!=null) {\n setMarkerPosition(place.getLatLng());\n if (tvLokasiUsaha != null) {\n tvLokasiUsaha.setText(place.getAddress());\n } else {\n tvLokasiUsaha.setText(\"\");\n }\n }\n\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n Log.e(LOG_TAG, \"Error: Status = \" + status.toString());\n } else if (resultCode == RESULT_CANCELED) {\n // Indicates that the activity closed before a selection was made. For example if\n // the user pressed the back button.\n }\n }\n }", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();", "String location();" ]
[ "0.71617323", "0.688328", "0.682957", "0.682957", "0.682957", "0.682957", "0.68235135", "0.674193", "0.664385", "0.6618593", "0.6592899", "0.6511062", "0.6397234", "0.63478786", "0.6343237", "0.62517697", "0.6241996", "0.62171817", "0.6120335", "0.6020376", "0.60046065", "0.5989914", "0.5976357", "0.59599805", "0.59356403", "0.593493", "0.5926638", "0.5910144", "0.5907279", "0.5876382", "0.58661413", "0.5860118", "0.58418274", "0.58346725", "0.5811024", "0.5809604", "0.5803792", "0.5796558", "0.5793839", "0.57919496", "0.57877535", "0.576298", "0.57606846", "0.57591414", "0.5754762", "0.5754762", "0.5754762", "0.57303786", "0.57019365", "0.5694195", "0.5691639", "0.5673026", "0.5671021", "0.5666378", "0.56502473", "0.5632646", "0.56265557", "0.5610405", "0.56102973", "0.5607954", "0.55912524", "0.558252", "0.5567573", "0.5566273", "0.55650526", "0.55536103", "0.55521774", "0.5543476", "0.55426097", "0.554255", "0.5541597", "0.55336833", "0.55335194", "0.5531956", "0.5518673", "0.55141896", "0.55091524", "0.5507868", "0.5498121", "0.5479993", "0.54624856", "0.54519784", "0.5451514", "0.5439119", "0.5434336", "0.54097563", "0.5407305", "0.53886217", "0.53878784", "0.5372521", "0.53634816", "0.53543866", "0.5346706", "0.5346706", "0.5346706", "0.5346706", "0.5346706", "0.5346706", "0.5346706", "0.5346706" ]
0.5547146
67
TODO Autogenerated method stub
@Override public void onClick(View v) { putExtra(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onLocationChanged(Location loc) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStatusChanged(String provider, int status, Bundle extras) { }
{ "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
Check if no view has focus:
private void hideKeyboard() { View view = this.getCurrentFocus(); if (view != null) { InputMethodManager inputManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean m36208d(View view) {\n return view != null && view.hasWindowFocus();\n }", "public boolean hasFocus() {\n return hasFocus;\n }", "@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}", "boolean hasFocus() {\n\t\t\tif (text == null || text.isDisposed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn text.getShell().isFocusControl() || text.isFocusControl();\n\t\t}", "private static boolean m36209e(View view) {\n return view == null || !view.isShown();\n }", "public boolean hasFocus() {\n\t\tif (!isValid()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getShell().isFocusControl() || proposalTable.isFocusControl()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (infoPopup != null && infoPopup.hasFocus()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isFocused() {\n/* 807 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isOutOfFocus() {\n\t\treturn isOutOfFocus;\n\t}", "boolean isTestAlwaysFocus();", "public boolean isFocusAvailable() {\r\n if (!isEnabled() || !isRequestFocusEnabled() || !isFocusable() || !isShowing())\r\n return false;\r\n else {\r\n Window modal = getDesktop().getModalWindow();\r\n if (modal!=null && modal!=this && modal.isVisible()) {\r\n return this.isDeepChildOf(modal);\r\n }\r\n }\r\n return true;\r\n }", "public boolean isFocus() {\n\t\tif(lfocus.getText().equals(\"取消关注\"))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tlfocus.setText(\"取消关注\");\n\t\treturn false;\n\t}", "boolean isFocused() {\n\t\tif (state != State.ROTATE)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean hasActiveView();", "boolean hasClickView();", "protected void onFocusGained()\n {\n ; // do nothing. \n }", "public boolean isFocusTraversable()\n {\n return false;\n }", "public boolean getViewMissing() {\n return view == null;\n }", "public boolean isFocusable() {\n/* 784 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isFocusable() {\r\n\t\treturn true;\r\n\t}", "@Ignore(\"b/72154153\")\n @Test\n public void testFocusedViewInNormalCase() {\n controller.menuHelper.showMenu();\n controller.menuHelper.assertNavigateToPlayControlsRow();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n }", "@Override\r\n public void onFocusChange(final View aView, final boolean hasFocus) {\n }", "public boolean isAccessibilityFocused() {\n/* 853 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final boolean mo5379l() {\n RecyclerView recyclerView = this.f9709b;\n return recyclerView != null && recyclerView.hasFocus();\n }", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }", "private void assertStreamItemViewNotFocusable() {\n assertNotNull(\"should have a stream item\", mView);\n assertFalse(\"should not be focusable\", mView.isFocusable());\n }", "private void checkSearchViewExists() {\n onView(withId(R.id.searchView)).check(matches(isDisplayed()));\n }", "public boolean chatFocused(){\n\t\tTextField tf = nifty.getScreen(\"hud\").findNiftyControl(\"chatText\",TextField.class);\n\t\treturn tf.hasFocus();\n\t}", "public boolean hasBindView() {\n return mBindViewId != -1;\n }", "protected void onFocusLost()\n {\n ; // do nothing. \n }", "@Override\n public boolean isFocusable() {\n return false;\n }", "@Override\n\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\n\t}", "public boolean getFocused() {\n return getPolymerElement().getFocused();\n }", "public boolean gotFocus(Event e, Object arg) {\n return true;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}", "private void assertStreamItemViewFocusable() {\n assertNotNull(\"should have a stream item\", mView);\n assertTrue(\"should be focusable\", mView.isFocusable());\n }", "@Override\n \t\tpublic void onFocusChange(View v, boolean hasFocus) {\n \t\t}", "public boolean A0X(View view) {\n View view2;\n if (!(this instanceof AppBarLayout.BaseBehavior)) {\n return false;\n }\n WeakReference weakReference = ((AppBarLayout.BaseBehavior) this).A04;\n return weakReference == null || (view2 != null && view2.isShown() && !view2.canScrollVertically(-1));\n }", "public boolean isFocusable() {\r\n return focusable;\r\n }", "private static boolean m36212h(View view) {\n return view.isShown() && ((double) view.getAlpha()) > 0.0d;\n }", "boolean isValid(View view);", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n\n Log.e(\"tag\", String.valueOf(hasFocus));\n }", "boolean isInview();", "public boolean isAtTop() {\n return null != mListView && mListView.getFirstVisiblePosition() == 0;\n }", "public void focusLost(FocusEvent fe) {\n\t\tif (isVisible())\n\t\t\trequestFocus();\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\n View v = getCurrentFocus();\n if ( v instanceof EditText) {\n Rect outRect = new Rect();\n v.getGlobalVisibleRect(outRect);\n if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {\n v.clearFocus();\n hideKeyboard();\n }\n }\n }\n return super.dispatchTouchEvent( event );\n }", "public abstract @Nullable View getKeyboardFocusView();", "public void focus() {}", "private static boolean m36207c(View view) {\n return VERSION.SDK_INT >= 19 ? view != null && view.isAttachedToWindow() : (view == null || view.getWindowToken() == null) ? false : true;\n }", "boolean hasFeedPlaceholderView();", "private boolean testFocusability(Component aComponent) {\n return focused.contains(aComponent);\n }", "public final boolean isFocusSearchDisabled() {\n return mLayoutManager.isFocusSearchDisabled();\n }", "@Override\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\ttry {\n\t\t\tsuper.onWindowFocusChanged(hasFocus);\n\t\t} catch (NullPointerException npe) { }\n\t}", "public void focusLost(FocusEvent arg0) {\r\n\t\thelpActive = false;\r\n\t\tpopup.setVisible(false);\r\n\t}", "public void loseFocus(){\r\n\t//\tthis.setId(\"single-image-widget\");\r\n//\t\t((ColumnViewPane) this.getParent()).refresh();\r\n\t\thasFocus = false;\r\n\t}", "public boolean isEditingFocus() {\n\t\treturn editingFocus;\n\t}", "void requestSearchViewFocus();", "@Override\r\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\tsuper.onWindowFocusChanged(hasFocus);\r\n\t\tLog.d(\"hasFocus\", String.valueOf(hasFocus));\r\n\t\t//MainActivity.exitHandeler(this, hasFocus);\r\n\t}", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_eve.isFocused()) {\n et_eve.setText(null);\n et_eve.requestFocus();\n\n }\n\n }", "public void tryLockFocus() {\n }", "public boolean isScreenReaderFocusable() {\n/* 1331 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showKeyboard();\n else {\n hideKeyboard();\n }\n\n }", "public boolean isValidateRoot() {\n\tComponent parent = getParent();\n\tif (parent instanceof JViewport) {\n\t return false;\n\t}\n return true;\n }", "protected boolean isActiveAdView(View view) {\r\n\t\t\tboolean ret = false;\r\n\t\t\tif (view != null) {\r\n\t\t\t\tif (view.getVisibility() != View.GONE) {\r\n\t\t\t\t\tret = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}", "private static boolean m36214j(View view) {\n return VERSION.SDK_INT < 19 || view.getBackground() == null || view.getBackground().getAlpha() == 0;\n }", "private boolean isFirstView(int viewIndex){\r\n\t\treturn viewIndex == 0;\r\n\t}", "public static boolean hasFocus(Control control) {\n\t\tif (control.isFocusControl())\n\t\t\treturn true;\n\t\tif (control instanceof Composite)\n\t\t\tfor (Control child : ((Composite) control).getChildren())\n\t\t\t\tif (hasFocus(child))\n\t\t\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean isLocalMenuActive(JTextField field) {\n Window window = SwingUtilities.getWindowAncestor(field);\n if (window != null) {\n Component comp = window.getFocusOwner();\n return comp != null && (comp instanceof JMenuItem);\n }\n return false;\n }", "public void testFocusListener() throws Exception\n {\n checkFormEventListener(FOCUS_BUILDER, \"FOCUS\");\n }", "boolean hasSearchTermView();", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t\tfocusLost = false;\n\t\t\n\t}", "@Override\n\tpublic void focusLost(FocusEvent arg0) {\n\t\tfocusLost = true;\n\t\t\n\t}", "boolean wasShownBefore(MultiViewElement element) {\n return shownElements.contains(element);\n }", "public boolean hasSelectionLimit()\n {\n return (this.getSelectionLimit() > 0L);\n }", "boolean hasCallView();", "public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }", "public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }", "@JSProperty\n boolean isAutofocus();", "@Override\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\tsuper.onWindowFocusChanged(hasFocus);\n\t}", "public boolean isFocusTraversable() {\n return true; // Not supported for MenuComponents\n }", "@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}", "public final boolean isFocusableWindow() {\n if (!getFocusableWindowState()) {\n return false;\n }\n // All other tests apply only to Windows.\n if (this instanceof Frame || this instanceof Dialog) {\n return true;\n }\n // A Window must have at least one Component in its root focus\n // traversal cycle to be focusable.\n if (getFocusTraversalPolicy().getDefaultComponent(this) == null) {\n return false;\n }\n // A Window's nearest owning Frame or Dialog must be showing\n // on the screen.\n for (Window owner = getOwner(); owner != null;\n owner = owner.getOwner()) {\n if (owner instanceof Frame || owner instanceof Dialog) {\n return owner.isShowing();\n }\n }\n return false;\n }", "public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }", "boolean isSetSearchWindowStart();", "public boolean getShowFocusedControl() {\n checkWidget();\n return showFocusedControl;\n }", "void focus();", "void focus();", "@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_UP) {\n View v = getCurrentFocus();\n if (v instanceof EditText) {\n Rect outRect = new Rect();\n v.getGlobalVisibleRect(outRect);\n if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) {\n v.clearFocus();\n InputMethodManager imm =\n (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n }\n }\n return super.dispatchTouchEvent(event);\n }", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}", "private void check_displaysInputOverlay() {\n onView(withId(R.id.voiceInput))\n .check(matches(isDisplayed()));\n // the permission overlay should not\n onView(withId(R.id.voicePermission))\n .check(doesNotExist());\n }", "boolean isNilSearchWindowStart();", "public void verifyTabInViewMode() {\n\t\tmoveToElement(addIconDisabled);\n\t\tString value=addIconDisabled.getAttribute(\"disabled\");\n\t\tif(value.contains(\"disabled\")) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}", "private void checkIfEmpty() {\n\n if (emptyView != null && recyclerView.getAdapter() != null) {\n\n boolean emptyViewVisible = recyclerView.getAdapter().getItemCount() == 0;\n Log.d(Utility.LOG_TAG, \" Enabling empty view for list : No data found \" );\n emptyView.setVisibility(emptyViewVisible ? View.VISIBLE : View.GONE);\n recyclerView.setVisibility(emptyViewVisible ? View.GONE : View.VISIBLE);\n }\n }", "public boolean isTextListFocused() {\n\t\treturn jpIntroduceNameList.isRequestFocusEnabled();\n\t}", "public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }", "@Test\n public void testFocusedViewWithDisabledActionForward() {\n // Fast forward button\n controller.pressKeyCode(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD);\n controller.menuHelper.assertWaitForMenu();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n\n // Next button\n controller.pressKeyCode(KeyEvent.KEYCODE_MEDIA_NEXT);\n controller.menuHelper.assertWaitForMenu();\n assertButtonHasFocus(BUTTON_ID_PLAY_PAUSE);\n controller.pressBack();\n }", "private void requestFocus(View view) {\n if (view.requestFocus()) {\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n }\n }", "public void focusLost(FocusEvent e) { }", "@Override\r\n public boolean dispatchTouchEvent(MotionEvent event) {\n\r\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\r\n View v = getCurrentFocus();\r\n if (v instanceof EditText) {\r\n Rect outRect = new Rect();\r\n v.getGlobalVisibleRect(outRect);\r\n if (!outRect.contains((int) event.getRawX(), (int) event.getRawY())) {\r\n v.clearFocus();\r\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\r\n }\r\n }\r\n }\r\n return super.dispatchTouchEvent(event);\r\n }", "boolean getStartupFocusPref();", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n super.onWindowFocusChanged(hasFocus);\n// if (hasFocus) {\n// refreshContent();\n// }\n }" ]
[ "0.752144", "0.71540445", "0.71503836", "0.71252257", "0.6989558", "0.6839896", "0.6835727", "0.68034774", "0.67644054", "0.6644914", "0.65743554", "0.65302986", "0.6448699", "0.643322", "0.6394429", "0.6380685", "0.63306206", "0.6325382", "0.63178706", "0.62391496", "0.6223977", "0.6201778", "0.61960095", "0.6158201", "0.6143344", "0.612933", "0.61178684", "0.61103886", "0.6104413", "0.60981226", "0.6087126", "0.603522", "0.6024944", "0.6023977", "0.59918153", "0.5985244", "0.59648156", "0.59205526", "0.5911518", "0.59085816", "0.59076524", "0.5888053", "0.58858275", "0.58827275", "0.5881584", "0.58203596", "0.5816772", "0.5812023", "0.5792801", "0.5790547", "0.57865393", "0.5743663", "0.57351035", "0.57155186", "0.57007796", "0.5681492", "0.5674929", "0.566964", "0.5663622", "0.56635016", "0.5658461", "0.56490713", "0.56438804", "0.56405014", "0.5635584", "0.56169415", "0.56164956", "0.5610485", "0.56053483", "0.56009", "0.55997497", "0.5594797", "0.55941755", "0.55915993", "0.55841476", "0.5569161", "0.5569161", "0.55656046", "0.5561243", "0.5559877", "0.55588627", "0.55506766", "0.5537594", "0.55346745", "0.55342054", "0.55291754", "0.55291754", "0.55161846", "0.55096024", "0.54904634", "0.54857725", "0.54837716", "0.54804033", "0.5475556", "0.54703707", "0.546999", "0.5466797", "0.54604113", "0.54593796", "0.5456927", "0.5450749" ]
0.0
-1
Creating an instance of Geocoder class
@Override protected List<Address> doInBackground(String... locationName) { Geocoder geocoder = new Geocoder(getBaseContext()); List<Address> addresses = null; try { // Getting a maximum of 3 Address that matches the input text addresses = geocoder.getFromLocationName(locationName[0], 3); } catch (IOException e) { e.printStackTrace(); } return addresses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GeocodingException() {\n\t}", "public static GeoCoderInterface createGeoCoder(){\n\t\tif (Config.default_geo_api.equals(OSM)){\n\t\t\t//TODO: implement\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}else if (Config.default_geo_api.equals(GOOGLE)){\n\t\t\treturn new GeoCoderGoogle();\n\t\t}else if (Config.default_geo_api.equals(GRAPHHOPPER)){\n\t\t\treturn new GeoCoderGraphhopper();\n\t\t}else{\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}\n\t}", "@Test\n public void test3() throws Exception {\n GeoCoder g = new GeoCoder();\n String zip = \"12028\";\n String state = \"New York\";\n String city = \"Buskirk\";\n String address = \"\";\n g = g.geoCoding(address, city, state, zip);\n }", "@Test\n public void test2() throws Exception {\n GeoCoder g = new GeoCoder();\n String country = \"Saint Clair\";\n String zip = \"35004\";\n String state = \"Alabama\";\n String city = \"Moody\";\n String address = \"\";\n g.geoCoding(address, city, state, zip);\n }", "public GeocodingGoogle() throws Exception{\n //lisdataFileRead();\n //findLocationNameFromApi();\n lisdataDBReadToGoogleAPIAccess();\n }", "Geq createGeq();", "public DataGeocoderImpl() {\r\n\t\tmanager = DALLocator.getDataManager();\r\n\t}", "@Test\n public void testLocation() throws Exception {\n GeoCoder g = new GeoCoder();\n String location = \"Eastern,NY\";\n g.geoCoding(location);\n }", "private GeoUtil()\n\t{\n\t}", "private LocationContract() {}", "public Country() {}", "public interface GeocodeService {\n\n /**\n * Gets a list of possible {@link org.gbif.geocode.api.model.Location}s for coordinates.\n *\n * @return a list of Locations that fit the provided coordinates in no particular order\n */\n public List<Location> get(Double latitude, Double longitude, Double uncertaintyDegrees, Double uncertaintyMeters);\n\n /**\n * Gets a list of possible {@link org.gbif.geocode.api.model.Location}s for coordinates.\n *\n * @return a list of Locations that fit the provided coordinates in no particular order\n */\n public List<Location> get(Double latitude, Double longitude, Double uncertaintyDegrees, Double uncertaintyMeters, List<String> layers);\n\n /**\n * Gets a PNG bitmap suitable for using as a client-side cache/lookup table.\n */\n public byte[] bitmap();\n}", "public Location() {\n }", "public StreetAddress() {}", "public Address() {}", "public Address(String street, String city, String zipCode, String country)\n {\n //reference the object classes constructors\n this.street = street;\n this.city = city;\n this.zipCode = zipCode;\n this.country = country;\n }", "public Address() {\n }", "public Address() {\n }", "public MyLocation() {}", "@Override\n protected Void doInBackground(Void... voids) {\n\n\n Geocoder gc = new Geocoder(MainActivity.this);\n\n Log.d(\"florianBurel\", \"gc - isPresent : \" + (gc.isPresent() ? \"YES\" : \"NO\"));\n\n try {\n List<Address> addresses = gc.getFromLocation(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude(), 1);\n\n Log.d(\"florianBurel\", addresses.size() + \" addresses found\");\n\n //city.setName(addresses.get(0).getLocality());\n\n } catch (IOException e) {\n city.setName(\"Unknown Location\");\n }\n\n\n\n\n return null;\n }", "public Address() {\n\t}", "public Location() {\n\t}", "public Location() {\r\n \r\n }", "public MKMapView() {}", "private ZipCodes() {}", "private void init(Bundle savedInstanceState) {\n googleApiClient = new GoogleApiClient.Builder(getContext())\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n geocoder = new Geocoder(getContext(), Locale.getDefault());\n }", "public Address() {\n \t\n }", "private LocationService() {\n }", "public Country (String instanceName)\n {\n name = instanceName;\n }", "public MapContainer() {\n this(new OpenStreetMapProvider());\n }", "public static SolrGeocoder make_geocode(URL url, ObjectMapper json) throws Exception\n {\n SolrResponse rep = json.readValue(url, SolrResponse.class);\n return rep.response;\n }", "public addressBean() {\n }", "public City() {\n }", "public Address() {\r\n\t\tsuper();\r\n\t}", "public GPS newInstace(@Nullable Bundle bundle){\n return new GPS();\n }", "public GeotiffDataSource() {}", "public LocationData()\n {\n }", "public City() {\n\t}", "public City() {\n\t}", "public Address() {\n\t\tsuper();\n\n\t}", "Location createLocation();", "Location createLocation();", "Location createLocation();", "Address createAddress();", "public Region() { }", "public RoadTest()\n {\n }", "private LocatorFactory() {\n }", "public static GeoLocalization getInstance() {\n return geoLocInstance;\n }", "public GoogleSearch() {\n\n\n }", "public Region() {\n }", "public CustomersByCountry(){\n\n }", "public LocationBuilder() {\n super(\"locations\");\n }", "private Geo getGeoForAddress(String address) {\n Address addr = daDataStandartization.cleanAddress(address);\n Geo geo = new Geo();\n geo.setLatitude(addr.getGeoLat());\n geo.setLongitude(addr.getGeoLon());\n return geo;\n }", "public CityResult() {\n\n }", "public Address()\n\t{\n\t\tCity = \"?\";\n\t\tState = \"?\";\n\t}", "public Location(String store_name, String store_location, String address, String city, String state, String zip_code, double latitude, double longitude, String county)\n\t{\n super();\n this.store_name = store_name;\n this.store_location = store_location;\n this.address = address;\n this.city = city;\n this.state = state;\n this.zip_code = zip_code;\n this.latitude = latitude;\n this.longitude = longitude;\n this.county = county;\n }", "City(int 1_x_coordinate, int 1_y_coordinate, String name_coordinate){\n x_coordinate = 1_x_coordinate;\n y_coordinate = 1_y_coordinate;\n city_name = name_coordinate;\n }", "public GoogleApiA() {}", "public PlaceBasicResult() {\n }", "public ProductLocation() {\n }", "@Test\n void getGeoCodingInfoFromAddress() throws URISyntaxException, IOException {\n System.out.println(MapUtils.getGeoCodingInfoFromAddress(\"350 W 88th st, New York, NY\"));\n }", "public PostalCodeDataBase()\n {\n codeToCityMap = new HashMap<String, Set<String>>();\n // additional instance variable(s) to be initialized in part (b)\n }", "public Surgeon() {\n }", "public LocationService(String name) {\n super(name);\n }", "@Override\r\n\t\tpublic GooglePlaces createFromParcel(Parcel source) {\n\t\t\treturn new GooglePlaces(source);\r\n\t\t}", "public Address(String street, String townORcity, String postcode) {\r\n this.street = street;\r\n this.townORcity = townORcity;\r\n this.postcode = postcode;\r\n }", "public Country(String aName, int anArea)\n {\n name = aName;\n area = anArea;\n }", "public void initMap() {\r\n\r\n\t\tproviders = new AbstractMapProvider[3];\t\r\n\t\tproviders[0] = new Microsoft.HybridProvider();\r\n\t\tproviders[1] = new Microsoft.RoadProvider();\r\n\t\tproviders[2] = new Microsoft.AerialProvider();\r\n\t\t/*\r\n\t\t * providers[3] = new Yahoo.AerialProvider(); providers[4] = new\r\n\t\t * Yahoo.RoadProvider(); providers[5] = new OpenStreetMapProvider();\r\n\t\t */\r\n\t\tcurrentProviderIndex = 0;\r\n\r\n\t\tmap = new InteractiveMap(this, providers[currentProviderIndex],\r\n\t\t\t\tUtilities.mapOffset.x, Utilities.mapOffset.y,\r\n\t\t\t\tUtilities.mapSize.x, Utilities.mapSize.y);\r\n\t\tmap.panTo(locationUSA);\r\n\t\tmap.setZoom(minZoom);\r\n\r\n\t\tupdateCoordinatesLimits();\r\n\t}", "@Test\n public void constructor(){\n /**Positive tests*/\n Road road = new Road(cityA, cityB, 4);\n assertEquals(road.getFrom(), cityA);\n assertEquals(road.getTo(), cityB);\n assertEquals(road.getLength(), 4);\n }", "public Address createAddress(String address);", "private Road()\n\t{\n\t\t\n\t}", "public static Builder newBuilder() {\n return new AutoValue_GeoJsonFeature.Builder();\n }", "private static void testGetAddress(GeoCoderInterface geoCoder, Double latitude, Double longitude, String language){\n\t\tSystem.out.println(\"--From GPS:\");\n\t\tGeoCoderResult result = geoCoder.getAddress(latitude, longitude, language);\n\t\tprintGeoCoderResult(result);\n\t}", "Adresse createAdresse();", "public MapResult() {\n }", "public @NotNull Address newAddress();", "public addlocality() {\n initComponents();\n }", "private void searchmap() {\n String location = \"475 Dien bien phu\";\n //lcSearch;\n\n if (location != null && !location.equals(\"\")) {\n List<Address> lstAddress = null;\n try {\n lstAddress = geocoder.getFromLocationName(location, 1);\n System.out.print(lstAddress);\n if (lstAddress != null) {\n double lat = lstAddress.get(0).getLatitude();\n double lng = lstAddress.get(0).getLongitude();\n LatLng latLng = new LatLng(lat, lng);\n goToMaps(latLng);\n } else {\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public Population (Coordinate location){\n this.location = location;\n }", "private void getLocationFromAddress(Context context, String address) {\n Geocoder coder = new Geocoder(context);\n List<Address> coderResults;\n\n LatLng result = null;\n try {\n coderResults = coder.getFromLocationName(address, 2);\n if (coderResults == null) {\n Log.d(TAG, \"Failed to convert address to LatLng.\");\n Log.d(TAG, \"Address: \" + address);\n return;\n }\n\n Address location = coderResults.get(0);\n initialiseMap(\n new LatLng(location.getLatitude(), location.getLongitude()),\n address\n );\n } catch (IOException e) {\n //\n }\n }", "public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }", "public CountryTest()\n {\n }", "public Coordenada() {\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n Intent intent = getIntent();\n String postCode = intent.getStringExtra(\"Postcode\");\n\n Geocoder geocoder1 = new Geocoder(this);\n // try {\n\n // List<Address> addresses1 = geocoder1.getFromLocationName(postCode, 1);\n // if (addresses1 != null && !addresses1.isEmpty()) {\n // Address address1 = addresses1.get(0);\n // Use the address as needed\n // latitude_start = address1.getLatitude();\n // longitude_start = address1.getLongitude();\n // String message = \"Latitude: \"+address1.getLatitude()+\", Longitude: \"+address1.getLongitude();\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n//\n\n // } else {\n // Display appropriate message when Geocoder services are not available\n // Toast.makeText(this, \"Unable to geocode zipcode\", Toast.LENGTH_LONG).show();\n // latitude_start = 0;\n // longitude_start = 0;\n // }\n\n // LatLng latLng = new LatLng(latitude_start, longitude_start);\n\n // } catch (IOException e) {\n // // handle exception\n // }\n\n //mMap.addMarker(new MarkerOptions().position(new LatLng(currentLatitude, currentLongitude)).title(\"Current Location\"));\n // MarkerOptions options = new MarkerOptions()\n // .position(latLng)\n // .title(\"I am here!\");\n // mMap.addMarker(options);\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Moving Camera to a Location with animation\n\n // CameraPosition cameraPosition = new CameraPosition.Builder()\n // .target(latLng).zoom(12).build();\n\n // mMap.animateCamera(CameraUpdateFactory\n // .newCameraPosition(cameraPosition));\n\n\n }", "public static MyMapFragment newInstance() {\n MyMapFragment fragment = new MyMapFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public MapController() {\r\n\t}", "public Lat2() {\n initComponents();\n }", "Coordinate createCoordinate();", "public Coord addressToCoord(String localisation);", "public Address(int doorNo, String streetName, String city, String zip, String state, String country) {\r\n\t\tsuper();\r\n\t\tthis.doorNo = doorNo;\r\n\t\tthis.streetName = streetName;\r\n\t\tthis.city = city;\r\n\t\tthis.zip = zip;\r\n\t\tthis.state = state;\r\n\t\tthis.country = country;\r\n\t}", "public GeocodingException(String msg) {\n\t\tsuper(msg);\n\t}", "public Location(Context context){\n//\t\tthis.context = context;\n\t\tinit(context);\n\t}", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public Address(String street, String city, String state){\n this.street=street;\n this.city=city;\n this.state=state;\n\n }", "public RiftsawServiceLocator() {\n }", "private void createLocationCallback() {\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n\n mLastLocation = locationResult.getLastLocation();\n mRequestingLocationUpdate = false;\n\n startAddressLookupService();\n }\n };\n }", "public Enderecos() {\n \n }", "public MapOther() {\n }", "public BsAddressExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "@SuppressWarnings(\"unused\")\n public City() {\n }", "private void initialiseMap(LatLng location, String address) {\n try {\n this.googleMap.addMarker(\n new MarkerOptions().position(location).title(address));\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLng(location));\n this.googleMap.moveCamera(CameraUpdateFactory.zoomTo(16));\n\n Log.d(TAG, \"Map initialised successfully.\");\n } catch (IllegalArgumentException e) {\n Log.w(TAG, \"Cannot initialise map on null location.\", e);\n }\n }" ]
[ "0.682636", "0.66641825", "0.65198976", "0.6424532", "0.63989425", "0.61385816", "0.60598373", "0.60001343", "0.59979236", "0.59896755", "0.59627205", "0.5958791", "0.59531915", "0.5951015", "0.5945259", "0.59357035", "0.5933489", "0.5933489", "0.5919816", "0.5911884", "0.5893516", "0.58510035", "0.58401334", "0.5790088", "0.57757384", "0.5744093", "0.5731723", "0.5723807", "0.566917", "0.5649776", "0.5636934", "0.5556235", "0.5540655", "0.5533409", "0.5506498", "0.5492942", "0.5490976", "0.5464547", "0.5464547", "0.5461715", "0.54598564", "0.54598564", "0.54598564", "0.54553473", "0.5434061", "0.5429178", "0.54139006", "0.53965056", "0.5384885", "0.5365433", "0.53643644", "0.53536046", "0.53497356", "0.53235674", "0.53163534", "0.5311171", "0.53110844", "0.5308858", "0.526216", "0.52617806", "0.5260109", "0.5251463", "0.5243962", "0.5239872", "0.5237612", "0.5236761", "0.5229709", "0.52036285", "0.5203068", "0.5194688", "0.51925963", "0.5186684", "0.5181427", "0.51776123", "0.5146321", "0.5128315", "0.5120243", "0.5111988", "0.510469", "0.51043487", "0.5095684", "0.5084524", "0.5082148", "0.5080565", "0.50781244", "0.5074492", "0.5070304", "0.50691277", "0.50618213", "0.50601614", "0.5057842", "0.5055438", "0.50552726", "0.5051196", "0.5048196", "0.5045962", "0.5043901", "0.50400037", "0.50386566", "0.5030306", "0.50251263" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<BookshelfinfoEntity> queryAllBookshelfinfo() { return this.sqlSessionTemplate.selectList("bookshelfinfo.select"); }
{ "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 int updateBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) { return this.sqlSessionTemplate.update("bookshelfinfo.update", bookshelfinfoEntity); }
{ "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 int addBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) { return this.sqlSessionTemplate.insert("bookshelfinfo.add", bookshelfinfoEntity); }
{ "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
Constructs a new runtime exception.
public InvalidTinyExpressionException() { super("Not Found or Invalid Tiny Expression"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RuntimeMBeanException(RuntimeException paramRuntimeException, String paramString) {\n/* 66 */ super(paramString);\n/* 67 */ this.runtimeException = paramRuntimeException;\n/* */ }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public SyscallException() {\n\t\tsuper();\n\t}", "public Exception() {\n\t\t\tsuper();\n\t\t}", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "public Exception() {\n\tsuper();\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public OperationException() {\n super();\n }", "public Exception(String s) {\n\tsuper(s);\n }", "public IllegalArgumentException buildException() {\n return this.buildException(null);\n }", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public abstract RuntimeException getException(String message);", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public IORuntimeException(String message) {\n super(message);\n }", "public TypeException() {\n }", "public IORuntimeException(Throwable cause) {\n this(cause.getMessage(), cause);\n }", "public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }", "public CompilationException(Throwable t) {\n\t\tsuper(t);\n\t}", "public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }", "Constructor<? extends RefException> getExceptionConstructor(\n String qualifiedExceptionName,\n String qualifiedPackageName\n );", "public TechnicalException() {\r\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public Error() {\n }", "public OLMSException() {\r\n super();\r\n }", "protected abstract SVGException createSVGException(short type, String key, Object[] args);", "public SMSLibException() {}", "public MRFException() {\n\t\tsuper();\n\t}", "public ExecutionError(String message, Error cause) {\n/* 51 */ super(message, cause);\n/* */ }", "GitletException() {\n super();\n }", "public XDBBaseException() {\n }", "public ScheduleException() {\r\n }", "public HttpException() {\n }", "public MethodException(String informative) {\n super(VARIABLE_EXCEPTION_MESSAGE + informative);\n }", "static RuntimeException exception(EntityType entityType, ExceptionType exceptionType, String... args) {\n return SystemException.throwException(entityType, exceptionType, args);\n }", "public SysException(String message) {\r\n super(message);\r\n\r\n }", "public MyException(String message)\n { super(message); }", "public EmailException()\n {\n super();\n }", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public static TypeReference newExceptionReference(int exceptionIndex) {\n/* 282 */ return new TypeReference(0x17000000 | exceptionIndex << 8);\n/* */ }", "public KillException() {}", "public AbstractCodeGenException(final String message) {\n super(message);\n }", "public VelocityEmailException(String msg, Throwable nested)\n {\n super(msg, nested);\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public SyscallException(String message) {\n\t\tsuper(message);\n\t}", "public VelocityEmailException()\n {\n super();\n }", "public FullCarException() {\r\n super(\"\");\r\n }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "public TypeException(String msg, Throwable ex) {\n super(msg,ex);\n }", "public WrappedRuntimeException(Exception e)\n {\n\n super(e.getMessage());\n\n m_exception = e;\n }", "public OperationException(Throwable cause) {\n super(cause);\n }", "public SyscallException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public InvalidProcessException() {}", "public BusinessObjectException() {\r\n super();\r\n }", "public CompilationException(String message) {\n\t\tsuper(message);\n\t}", "public OperationException(String message) {\n super(message);\n }", "public IORuntimeException(String message, Throwable cause) {\n super(message, cause);\n }", "public VelocityEmailException(Throwable nested)\n {\n super(nested);\n }", "public CommunicationException() {\r\n\t\tsuper();\r\n\t}", "public RaiseException newFrozenError(String objectType, boolean runtimeError) {\n return newRaiseException(is1_9() || runtimeError ? getRuntimeError() : getTypeError(), \"can't modify frozen \" + objectType);\n }", "public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}", "public ArgumentException(String msg) {\n super(msg);\n }", "public InstanceOverflowException() {\n\t\tsuper();\n\t}", "public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public CRLException() {\n super();\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public SmppException() {\n\t\tsuper();\n\t}", "public QpidRAException()\n {\n super();\n }", "GitletException(String msg) {\n super(msg);\n }", "public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}", "public ScheduleException(String msg) {\r\n super(msg);\r\n }", "public static BillingServiceException createException(InvalidKeyException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" InvalidKeyException towards Azure: \" + e.getMessage());\r\n }", "public ResourceRuntimeException(String message) {\n super(message);\n }", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public DynamicDeckDynamoException() {\n }", "public SyntaxException() {\n\t\tsuper();\n\t}", "public PizzaException() {\n super(\"That pizza has been eaten.\");\n }", "public TypeException(String msg) {\n super(msg);\n }", "public TypeCheckException(String msg) {\n super(msg);\n }", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public ExceptionDate(String parMessage){\n\t\tsuper(parMessage);\n\t}", "private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}", "public CanyonException()\r\n {\r\n super();\r\n }", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "private ErrorFactory() {\r\n\t}", "public EmailException(String msg)\n {\n super(msg);\n }", "public MyMoneyException() {\r\n\t\tsuper();\r\n\t}", "public static BillingServiceException createException(URISyntaxException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" URISyntaxException towards Azure. Input: \" + e.getInput() +\r\n \" Reason: \" + e.getReason() + \" Message: \" + e.getMessage());\r\n }", "public OperationException(String message, Throwable cause) {\n super(message, cause);\n }", "public WrappedException(Exception e) {\n super(e);\n }", "static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }", "CoreException(int exit, String sourceClass, String sourceMethod, String message, int instruction, int pointer)\n {\n super(exit, sourceClass, sourceMethod, message + \" at instructions \" + instruction + \", memory pointer was at \" + pointer);\n }" ]
[ "0.68244356", "0.6662815", "0.6639329", "0.655207", "0.65445566", "0.6529871", "0.649653", "0.64456373", "0.6389582", "0.6366226", "0.6337654", "0.63092524", "0.6246431", "0.6182675", "0.61772054", "0.6164842", "0.6133074", "0.6124212", "0.6104694", "0.61026967", "0.60925496", "0.6064784", "0.60568076", "0.6054911", "0.60419184", "0.6039467", "0.6015669", "0.6014737", "0.60137886", "0.5970125", "0.59498876", "0.5943819", "0.5939579", "0.5934123", "0.59193677", "0.5906677", "0.58991975", "0.58977324", "0.5882445", "0.58794576", "0.5873301", "0.5859065", "0.5851929", "0.5845675", "0.58342004", "0.5824114", "0.5813291", "0.58065677", "0.57808", "0.57807285", "0.5776349", "0.5773874", "0.5773627", "0.5769743", "0.5766367", "0.5765517", "0.5762356", "0.5760022", "0.57565683", "0.574874", "0.57336926", "0.5723328", "0.5719155", "0.57151943", "0.5714694", "0.5713694", "0.5712337", "0.5704072", "0.5700741", "0.5694181", "0.56892276", "0.56884956", "0.56867796", "0.5684809", "0.5681578", "0.56794256", "0.5678403", "0.5673477", "0.5664573", "0.5663788", "0.5663311", "0.56601435", "0.5660127", "0.56592643", "0.56457186", "0.56438494", "0.56421417", "0.5639212", "0.5635474", "0.56354684", "0.5633563", "0.56331867", "0.56284183", "0.56283283", "0.5627367", "0.56243634", "0.5622407", "0.5622092", "0.5616378", "0.56158227", "0.5614894" ]
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.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 // 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 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 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\n if (item.getItemId() == 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\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\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\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\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.7904163", "0.7805678", "0.7766155", "0.77271765", "0.7631901", "0.76217514", "0.75843245", "0.7530648", "0.74879694", "0.74575084", "0.74575084", "0.7438342", "0.742121", "0.7402876", "0.7391506", "0.7386729", "0.7379215", "0.73702943", "0.7361895", "0.7355702", "0.7345358", "0.7341575", "0.7329735", "0.7328178", "0.7325559", "0.731858", "0.7316479", "0.7313328", "0.7303971", "0.7303971", "0.7301762", "0.72979945", "0.72931767", "0.7286697", "0.72830683", "0.7280712", "0.727849", "0.72597504", "0.7259679", "0.7259679", "0.7259679", "0.72593844", "0.7249859", "0.72235924", "0.7219315", "0.72173464", "0.7204549", "0.7199998", "0.7199193", "0.71932447", "0.7185174", "0.71770936", "0.71685654", "0.71678275", "0.7153802", "0.7153724", "0.7135714", "0.71352243", "0.71352243", "0.71292186", "0.7128784", "0.7124442", "0.712348", "0.712319", "0.7122235", "0.71173996", "0.71168983", "0.71168983", "0.71168983", "0.71168983", "0.7116834", "0.7116512", "0.7115111", "0.71124107", "0.71099734", "0.7109092", "0.7105732", "0.7099278", "0.70981765", "0.7094616", "0.70939064", "0.70939064", "0.7086415", "0.708213", "0.70807576", "0.7080365", "0.707349", "0.7068445", "0.7061929", "0.70604044", "0.70603245", "0.70515686", "0.70372933", "0.70372933", "0.7036149", "0.7035617", "0.7035617", "0.70319855", "0.70304316", "0.7029743", "0.7019147" ]
0.0
-1
Handle navigation view item clicks here.
public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_report) { // Handle the camera action } else if (id == R.id.nav_qanda) { } else if (id == R.id.nav_logout){ System.out.println("확인"); LoginManager.getInstance().logOut(); Intent intent = new Intent(getApplicationContext(), LoginActivity.class); startActivity(intent); finish(); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "void onMenuItemClicked();", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "void onItemClick(int position);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "void clickItem(int uid);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224", "0.66243863", "0.6624042", "0.66207093", "0.6602551", "0.6602231", "0.6599443", "0.65987265", "0.65935796", "0.6585869", "0.658491", "0.65811735", "0.65765643", "0.65751576", "0.65694076", "0.6561757", "0.65582377", "0.65581614", "0.6552827", "0.6552827", "0.6549224", "0.65389794", "0.65345114", "0.65337104", "0.652419", "0.652419", "0.6522521", "0.652146", "0.6521068", "0.6519354", "0.65165275", "0.65159816", "0.65028816", "0.6498054", "0.6498054", "0.64969087", "0.64937705", "0.6488544", "0.64867324", "0.64866185", "0.64865905", "0.6484047", "0.6481108", "0.6474686", "0.64628965", "0.64551884", "0.6446893", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64386237", "0.643595", "0.64356565", "0.64329195", "0.6432562", "0.6429554", "0.64255124", "0.64255124", "0.64121485", "0.64102405", "0.64095175", "0.64095175", "0.64094734", "0.640727", "0.64060104", "0.640229", "0.6397359", "0.6392996", "0.63921124", "0.63899696", "0.63885015", "0.63885015", "0.63873845", "0.6368818", "0.6368818", "0.63643163", "0.63643163", "0.63643163", "0.6358884" ]
0.0
-1
TODO Autogenerated method stub
@Override public CoachLoginSuccessInfo getCoachInfoByName(String loginName) { return dao.getCoachInfoByName(loginName); }
{ "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
JAVADOC Method Level Comments
public String myNodeId() { if (nodeId == null) { nodeId = UUID.randomUUID(); LOG.debug("My node id=" + nodeId.toString()); } return nodeId.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comment() {\n\t\t\n\t}", "@Override\n public void comment(String comment)\n {\n }", "String getDocumentation();", "String getDocumentation();", "@Override\n public String visit(JavadocComment n, Object arg) {\n return null;\n }", "@Override\n protected String getInitialDoc(PythonParser.FuncdefContext rawMethod) {\n return null;\n }", "void tag4() \n\t{\n\t\t/** javadoc_single_style_tag: This is a JavaDoc single style tag.\n\t}\n\t\n\t/** Test a JavaDoc multi style comment in souce code.\n\t * \n\t */\n\tvoid tag5() \n\t{\n\t\t/** \n\t\t * javadoc_multi_style_tag: This is a JavaDoc multi style tag.\n\t\t */\n\t}\n\t\n\t/** Test a tag not at the start of a line.\n\t * \n\t */\n\tvoid tag6() \n\t{\n\t\t/** \n\t\t * The tag \"not_start_of_line_tag\" should NOT be found.\n\t\t */\n\t}\n\t\n\t/** Test a tag variable in source code.\n\t * \n\t */\n\tvoid tag7() \n\t{\n\t\tint source_code_variable_tag;\n\t\t\n\t\tsource_code_variable_tag += 7;\n\t}\n\n}", "@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tmethod.add(comment.trim()); \n\t \tmethods.add(method);\n \t}\n \t}", "public String getSampleComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "String getComment();", "String getComment();", "Documentation createDocumentation();", "Documentation createDocumentation();", "public abstract ModuleDoc doc();", "public abstract String commandDocumentation();", "public interface CommentGenerator {\n\n void addConfigurationProperties(Properties properties);\n\n void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addFieldComment(Field field, IntrospectedTable introspectedTable);\n\n void addClassComment(JavaElement element, IntrospectedTable introspectedTable);\n\n void addDataServiceComment(JavaElement element, IntrospectedTable introspectedTable);\n\n void addClassAnnotation(JavaElement element);\n\n void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean markAsDoNotDelete);\n\n void addEnumComment(InnerEnum innerEnum, IntrospectedTable introspectedTable);\n\n void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable);\n\n void addDataServiceSaveMethodComment(Method method, IntrospectedTable introspectedTable);\n\n void addDataServiceQueryMethodComment(Method method, List<IntrospectedColumn> introspectedColumns, IntrospectedTable introspectedTable);\n\n void addGetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addJavaFileComment(CompilationUnit compilationUnit);\n\n void addComment(XmlElement xmlElement);\n\n void addRootComment(XmlElement rootElement);\n\n}", "JHtmlComment docTag(String tag);", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "@Override\n public void visit(ClassOrInterfaceDeclaration n, Object arg) {\n \tif(n.getJavaDoc()!=null){\n \t\tclassInfo.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tcomment = comment.replaceAll(\"(?s)\\\\*(.*)\",\"\");\n\t \tclassInfo.add(comment.trim()); \n \t}\n \t}", "@Override\n\tpublic void javadoc(JDefinedClass cls) {\n\n\t}", "public static void methodComment(StringBuffer buffer, List<String> comments) {\n\t\tfor(String comment : comments)\n\t\t\tbuffer.append(\"\\t\\t\\t\\t<comm cntt=\\\"\" + comment + \"\\\"/>\" + \"\\n\");\n\t}", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "java.lang.String getComments();", "public static String startMethod(String methodName, String visibility, String comment) {\n\t\treturn \"\\t\\t\\t<mth name=\\\"\" + methodName + \"\\\" access=\\\"\" + visibility + \"\\\" jdoc=\\\"\" + comment + \"\\\">\" + \"\\n\";\n\t}", "org.hl7.fhir.String addNewComments();", "JavadocToken nextToken();", "@Override\n public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {\n if (suppressAllComments) {\n return;\n }\n\n StringBuilder sb = new StringBuilder();\n\n field.addJavaDocLine(\"/**\");\n sb.append(\" * \");\n sb.append(introspectedColumn.getRemarks());\n field.addJavaDocLine(sb.toString());\n\n //addJavadocTag(field, false);\n\n field.addJavaDocLine(\" */\");\n }", "@Override\n public String visit(BlockComment n, Object arg) {\n return null;\n }", "String getComment() {\n final StringBuilder sb = new StringBuilder();\n sb.append(indent(1)).append(\"/**\").append(EOL);\n sb.append(indent(1)).append(\" * \").append(\"{@code\").append(EOL);\n\n // Unwrapped so that you can search through the descriptor\n // file for a message and not have to worry about line breaks\n final String ws = formatString; // wrapText(formatString, 70);\n\n final String[] sa = ws.split(EOL);\n for (final String s : sa) {\n sb.append(indent(1)).append(\" * \").append(s).append(EOL);\n }\n\n sb.append(indent(1)).append(\" * \").append(\"}\").append(EOL);\n sb.append(indent(1)).append(\" */\").append(EOL);\n return sb.toString();\n }", "public void comment(String data);", "public void javadocStarted() { }", "public void javadocStarted() { }", "public abstract String getResolvedDocComment(Element forElement) throws IOException;", "public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "@Override\n public String toString() {\n return getClass().getSimpleName() + \": call $\" + name.signatureName + (comment == null ? \"\" : \" ;; \\\"\" + comment + \"\\\"\");\n }", "public void saveBeforeJavadoc() { }", "public void saveBeforeJavadoc() { }", "void info() {\n System.out.println(\"E16_OverloadJavaDoc is \" + height + \" feet tall\");\n }", "int getCommentsMode();", "public abstract void description();", "@Override\n public void addFieldComment(Field field, IntrospectedTable introspectedTable) {\n if (suppressAllComments) {\n return;\n }\n\n StringBuilder sb = new StringBuilder();\n field.addJavaDocLine(\"/**\");\n sb.append(\" * \");\n if (CommonConstant.serialVersionUID.equals(field.getName())) {\n sb.append(CommonConstant.serialVersionUID);\n } else {\n sb.append(introspectedTable.getFullyQualifiedTable());\n }\n field.addJavaDocLine(sb.toString());\n field.addJavaDocLine(\" */\");\n }", "@Override\n public void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable) {\n //添加方法注释\n CommentUtils.addGeneralMethodComment(method, introspectedTable);\n }", "public static int writeMethod(Element element, PrintWriter writer){\n String tag = \"\";\n String paramreturn = \"\";\n String text = \"\";\n try {\n String docs = element.select(\"div.block\").first().text();\n Elements dt_dd = element.getElementsByTag(\"dl\").first().children();\n docs += dt_dd.size() > 1 ? \"\\n\" : \"\";\n for (int i = 0; i < dt_dd.size(); i++) { //skipping the first because that is the word \"\n text = dt_dd.get(i).text();\n if (text.equals(\"Parameters:\")) {\n tag = \"@param \";\n continue;\n }\n if (text.equals(\"Returns:\")) {\n tag = \"@return \";\n continue;\n }\n if (text.equals(\"Throws:\")) {\n tag = \"@throws \";\n continue;\n }\n if (tag.equals(\"\")) continue;\n paramreturn += \" \\n\" + tag + dt_dd.get(i).text().replace(\" - \", \" \");\n }\n writer.print(tab(comment(docs + paramreturn, true),1));\n }\n catch (java.lang.NullPointerException e){}\n String header = getPreText(element);\n String body = header.contains(\"abstract\") ? \";\\n\" : \" {\\n \\n}\\n\"; //end in semicolon if abstract\n writer.println(tab(header + body,1)); //public int FUNCNAME {\n return 0;\n }", "@Override\n\t\tpublic String next() {\n\n\t\t\tString token = super.next();\n\n\t\t\twhile (isJavaDocToken(token))\n\t\t\t\ttoken = super.next();\n\n\t\t\treturn token;\n\t\t}", "Javadoc build(CommonComponent.Builder<?, ?> componentBuilder) {\n if (componentBuilder instanceof Method.Builder methodBuilder) {\n return build(methodBuilder);\n }\n return build();\n }", "@Override\n public void addComment(XmlElement xmlElement) {\n\n }", "@Override\n public void addGetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {\n\n }", "public conversorDOC(){\n }", "public boolean isJavaDoc(String line){\n boolean lineIsJavaDoc = false;\n if(this.inJavaDoc){\n lineIsJavaDoc = true;\n }\n if(line.contains(\"/**\")){\n lineIsJavaDoc = true;\n inJavaDoc = true;\n }\n if(line.contains(\"*/\") && this.inJavaDoc){\n inJavaDoc = false;\n inStarComment = false;\n }\n return lineIsJavaDoc;\n }", "@SuppressWarnings(\"unchecked\")\n private static String getWrapperComment(String methodName, String enumName, boolean isOverridden) {\n StringBuilder str = new StringBuilder();\n\n str.append(C.BEGIN_WRAPPER + \"[\" + objectClassName + \"_\" + methodName + \"_\");\n if (isOverridden)\n str.append(objectClassName + \"_\");\n str.append(\"_\");\n\n if (arguments != null && !arguments.isEmpty()) {\n if (arguments.get(0) instanceof CArgument) {\n for (CArgument arg : (List<CArgument>) arguments)\n str.append(getWrapperCommentArgument(arg.getType().toString()));\n } else if (arguments.get(0) instanceof XArg) {\n for (XArg arg : (List<XArg>) arguments)\n str.append(getWrapperCommentArgument(arg.getType()));\n }\n }\n if (enumName != null)\n str.append(\"_\" + objectClassName + \"_\" + enumName);\n str.append(\"]\" + C.N);\n\n return str.toString();\n\n }", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "java.lang.String getSignatureComments();", "@Override\n public void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {\n\n }", "@Override\n public void addJavaFileComment(CompilationUnit compilationUnit) {\n\n }", "@Override\r\n public String description() {\r\n return \"<html>Create a new method in class A that delegates the call to object B. <br/>\" +\r\n \"Now the client doesn’t know about, or depend on, class B. </html>\";\r\n }", "void printJavaDocBody(String doc) throws IOException{\n String docClean = doc.trim()\n .replace(\"\\t\", \"\")\n .replace(\"*/\", \"* /\");\n\n for (String s : docClean.split(\"[\\\\n\\\\r]+\")) {\n emit(\" * \" + s);\n }\n }", "@Override\n public void setDescription(String arg0)\n {\n \n }", "void info(String s) {\n System.out.println(s + \": E16_OverloadJavaDoc is \"\n + height + \" feet tall\");\n }", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "public String getComment() {\n return description;\n }", "public interface NoteAlg extends Alg {\n\n\t\n\t/**\n\t * Noting some hinting usage.\n\t * @return some hinting usage.\n\t */\n\tString note();\n\t\n\t\n}", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "org.hl7.fhir.String getComments();", "protected Map<String, String> getCommentForClassElement(\r\n\t\t\tString argWholdMethodComment) {\r\n\t\tif (StringUtils.isEmpty(argWholdMethodComment)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tMap<String, String> parameterMap = new HashMap<String, String>();\r\n\t\tString[] comments = StringUtils.split(argWholdMethodComment, '*');\r\n\r\n\t\t// Method's comment\r\n\t\tStringBuffer methdComment = new StringBuffer();\r\n\t\t// the return's comment\r\n\t\tStringBuffer returnComment = null;\r\n\r\n\t\tboolean hasSingle = false;\r\n\t\tboolean hasParam = false;\r\n\t\tboolean hasEcp = false;\r\n\t\tboolean hasReturn = false;\r\n\r\n\t\tString tempComment = null;\r\n\t\tString paramName = null;\r\n\t\tfor (int i = 0; i < comments.length; i++) {\r\n\t\t\ttempComment = comments[i].trim();\r\n\t\t\tif (!(LINE_BREAK.equals(tempComment) || TAB.equals(tempComment) || ENTER\r\n\t\t\t\t\t.equals(tempComment))) {\r\n\t\t\t\tif (tempComment.startsWith(PARAM_ANNOTATION) || hasParam) {\r\n\t\t\t\t\thasSingle = true;\r\n\t\t\t\t\thasParam = true;\r\n\t\t\t\t\tif (i < comments.length - 1\r\n\t\t\t\t\t\t\t&& comments[i + 1].trim()\r\n\t\t\t\t\t\t\t\t\t.startsWith(AT_ANNOTATAION)) {\r\n\t\t\t\t\t\thasParam = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (tempComment.startsWith(PARAM_ANNOTATION)) {\r\n\t\t\t\t\t\tString[] paramAndComments = StringUtils.split(\r\n\t\t\t\t\t\t\t\ttempComment, SPACE_CHAR);\r\n\t\t\t\t\t\tif (paramAndComments.length > 1) {\r\n\t\t\t\t\t\t\tparamName = paramAndComments[1];\r\n\t\t\t\t\t\t\tparameterMap.put(paramName, StringUtils.join(\r\n\t\t\t\t\t\t\t\t\tparamAndComments, EMPTY, 2,\r\n\t\t\t\t\t\t\t\t\tparamAndComments.length - 1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tparameterMap.put(paramName, parameterMap.get(paramName)\r\n\t\t\t\t\t\t\t\t+ LINE_BREAK + tempComment);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (tempComment.startsWith(THROWS_ANNOTATION) || hasEcp) {\r\n\t\t\t\t\thasSingle = true;\r\n\t\t\t\t\thasEcp = true;\r\n\t\t\t\t\tif (i < comments.length - 1\r\n\t\t\t\t\t\t\t&& comments[i + 1].trim()\r\n\t\t\t\t\t\t\t\t\t.startsWith(AT_ANNOTATAION)) {\r\n\t\t\t\t\t\thasEcp = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (tempComment.startsWith(THROWS_ANNOTATION)) {\r\n\t\t\t\t\t\tString[] paramAndComments = StringUtils.split(\r\n\t\t\t\t\t\t\t\ttempComment, SPACE_CHAR);\r\n\t\t\t\t\t\tif (paramAndComments.length > 1) {\r\n\t\t\t\t\t\t\tparamName = paramAndComments[1];\r\n\t\t\t\t\t\t\tparameterMap.put(paramName, StringUtils.join(\r\n\t\t\t\t\t\t\t\t\tparamAndComments, EMPTY, 2,\r\n\t\t\t\t\t\t\t\t\tparamAndComments.length - 1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tparameterMap.put(paramName, parameterMap.get(paramName)\r\n\t\t\t\t\t\t\t\t+ LINE_BREAK + tempComment);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (tempComment.startsWith(RETURN_ANNOTATION)\r\n\t\t\t\t\t\t|| hasReturn) {\r\n\t\t\t\t\thasSingle = true;\r\n\t\t\t\t\thasReturn = true;\r\n\t\t\t\t\tif (i < comments.length - 1\r\n\t\t\t\t\t\t\t&& comments[i + 1].trim()\r\n\t\t\t\t\t\t\t\t\t.startsWith(AT_ANNOTATAION)) {\r\n\t\t\t\t\t\thasReturn = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (tempComment.startsWith(RETURN_ANNOTATION)) {\r\n\t\t\t\t\t\treturnComment = new StringBuffer();\r\n\t\t\t\t\t\treturnComment.append(tempComment.substring(\r\n\t\t\t\t\t\t\t\tRETURN_ANNOTATION.length()).trim());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturnComment.append(LINE_BREAK);\r\n\t\t\t\t\t\treturnComment.append(tempComment);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (!tempComment.startsWith(AT_ANNOTATAION)\r\n\t\t\t\t\t\t&& !hasSingle) {\r\n\t\t\t\t\tif (methdComment.length() > 0) {\r\n\t\t\t\t\t\tmethdComment.append(LINE_BREAK);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmethdComment.append(tempComment);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tparameterMap.put(METHOD_COMMENT, methdComment.toString());\r\n\r\n\t\tif (returnComment != null) {\r\n\t\t\tparameterMap.put(RETURN_COMMENT, returnComment.toString());\r\n\t\t}\r\n\t\treturn parameterMap;\r\n\t}", "@Override\n public String visit(LineComment n, Object arg) {\n return null;\n }", "public abstract String description();", "public abstract String description();", "protected String extractDocumentation(AnnotatedBase element) {\n if (m_schemaCustom.isJavaDocDocumentation()) {\n StringWriter writer = new StringWriter();\n AnnotationElement anno = element.getAnnotation();\n if (anno != null) {\n FilteredSegmentList items = anno.getItemsList();\n for (int i = 0; i < items.size(); i++) {\n AnnotationItem item = (AnnotationItem)items.get(i);\n if (item instanceof DocumentationElement) {\n DocumentationElement doc = (DocumentationElement)item;\n List contents = doc.getContent();\n if (contents != null) {\n for (Iterator iter = contents.iterator(); iter.hasNext();) {\n Node node = (Node)iter.next();\n DOMSource source = new DOMSource(node);\n StreamResult result = new StreamResult(writer);\n try {\n s_transformer.transform(source, result);\n } catch (TransformerException e) {\n s_logger.error(\"Failed documentation output transformation\", e);\n }\n }\n }\n }\n }\n }\n StringBuffer buff = writer.getBuffer();\n if (buff.length() > 0) {\n \n // make sure there's no embedded comment end marker\n int index = buff.length();\n while ((index = buff.lastIndexOf(\"*/\", index)) >= 0) {\n buff.replace(index, index+2, \"* /\");\n }\n return buff.toString();\n }\n }\n return null;\n }", "@Override\n public String commandDocumentation() {\n return (\"Displays the documentation of various commands.\");\n }", "@Override\n\tpublic Object visit(ASTDoc node, Object data) {\n\t\tSystem.out.print(\"doc(\" + node.fileName + \")\");\n\t\treturn null;\n\t}", "org.hl7.fhir.String getDocumentation();", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\n\t/**\n\t * returns false because comments are disabled for classes\n\t * \n\t * @return false \n\t */\n\tpublic boolean hasComment() {\n\t\treturn false;\n\t}", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}", "@Override\n public void visit(FieldDeclaration n, Object arg) {\n \tArrayList<String> field = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n \t\tString declare = n.toString();\n \t\tdeclare = declare.replaceAll(\"(?s)(.*)private\", \"private\");\n \t\tdeclare = declare.replaceAll(\"(?s)=(.*)\", \"\");\n \t\tfield.add(declare.trim());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tfield.add(comment.trim()); \n\t \tfields.add(field);\n \t}\n \t}", "public void method() // trailing comment here\n {\n int a; /* non-trailing comment */ int b; /* trailing comment */\n // continuation trailing comment\n int c1; /* non-trailing comment */ int d2; /* trailing comment */\n // non-continuation comment\n }", "Builder addComment(String value);", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing \n\t */\n\tpublic String getOriginalCommentName() {\n\t\treturn \"\";\n\t}", "@Override\r\n\tpublic void getDescription(StringBuilder sb, int indent) {\n\t\t\r\n\t}", "private void addComment() {\r\n Editor classEditor = null;\r\n try {\r\n classEditor = curClass.getEditor();\r\n } catch (Exception e) {\r\n }\r\n if (classEditor == null) {\r\n System.out.println(\"Can't create Editor for \" + curClass);\r\n return;\r\n }\r\n\r\n int textLen = classEditor.getTextLength();\r\n TextLocation lastLine = classEditor.getTextLocationFromOffset(textLen);\r\n lastLine.setColumn(0);\r\n // The TextLocation now points before the first character of the last line of the current text\r\n // which we'll assume contains the closing } bracket for the class\r\n classEditor.setText(lastLine, lastLine, \"// Comment added by SimpleExtension\\n\");\r\n }", "List<DocumentationItem> documentation();", "String getMovementComments();", "public interface PHPDocTagKinds {\n\n public static final int ABSTRACT = 0;\n\n public static final int AUTHOR = 1;\n\n public static final int DEPRECATED = 2;\n\n public static final int FINAL = 3;\n\n public static final int GLOBAL = 4;\n\n public static final int NAME = 5;\n\n public static final int RETURN = 6;\n\n public static final int PARAM = 7;\n\n public static final int SEE = 8;\n\n public static final int STATIC = 9;\n\n public static final int STATICVAR = 10;\n\n public static final int TODO = 11;\n\n public static final int VAR = 12;\n\n public static final int PACKAGE = 13;\n\n public static final int ACCESS = 14;\n\n public static final int CATEGORY = 15;\n\n public static final int COPYRIGHT = 16;\n\n public static final int DESC = 17;\n\n public static final int EXAMPLE = 18;\n\n public static final int FILESOURCE = 19;\n\n public static final int IGNORE = 20;\n\n public static final int INTERNAL = 21;\n\n public static final int LICENSE = 22;\n\n public static final int LINK = 23;\n\n public static final int SINCE = 24;\n\n public static final int SUBPACKAGE = 25;\n\n public static final int TUTORIAL = 26;\n\n public static final int USES = 27;\n\n public static final int VERSION = 28;\n\n public static final int THROWS = 29;\n\n public static final int PROPERTY = 30;\n\n public static final int PROPERTY_READ = 31;\n\n public static final int PROPERTY_WRITE = 32;\n\n public static final int METHOD = 33;\n\n}", "public void testRemoveDescriptionHeader_12() {\n checkRemoveDescriptionHeader(\"Something\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\");\n }", "public E16_OverloadJavaDoc(int i) {\n System.out.println(\"Creating new E16_OverloadJavaDoc that is \"\n + i + \" feet tall\");\n height = i;\n }", "void createCommentWithAllSingleFileComments(String string);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);" ]
[ "0.7081584", "0.6908349", "0.6906563", "0.6906563", "0.68394625", "0.6762672", "0.6746507", "0.6638255", "0.65705705", "0.6555034", "0.6555034", "0.6555034", "0.6555034", "0.6555034", "0.6555034", "0.6552297", "0.647397", "0.6454341", "0.6454341", "0.6450465", "0.6450465", "0.64043635", "0.63502914", "0.6348103", "0.6348012", "0.6346756", "0.6343531", "0.6299579", "0.6270585", "0.623009", "0.6166698", "0.6134498", "0.61124754", "0.6110407", "0.6101492", "0.6083359", "0.6079133", "0.60566825", "0.60520935", "0.60520935", "0.60496914", "0.6048846", "0.60480744", "0.6043397", "0.6042479", "0.6042479", "0.6020937", "0.6013339", "0.5989492", "0.5955537", "0.5926894", "0.59252053", "0.5921386", "0.5908045", "0.5905949", "0.5904093", "0.5901458", "0.58992636", "0.58980924", "0.58941007", "0.58878726", "0.5883359", "0.58800405", "0.58612245", "0.58520555", "0.58444744", "0.5838538", "0.58208776", "0.58029467", "0.5783984", "0.5781761", "0.57702535", "0.5770093", "0.57647467", "0.5761128", "0.5761128", "0.5752163", "0.57417095", "0.57415354", "0.5739389", "0.57353735", "0.573341", "0.5725295", "0.57245725", "0.57141984", "0.57062966", "0.57007915", "0.5689159", "0.56740296", "0.5665736", "0.5659023", "0.5656294", "0.56559086", "0.5653145", "0.5651881", "0.56246835", "0.5604113", "0.5604113", "0.5604113", "0.5604113", "0.5604113" ]
0.0
-1
end of main() method Calculating XClosure Method
public static Set<Character> XClosure(FDs fd, Set<Character> x) { Set <Character> closure = new TreeSet<Character>(x); // take a new set object int size0 = 0; while(size0 < closure.size()) // it trues because closure has value of X // which contains intial characters whose closure we have to find ex: BHE { size0 = closure.size(); // left object contains left side of FDs which are keys // so add those attributes which are right side of keys from closure. // call getFDMap() // call keySet() which is in-built method of java // ex: find BHE closure. First it gets keys(which are at left side of FDs) of B, H, E individually or together // Now it adds all attribute from right side. And again check left side of all attributes we get at a first time from a loop // if we get another attributes which is a part of keys then it adds otherwise stops a loop and gives a final answer // Like, BHE closure: first check B into left side and if it is a part of a key then add right side of attributes in closure // B is part of key AB and from it we derives E but E is already in closure so it checks next // then check BE together and add I into closure // then check E and add G into closure // then check GI together and add H into closure // now there are not any other attribute from left side is same as closure so it stops and gives the final answer BHEIG. for( Set<Character> left : fd.getFDMap().keySet()) { if(closure.containsAll(left)) { closure.addAll(fd.getFDMap().get(left)); } } } // end of loop return closure; // return closure }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo57278c();", "void mo57277b();", "void mo67924c();", "public final void cpp() {\n }", "public void mo56167c() {\n }", "void mo80457c();", "public void mo1403c() {\n }", "public void mo21793R() {\n }", "void mo17012c();", "public void mo21792Q() {\n }", "void mo72114c();", "public void mo21779D() {\n }", "public static void main() {\n \n }", "public static void main(String[] args) {\n\n\tOops31 obj1=new Oops31(); //obj1 reference variable for the class Oops31\n\t\n\t\n\tobj1.dispay(10, 20);\n\tobj1.dispay(20, 20);\n\tobj1.dispay(50, 20);\n\tobj1.dispay(60, 20);\n\t\n\t}", "public void mo97906c() {\n }", "public void mo21791P() {\n }", "void mo21072c();", "public void mo21785J() {\n }", "public void mo21780E() {\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "public void mo5099c() {\n }", "static void testCaculator(){\n }", "public void mo21789N() {\n }", "private void yy() {\n\n\t}", "public void Main(){\n }", "public static void main()\n\t{\n\t}", "Context mo1490b();", "public final void cpp() {\n AppMethodBeat.m2504i(37039);\n if (this.qZg == null) {\n this.qZg = new C46235l(this.qZf.bnR, this.context, (FrameLayout) this.contentView);\n this.qZg.mo74249aZ();\n this.bnR = cpt();\n AppMethodBeat.m2505o(37039);\n return;\n }\n this.qZg.mo74251dl(this.qZf.bnR);\n AppMethodBeat.m2505o(37039);\n }", "public void mo21782G() {\n }", "public void mo97908d() {\n }", "public void mo21877s() {\n }", "void mo57275a();", "public static void main(String[] args) {\n\r\n\t\tInterest obj = Calculator.getInterest();\r\n\t\tSystem.out.println(obj.calcSimple(5000, 2, 4));\r\n\t\tSystem.out.println(obj.calcCompound(5000, 4, 3));\r\n\t\tSystem.out.println(obj.convertToBinary(12));\r\n\t\tSystem.out.println(obj.doSum(6,8,15));\r\n\t\tSystem.out.println(obj.doAvg(14,65,87));\r\n\t}", "void mo72113b();", "void mo119582b();", "void mo41083a();", "public void mo21786K() {\n }", "public static void main(String[] args) {\n String filename = \"\";\n Node root,standard_root;\n CseElement result;\n HashMap<Integer,ArrayList<CseElement>> control_structures;\n //Initialize variable DEBUG. True when debugging.\n boolean DEBUG = false;\n ArrayList<Node> outputs;\n //Get the filename from argument\n if(DEBUG == false & args.length ==0){\n System.out.println(\"Filename expected!..\");\n }\n else{\n filename = args[0];\n \n \n //Create the AST tree from user input file\n outputs = IOEditor.getList(filename);\n root = Tree.createTree(outputs);\n if(DEBUG == true){\n //Print and check the AST when debugging\n Tree.print(root);\n System.out.println(\"\\n\"); \n }\n //Get the Standaraize tree.\n standard_root = Tree.getST(root);\n if(DEBUG == true){\n //Print and check the standarize tree when debugging\n Tree.print(standard_root);\n }\n //Create the control structures for rpal code\n control_structures = Tree.preOrderTraversal(root);\n if(DEBUG == true){\n //Print and check the control structures when debugging\n System.out.println(control_structures);\n System.out.println(\"\");\n }\n // Evaluate the RPAL code using CSE machine\n CseMachine cm = new CseMachine(control_structures);\n try {\n //Get the resulted output\n result = cm.apply(DEBUG);\n if(result == null){\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(\"Final Result:- No return value\");\n }\n }\n else if(\"env\".equals(result.type)){\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(\"Final Result:- No return value\");\n }\n }\n else{\n if(DEBUG == true){\n //Check the result when debugging\n System.out.println(result.type +\" \"+result.value);\n }\n }\n } catch (Exception ex) {\n System.out.println(\"\\n\\n\"+ex+\"\\n\\n\");\n Logger.getLogger(Rpal.class.getName()).log(Level.SEVERE, null, ex);\n }\n } \n }", "public static void main(String[] args) {\n\t\t\n\t\tFibonocciseries fibObj=new Fibonocciseries();\n\t\tList<Integer> value = fibObj.fibmeth(21);\n\t\tSystem.out.println(value.toString());\n\t\t\t\n\t\tCharacterCount charCountObj=new CharacterCount();\n\t\tString[] xyz = { \"a\",\"b\",\"a\",\"c\",\"b\",\"c\",\"b\"};\n\t\tList<Integer> result1 = charCountObj.charCount(xyz);\n\t\tSystem.out.println(result1.toString());\n\t\t\n\t\t\n\t\tFizzBuzzPgm fizzBuzzObj=new FizzBuzzPgm();\n\t\tint[] Fizzbuzzvalues = {10,3,5,15};\n\t\tList<String> fzzBuzzReuslt = fizzBuzzObj.fizzBuzzMethod(Fizzbuzzvalues);\n\t\t\n\t\tDuplicateString duplicateObj=new DuplicateString();\n\t\tString[] DuplicateValues= {\"abc\",\"mno\",\"xyz\",\"pqr\",\"xyz\",\"def\",\"mno\"};\n\t\tList<String> DuplicateResult=duplicateObj.DuplicateMethod(DuplicateValues);\n\t\tSystem.out.println(DuplicateResult.toString());\n\t\t\n\t\tPalindromePgm PalindromeObj=new PalindromePgm();\n\t\tList<String> PalindromeResult=PalindromeObj.PalindromeMethod(24);\n\t\tSystem.out.println(PalindromeResult.toString());\n\t\t\n\t\tCalculatorPgm addVal = new CalculatorPgm();\n\t\tint resultAdd = addVal.add(20,10);\n\t\tSystem.out.println(\"Calc prgm add output=\"+resultAdd);\n\t\t\n\t\tCalculatorPgm subVal = new CalculatorPgm();\n\t\tint resultsub = subVal.add(300,10);\n\t\tSystem.out.println(\"Calc prgm sub output=\"+resultsub);\n\t\t\n\t\tCalculatorPgm divVal = new CalculatorPgm();\n\t\tint resultdiv = divVal.add(400,10);\n\t\tSystem.out.println(\"Calc prgm div output=\"+resultdiv);\n\t\t\n\t\t\n\t\t\n\n\t}", "private ExpressionTools(){\n\t\t\n\t}", "void mo9693a();", "public void mo9137b() {\n }", "public void mo21795T() {\n }", "C3577c mo19678C();", "void mo67920a();", "public void mo6944a() {\n }", "public void main(){\n }", "public static void c0() {\n\t}", "void mo41086b();", "public void mo21794S() {\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "public void mo115190b() {\n }", "public static void main(String[] args) {\n\t\tCal c = new Cal();\n\t\tc.setOperands(10, 20, 30);\n\t\tSystem.out.println(c.sum());\n\t\tSystem.out.println(c.avg());\n\t}", "void mo17021c();", "public static void main(String[] args) {\n Calculator calc=new Calculator();\r\n double operand1,operand2,result=0;\r\n operand1=calc.getOperand1();\r\n operand2=calc.getOperand2();\r\n String op;\r\n op=calc.getOperator();\r\n try\r\n {\r\n \r\n switch(op)\r\n {\r\n case \"+\": Add add=new Add();\r\n result=add.doOperation(operand1, operand2);\r\n break;\r\n case \"-\": Subract sub=new Subract();\r\n result=sub.doOperation(operand1, operand2);\r\n break;\r\n case \"*\": Multiply mul=new Multiply();\r\n result=mul.doOperation(operand1, operand2);\r\n break;\r\n case \"/\": Division div =new Division();\r\n if(operand2==0)\r\n {\r\n \tthrow new ArithmeticException();\r\n }\r\n result=div.doOperation(operand1, operand2);\r\n break;\r\n default: throw new Exception(\"Invalid operation\");\r\n }\r\n \r\n\t }\r\n catch(ArithmeticException e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n }\r\n \r\n catch(Exception e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n } \r\n finally\r\n {\r\n \t System.exit(0);\r\n }\r\n System.out.print(result);\r\n \r\n}", "public void mo44053a() {\n }", "void mo119581a();", "public static void main(){\n\t}", "private test5() {\r\n\t\r\n\t}", "void mo69874a();", "public static void main(String[] args) {\n\n\t\tint x=200;\n\t\tSystem.out.println(docalc(x));\n\t\tSystem.out.println(x);\n\t}", "public void mo21825b() {\n }", "void mo80455b();", "public void mo3376r() {\n }", "void mo98969a();", "public static void main(String[] args) {\n Math2 y = new Math2();\n y.Add(7,2);\n y.Sub(7,2);\n }", "public final void mo11687c() {\n }", "void mo88524c();", "public static void main() {\n }", "public void mo115188a() {\n }", "private void kk12() {\n\n\t}", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(174);\n Item item0 = classWriter0.newConstItem(\"\");\n // Undeclared exception!\n try { \n frame0.execute(3, 2, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public long mo915b() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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 r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "void mo1493c();", "public void mo2471e() {\n }", "void mo21073d();", "public static void main(String[] args) {\n\n\n Operation operationAdd = OperationFactory.createOperation(\"+\");\n operationAdd.setValue1(10);\n operationAdd.setValue2(5);\n System.out.println(operationAdd.getResult());\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "public void mo2740a() {\n }", "C7904c mo24084a();", "public /* synthetic */ String mo15511g(Void __) {\n boolean[] $jacocoInit = $jacocoInit();\n String string = getArguments().getString(\"package_name\");\n $jacocoInit[218] = true;\n return string;\n }", "void mo67923b();", "public void main() {\n System.out.println(x); // x is automatic variable (effective final variables)\n }", "public static void main(String[] args) {\n\t\t\n\t\tPayment payment = MethodReferences::transaction;\n\t\tpayment.pay(300);\n\t\t\n\t\t\n\t\t// 2. Method Reference -> Non Static Method\n\t\tMethodReferences refVar = new MethodReferences();\n\t\tPayment payment2 = refVar::payAmount;\n\t\tpayment2.pay(200);\n\t\t\n\t\t\n\t\t// 3. Method Reference -> Constructors\n\t\tPayment payment3 = MethodReferences::new;\n\t\tpayment3.pay(4000);\n\t}", "public /* synthetic */ String mo15496a(Void __) {\n boolean[] $jacocoInit = $jacocoInit();\n String string = getArguments().getString(\"package_name\");\n $jacocoInit[217] = true;\n return string;\n }", "public void mo21781F() {\n }", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\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 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public static void main(String[] args) {\n\r\n\t\tnew ThisSuperDemo3().calculate();\r\n\t}", "public void mo5097b() {\n }", "public final void run() {\n /*\n r11 = this;\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n java.util.List r0 = r11.f7254\n java.util.Iterator r6 = r0.iterator()\n goto L_0x00fb\n L_0x000d:\n java.lang.Object r0 = r6.next()\n o.刴 r0 = (p004o.C1530) r0\n r5 = r0\n o.鑺 r7 = r11.f7255 // Catch:{ 櫂 -> 0x00f5 }\n r8 = r5\n java.lang.String r0 = \"consume\"\n r7.mo4508(r0) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r0 = r8.f7295 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = \"inapp\"\n boolean r0 = r0.equals(r1) // Catch:{ 櫂 -> 0x00f5 }\n if (r0 != 0) goto L_0x0045\n o.櫂 r0 = new o.櫂 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"Items of type '\"\n r1.<init>(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = r8.f7295 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"' can't be consumed.\"\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = r1.toString() // Catch:{ 櫂 -> 0x00f5 }\n r2 = -1010(0xfffffffffffffc0e, float:NaN)\n r0.<init>(r2, r1) // Catch:{ 櫂 -> 0x00f5 }\n throw r0 // Catch:{ 櫂 -> 0x00f5 }\n L_0x0045:\n java.lang.String r9 = r8.f7289 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r10 = r8.f7290 // Catch:{ RemoteException -> 0x00c2 }\n if (r9 == 0) goto L_0x0053\n java.lang.String r0 = \"\"\n boolean r0 = r9.equals(r0) // Catch:{ RemoteException -> 0x00c2 }\n if (r0 == 0) goto L_0x009d\n L_0x0053:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = \"Can't consume \"\n r0.<init>(r1) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r0 = r0.append(r10) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = \". No token.\"\n java.lang.StringBuilder r0 = r0.append(r1) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r5 = r0.toString() // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r0 = r7.f8316 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \"In-app billing error: \"\n r1.<init>(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r5) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = r1.toString() // Catch:{ RemoteException -> 0x00c2 }\n android.util.Log.e(r0, r1) // Catch:{ RemoteException -> 0x00c2 }\n o.櫂 r0 = new o.櫂 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \"PurchaseInfo is missing token for sku: \"\n r1.<init>(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r10) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \" \"\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r8) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = r1.toString() // Catch:{ RemoteException -> 0x00c2 }\n r2 = -1007(0xfffffffffffffc11, float:NaN)\n r0.<init>(r2, r1) // Catch:{ RemoteException -> 0x00c2 }\n throw r0 // Catch:{ RemoteException -> 0x00c2 }\n L_0x009d:\n o.鷭 r0 = r7.f8308 // Catch:{ RemoteException -> 0x00c2 }\n android.content.Context r1 = r7.f8307 // Catch:{ RemoteException -> 0x00c2 }\n r1.getPackageName() // Catch:{ RemoteException -> 0x00c2 }\n int r7 = r0.mo4540() // Catch:{ RemoteException -> 0x00c2 }\n if (r7 == 0) goto L_0x00da\n p004o.C1782.m2448(r7) // Catch:{ RemoteException -> 0x00c2 }\n o.櫂 r0 = new o.櫂 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \"Error consuming sku \"\n r1.<init>(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r10) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = r1.toString() // Catch:{ RemoteException -> 0x00c2 }\n r0.<init>(r7, r1) // Catch:{ RemoteException -> 0x00c2 }\n throw r0 // Catch:{ RemoteException -> 0x00c2 }\n L_0x00c2:\n r9 = move-exception\n o.櫂 r0 = new o.櫂 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"Remote exception while consuming. PurchaseInfo: \"\n r1.<init>(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = r1.append(r8) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = r1.toString() // Catch:{ 櫂 -> 0x00f5 }\n r2 = -1001(0xfffffffffffffc17, float:NaN)\n r0.<init>(r2, r1, r9) // Catch:{ 櫂 -> 0x00f5 }\n throw r0 // Catch:{ 櫂 -> 0x00f5 }\n L_0x00da:\n o.ậ r0 = new o.ậ // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"Successful consume of sku \"\n r1.<init>(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = r5.f7290 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = r1.toString() // Catch:{ 櫂 -> 0x00f5 }\n r2 = 0\n r0.<init>(r2, r1) // Catch:{ 櫂 -> 0x00f5 }\n r4.add(r0) // Catch:{ 櫂 -> 0x00f5 }\n goto L_0x00fb\n L_0x00f5:\n r5 = move-exception\n o.ậ r0 = r5.f7614\n r4.add(r0)\n L_0x00fb:\n boolean r0 = r6.hasNext()\n if (r0 != 0) goto L_0x000d\n o.鑺 r5 = r11.f7255\n java.lang.String r0 = \"\"\n r5.f8306 = r0\n r0 = 0\n r5.f8310 = r0\n o.鑺$鷭 r0 = r11.f7253\n if (r0 == 0) goto L_0x011c\n android.os.Handler r0 = r11.f7252\n o.閇 r1 = new o.閇\n o.鑺$鷭 r2 = r11.f7253\n java.util.List r3 = r11.f7254\n r1.<init>(r11, r2, r3, r4)\n r0.post(r1)\n L_0x011c:\n o.鑺$if r0 = r11.f7251\n if (r0 == 0) goto L_0x012e\n android.os.Handler r0 = r11.f7252\n o.祽 r1 = new o.祽\n o.鑺$if r2 = r11.f7251\n java.util.List r3 = r11.f7254\n r1.<init>(r11, r2, r3, r4)\n r0.post(r1)\n L_0x012e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p004o.C1509.run():void\");\n }", "public static void main(String[] args) {\n\t\tBankServiceProvider bsp= new AxisBank();\r\n\t\tbsp.processLoan();\r\n\t\tbsp=new IndianBank();\r\n\t\tbsp.processLoan();\r\n\t\t\r\n\t\t/*final double pie=3.14;\r\n\t\tpie=pie+1;*/\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public void mo5382o() {\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[] args) {\n\t\tThisoperator op = new Thisoperator();\n\t\top.localmethod();\n\t\t\n\n\t}", "public void mo21784I() {\n }", "public abstract void mo27385c();", "public void mo21878t() {\n }", "public static void main(String[] args) {\n\t\tDomestic_Consumer dc=new Domestic_Consumer(111,\"vishal\");\r\n\t\t//better way to implement runtime polymorhism\r\n\t\t//ref variable of interface pointing to implementing class\r\n\t\tElectric_Domestic dom=new Domestic_Consumer(123,\"java\");\r\n\t\tint bill=dom.calcBill(130);\r\n\t\tSystem.out.println(\"Totl bill is \"+bill);\r\n\t\t bill=dc.calcBill(100);\r\n\t\tSystem.out.println(\"bill is\" +bill);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tLearnReturnVar obj = new LearnReturnVar();\r\n\t\tint result= obj.add();\r\n\t\tSystem.out.println(\"the addition value is\" +result);\r\n obj.sub(50,10);\r\n\t\r\n\t}", "private void scan() {\n if (classRefs != null)\n return;\n // Store ids rather than names to avoid multiple name building.\n Set classIDs = new HashSet();\n Set methodIDs = new HashSet();\n\n codePaths = 1; // there has to be at least one...\n\n offset = 0;\n int max = codeBytes.length;\n\twhile (offset < max) {\n\t int bcode = at(0);\n\t if (bcode == bc_wide) {\n\t\tbcode = at(1);\n\t\tint arg = shortAt(2);\n\t\tswitch (bcode) {\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret:\n\t\t\toffset += 4;\n\t\t\tbreak;\n\n\t\t case bc_iinc:\n\t\t\toffset += 6;\n\t\t\tbreak;\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t } else {\n\t\tswitch (bcode) {\n // These bcodes have CONSTANT_Class arguments\n case bc_instanceof: \n case bc_checkcast: case bc_new:\n {\n\t\t\tint index = shortAt(1);\n classIDs.add(new Integer(index));\n\t\t\toffset += 3;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_putstatic: case bc_getstatic:\n case bc_putfield: case bc_getfield: {\n\t\t\tint index = shortAt(1);\n CPFieldInfo fi = (CPFieldInfo)cpool.get(index);\n classIDs.add(new Integer(fi.getClassID()));\n\t\t\toffset += 3;\n\t\t\tbreak;\n }\n\n // These bcodes have CONSTANT_MethodRef_info arguments\n\t\t case bc_invokevirtual: case bc_invokespecial:\n case bc_invokestatic:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_jsr_w:\n\t\t case bc_invokeinterface:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n // Branch instructions\n\t\t case bc_ifeq: case bc_ifge: case bc_ifgt:\n\t\t case bc_ifle: case bc_iflt: case bc_ifne:\n\t\t case bc_if_icmpeq: case bc_if_icmpne: case bc_if_icmpge:\n\t\t case bc_if_icmpgt: case bc_if_icmple: case bc_if_icmplt:\n\t\t case bc_if_acmpeq: case bc_if_acmpne:\n\t\t case bc_ifnull: case bc_ifnonnull:\n\t\t case bc_jsr:\n codePaths++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n case bc_lcmp: case bc_fcmpl: case bc_fcmpg:\n case bc_dcmpl: case bc_dcmpg:\n codePaths++;\n\t\t\toffset++;\n break;\n\n\t\t case bc_tableswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tlong low = intAt(tbl, 1);\n\t\t\tlong high = intAt(tbl, 2);\n\t\t\ttbl += 3 << 2; \t\t\t// three int header\n\n // Find number of unique table addresses.\n // The default path is skipped so we find the\n // number of alternative paths here.\n Set set = new HashSet();\n int length = (int)(high - low + 1);\n for (int i = 0; i < length; i++) {\n int jumpAddr = (int)intAt (tbl, i) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n\n\t\t\toffset = tbl + (int)((high - low + 1) << 2);\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_lookupswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tint npairs = (int)intAt(tbl, 1);\n\t\t\tint nints = npairs * 2;\n\t\t\ttbl += 2 << 2; \t\t\t// two int header\n\n // Find number of unique table addresses\n Set set = new HashSet();\n for (int i = 0; i < nints; i += 2) {\n // use the address half of each pair\n int jumpAddr = (int)intAt (tbl, i + 1) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n \n\t\t\toffset = tbl + (nints << 2);\n\t\t\tbreak;\n\t\t }\n\n // Ignore other bcodes.\n\t\t case bc_anewarray: \n offset += 3;\n break;\n\n\t\t case bc_multianewarray: {\n\t\t\toffset += 4;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret: case bc_newarray:\n\t\t case bc_bipush: case bc_ldc:\n\t\t\toffset += 2;\n\t\t\tbreak;\n\t\t \n\t\t case bc_iinc: case bc_sipush:\n\t\t case bc_ldc_w: case bc_ldc2_w:\n\t\t case bc_goto:\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_goto_w:\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t }\n\t}\n classRefs = expandClassNames(classIDs);\n methodRefs = expandMethodNames(methodIDs);\n }", "public static void main(String[] args)\n {\n computeCharge circuit = new computeCharge();\n }" ]
[ "0.5760755", "0.56626177", "0.56497276", "0.5635589", "0.56246233", "0.5614012", "0.5577337", "0.5574505", "0.55642754", "0.5550393", "0.55342335", "0.5523079", "0.5510282", "0.5495875", "0.5483002", "0.54779917", "0.5475262", "0.5469157", "0.5468098", "0.5465886", "0.5445133", "0.54270935", "0.54195076", "0.5406834", "0.5404584", "0.53960407", "0.5364143", "0.5364004", "0.5361227", "0.5350672", "0.53265643", "0.53236693", "0.5319893", "0.53171474", "0.53169614", "0.53112984", "0.53025764", "0.5301356", "0.5290798", "0.5289823", "0.5289159", "0.52827865", "0.5281113", "0.5272219", "0.5267293", "0.52557105", "0.525139", "0.5250989", "0.5248047", "0.5247414", "0.524605", "0.52389973", "0.5231912", "0.52222794", "0.5222059", "0.52214545", "0.5219884", "0.5218346", "0.52169114", "0.52126145", "0.5211523", "0.5211387", "0.5210321", "0.5207907", "0.52070993", "0.5206345", "0.5203535", "0.5201738", "0.52002776", "0.5198883", "0.51982886", "0.51976234", "0.51964945", "0.51939046", "0.5193461", "0.5192698", "0.5192081", "0.5189965", "0.5187651", "0.5185378", "0.5183575", "0.51829493", "0.51777977", "0.51746434", "0.5169165", "0.5168273", "0.51661974", "0.5156814", "0.51528984", "0.5150926", "0.5149893", "0.5148271", "0.5142174", "0.5141623", "0.51413083", "0.51405275", "0.51397187", "0.513867", "0.5134001", "0.51306325", "0.5129749" ]
0.0
-1
Set the Document Service.
public void setDocumentService(DocumentService documentService) { this.documentService = documentService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDocumentService(DocumentService documentService) {\r\n this.documentService = documentService;\r\n }", "@Override\n public void setLoadService(DocumentStorageService service) {\n this.service = service;\n }", "public void setService(Text newService) {\n service = newService;\n }", "public void setService(String service) {\n this.service = service;\n }", "private void setService(Service service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService (String service) {\n\t this.service = service;\n\t}", "public final void setService(java.lang.String service)\r\n\t{\r\n\t\tsetService(getContext(), service);\r\n\t}", "public abstract void setServiceName(String serviceName);", "public void setService(Service value) {\n\t\tthis._service = value;\n\t}", "public export.serializers.avro.DeviceInfo.Builder setService(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.service = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public final void setService(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String service)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Service.toString(), service);\r\n\t}", "public void setServiceRef(IntegrationAppmasterService<?> serviceRef) {\n\t\tthis.serviceRef = serviceRef;\n\t}", "public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}", "public void setDataObjectService(DataObjectService dataObjectService) {\n this.dataObjectService = dataObjectService;\n }", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "protected void setDictionaryService(DictionaryService dictionaryService) {\n this.dictionaryService = dictionaryService;\n }", "protected void setServiceProcess(ServiceProcess serviceProcess) {\n\t\tthis.serviceProcess = serviceProcess;\n\t}", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "public Event setService(String service) {\n this.service = service;\n return this;\n }", "public void setDictionaryService(DictionaryService dictionaryService)\n {\n this.dictionaryService = dictionaryService;\n }", "public void setServicePath(String servicePath) {\n this.servicePath = servicePath;\n }", "public void setServiceName(String serviceName)\r\n {\r\n this.serviceName = serviceName;\r\n }", "void setServiceId(java.lang.String serviceId);", "public void setDictionaryService(DictionaryService dictionaryService) {\n\t\tthis.dictionaryService = dictionaryService;\n\t}", "public void setServiceClass(java.lang.String serviceClass) {\n this.serviceClass = serviceClass;\n }", "public void setDocument(Document value) {\n document = value;\n }", "public void setServiceID(java.lang.String serviceID)\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(SERVICEID$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SERVICEID$6);\n }\n target.setStringValue(serviceID);\n }\n }", "public abstract void setServiceType(String serviceType);", "public void setServiceName(String serviceName)\n {\n this.serviceName = serviceName;\n }", "public void setSpaceService(final ISpaceService spaceService) {\r\n this.spaceService = spaceService;\r\n }", "public final void setServiceProcess(java.lang.String serviceprocess)\r\n\t{\r\n\t\tsetServiceProcess(getContext(), serviceprocess);\r\n\t}", "public void setDocumentManager( OntDocumentManager docMgr ) {\n m_docManager = docMgr;\n }", "public void setDocument(Document doc)\n\t{\n\t\tthis.document = doc;\n\t}", "public Builder setServiceName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n serviceName_ = value;\n onChanged();\n return this;\n }", "public Builder setServiceName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n serviceName_ = value;\n onChanged();\n return this;\n }", "public Builder setServiceName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n serviceName_ = value;\n onChanged();\n return this;\n }", "private DocsService getDocsService() throws DocumentServiceException {\n\tAuthenticationToken token = this.store.getUserToken();\n\tif (token == null) {\n\t throw new DocumentServiceException(\"Service requires authentication.\");\n\t}\n\tPrivateKey key = AuthenticationKey.getAuthSubKey();\n DocsService svc = new DocsService(GDATA_CLIENT_APPLICATION_NAME);\n svc.setConnectTimeout(0);\n svc.setReadTimeout(0);\n svc.setAuthSubToken(token.getToken(), key);\n svc.setProtocolVersion(DocsService.Versions.V3);\n return svc;\n }", "public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);", "public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }", "public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }", "public void setServiceID(ID sid) {\n\tserviceID = sid;\n }", "public void setEventService(IEventService eventService) {\n\t\tExperimentRecord.eventService = eventService;\n\t}", "public void setDocument(Document document) {\n\t\tthis.document = document;\n\t}", "void setClassOfService(ClassOfService serviceClass);", "public void xsetServiceID(org.apache.xmlbeans.XmlString serviceID)\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(SERVICEID$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SERVICEID$6);\n }\n target.set(serviceID);\n }\n }", "public void setDocument(URL document) {\r\n this.document = document;\r\n }", "public void setContentService(ContentService contentService)\n {\n this.contentService = contentService;\n }", "public void setContractsGrantsInvoiceDocumentService(ContractsGrantsInvoiceDocumentService contractsGrantsInvoiceDocumentService) {\n this.contractsGrantsInvoiceDocumentService = contractsGrantsInvoiceDocumentService;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setReferenceService(ReferenceService referenceService){\n\t\tthis.referenceService = referenceService;\n\t}", "protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }", "public void setEnhancedService(EnhancedService EnhancedService) {\n this.EnhancedService = EnhancedService;\n }", "public void setTypeOfService(String typeOfService){\n\tthis.typeOfService=typeOfService;\n}", "public void setDeveloperService(DeveloperService developerService) {\n this.developerService = developerService;\n }", "public static void setServiceName(String serviceName) {\n\t\tMDC.put(ApplicationConstants.SERVICE_NAME, serviceName);\n\t}", "public void setDocument(final Document doc) {\n Document old = document;\n if (doc != document && highlighter != null) {\n highlighter.removeAllHighlights();\n }\n document = doc;\n firePropertyChange(StringConstants.TEXT_COMPONENT_DOCUMENT_PROPERTY,\n old, doc);\n setDocumentDirection();\n }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "DocumentManagementService getDocumentManagementService()\n throws ServiceNotAvailableException, LoginFailedException;", "public void setDataDictionaryService(DataDictionaryService dataDictionaryService) {\r\n this.dataDictionaryService = dataDictionaryService;\r\n }", "public void setDataDictionaryService(DataDictionaryService dataDictionaryService) {\r\n this.dataDictionaryService = dataDictionaryService;\r\n }", "public void setServiceID(int value) {\n this.serviceID = value;\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "protected void setAuthUserService(AuthUserService service) {\n this.authUserService = service;\n }", "@Required\n\tpublic void setTargetService(TargetService service) {\n\t\tthis.targetService = service;\n\t}", "default void setEventService(EventService service) {\n bind(service);\n }", "public void setCseService(CseService pCseService) {\n\t\tcseService = pCseService;\n\t}", "public void setServiceValue(YangString serviceValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n serviceValue,\n childrenNames());\n }", "public void setServiceValue(YangString serviceValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n serviceValue,\n childrenNames());\n }", "protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }", "public void setAttributeService(AttributeService attributeService) {\n this.attributeService = attributeService;\n }", "public final void setServiceProcess(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String serviceprocess)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ServiceProcess.toString(), serviceprocess);\r\n\t}", "public OracleConnectOptions setServiceId(String serviceId) {\n this.serviceId = serviceId;\n return this;\n }", "@Autowired\n\tpublic void setConfigService(ConfigService configService) {\n\t\tthis.configService = configService;\n\t}", "public void setServiceValue(String serviceValue) throws JNCException {\n setServiceValue(new YangString(serviceValue));\n }", "public void setServiceValue(String serviceValue) throws JNCException {\n setServiceValue(new YangString(serviceValue));\n }", "@JsonProperty(\"service\")\n public void setService(String service) {\n this.service = service;\n }", "public void setTranslationService(TranslationService bpt) throws IllegalStateException {\n\t\tif (this.translation != null) {\n\t\t\tString errMsg = \"TranslationService already initialized. Setup not allowed.\";\n \t\tlogger.error(errMsg);\n\t\t\tthrow new UnsupportedOperationException(errMsg);\n\t\t}\n\t\tthis.translation = bpt;\n\t}", "public void setSeriesService(SeriesService seriesService) {\n this.seriesService = seriesService;\n }", "public void setTypeOfService(String typeOfService){\n\t\tthis.typeOfService=typeOfService;\n\t}", "void xsetServiceId(com.microsoft.schemas._2003._10.serialization.Guid serviceId);", "public void setPersonService(PersonService personService) {\n\t\tthis.personService = personService;\n\t}", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setOptionsService(OptionsService optionsService) {\n this.optionsService = optionsService;\n }", "protected void setServiceRegistry(ServiceRegistry serviceRegistry) {\n this.serviceRegistry = serviceRegistry;\n }", "protected void setServiceRegistry(ServiceRegistry serviceRegistry) {\n this.serviceRegistry = serviceRegistry;\n }", "public void setUserService(UserService userService) {\n this.userService = userService;\n }", "public void setNameSpaceService(NamespaceService nameSpaceService)\n {\n this.nameSpaceService = nameSpaceService;\n }", "@Override\n public void setBusinessObjectService(BusinessObjectService businessObjectService) {\n this.businessObjectService = businessObjectService;\n }", "public void setServiceSite(String serviceSite) {\r\n\t\tthis.serviceSite = serviceSite;\r\n\t}", "public void setAccountService(AccountService accountService){\n this.accountService = accountService;\n }", "public void setLogService(LogService logService) {\r\n this.logService = logService;\r\n }" ]
[ "0.8207813", "0.72019804", "0.6881298", "0.6865824", "0.6856563", "0.6778184", "0.6778184", "0.6778184", "0.65922827", "0.65922654", "0.6565076", "0.6455546", "0.64506835", "0.644772", "0.64186585", "0.64186585", "0.64186585", "0.63914216", "0.63760847", "0.63506526", "0.63494456", "0.6264745", "0.6236218", "0.6212362", "0.6172607", "0.6148437", "0.6147343", "0.6138279", "0.6137948", "0.61153376", "0.60958326", "0.60911274", "0.60792875", "0.6068361", "0.6066791", "0.60658205", "0.60373694", "0.6036288", "0.60269386", "0.60082203", "0.59857804", "0.59701484", "0.59701484", "0.5955211", "0.59544873", "0.5919486", "0.5919486", "0.59172136", "0.59166706", "0.5872683", "0.58681506", "0.5830744", "0.580902", "0.57908094", "0.578597", "0.5782933", "0.5782933", "0.5782933", "0.57578146", "0.57572114", "0.574679", "0.5744073", "0.57342833", "0.5723562", "0.5722454", "0.5722103", "0.5716183", "0.5714825", "0.5714825", "0.5714768", "0.57063514", "0.5694914", "0.5691175", "0.5663062", "0.5655596", "0.56437296", "0.56437296", "0.56339025", "0.5628197", "0.56255007", "0.56245726", "0.55878985", "0.55707335", "0.55707335", "0.55696005", "0.5563856", "0.5555558", "0.55551094", "0.5554289", "0.5551917", "0.5543701", "0.5540611", "0.5533487", "0.5533487", "0.55289346", "0.551878", "0.55110985", "0.55043584", "0.55003786", "0.54989976" ]
0.8142885
1
Set the ProtocolBase Action Service.
public void setProtocolActionService(ProtocolActionService protocolActionService) { this.protocolActionService = protocolActionService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}", "public abstract void setServiceType(String serviceType);", "public abstract void setServiceName(String serviceName);", "@Override\n\tpublic void setAction() {\n\t}", "public void setAction(String action);", "public void setActionHandler(ITeeterActionHandler actionHandler) {\n \r\n }", "@Override\n public void specificAction(PlayerService playerService) {\n }", "public void setAction(Action action) {\n this.action = action;\n }", "@Override\n public void initComponent() {\n ActionManager am = ActionManager.getInstance();\n }", "public void setProtocol(String protocol) {\n m_Protocol = protocol;\n }", "protected PMBaseAction() {\r\n super();\r\n }", "protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }", "public void setAction(A action) {\r\n\t\tthis.action = action;\r\n\t}", "private void setService(Service service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setAction(String action) { this.action = action; }", "public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public void setProtocol(Protocol protocol)\n \t{\n \t\tthis.protocol = protocol;\n \t}", "public final void setService(java.lang.String service)\r\n\t{\r\n\t\tsetService(getContext(), service);\r\n\t}", "protected void setTypeAlertService(TypeAlertService service) {\n\t\tthis.typeAlertService = service;\n\t}", "public void setProtocol (java.lang.String protocol) {\r\n this.protocol = protocol;\r\n }", "public void setAction(String action)\n {\n // Check property\n if (action == null) \n { \n action = \"\"; \n }\n \n // If the specified context path already contains\n // a query string, append an ampersand character\n // for further parameter concatenation\n if (action.indexOf(\"=\") != -1)\n {\n action = action + \"&\";\n }\n else\n {\n action = action + \"?\";\n }\n \n // Set property\n this.action = action;\n }", "public void setService (String service) {\n\t this.service = service;\n\t}", "public void xsetProtocol(org.apache.xmlbeans.XmlString protocol)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROTOCOL$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROTOCOL$0);\n }\n target.set(protocol);\n }\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "default void setEventService(EventService service) {\n bind(service);\n }", "@Resource\r\n\tpublic void setActionBCF(IActionBCF actionBCF)\r\n\t{\r\n\t\tthis.actionBCF = actionBCF;\r\n\t}", "public Target setActionClass(Class<?> action) {\n this.action = action;\n return this;\n }", "public void setActionTrackSelected(GralUserAction action){ actionSelectTrack = action; }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public void setProtocol(String value) {\n setAttributeInternal(PROTOCOL, value);\n }", "public void setProtocol(String protocol) {\n this.protocol = protocol;\n }", "public void setProtocol(String protocol) {\n this.protocol = protocol;\n }", "public void setAction (String action) {\n this.action = action;\n }", "public void activate(Base base) throws IOException {\n\t\tCore.activate(base, getHttpMethodExecutor());\n\t}", "public void setProtocol(Protocol protocol) {\n\t\tthis.protocol = protocol;\n\t}", "public void setAction(@NotNull Action action) {\n this.action = action;\n }", "public void setProtocol(java.lang.String protocol)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROTOCOL$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROTOCOL$0);\n }\n target.setStringValue(protocol);\n }\n }", "public void setAction(String action) {\n this.action = action;\n }", "public void setAction(String action) {\n this.action = action;\n }", "public void setAction(String action) {\n\t\tthis.action.set(action);\n\t}", "void setBluetoothService(BluetoothService bluetoothService);", "private final void setAction(Action a){\n\t\tthis.a = a;\n\t}", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "public ImplAction(Monitor monitor, BaseService service)\r\n {\r\n super();\r\n this.monitor = monitor;\r\n this.service = service;\r\n }", "StateClass(String action) {\r\n setAccountAction(action); \r\n }", "public void setAction(com.vmware.converter.AlarmAction action) {\r\n this.action = action;\r\n }", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public InitService() {\n super(\"InitService\");\n }", "public void setCommunicationHandler(){\n this.comHandler = new CommunicationHandler(this);\n }", "void setServicePort( int p );", "public AnnotationRpcHandler(Method method, Object service, ProtobufRPCService protobufPRCService) {\n super(method, service, protobufPRCService);\n if (getInputClass() != null) {\n inputCodec = ProtobufProxy.create(getInputClass());\n }\n if (getOutputClass() != null) {\n outputCodec = ProtobufProxy.create(getOutputClass());\n }\n\n serviceSignature = ServiceSignatureUtils.makeSignature(getServiceName(), getMethodName());\n\n }", "public void setAction(String action) {\n\t\tthis.action = action;\n\t}", "public i(@NotNull a aVar) {\n super(aVar);\n Intrinsics.checkParameterIsNotNull(aVar, \"actionsManager\");\n }", "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "public void setStatusService(StatusService statusService) {\r\n this.statusService = statusService;\r\n }", "public void setAction(MethodExpression action) {\n this.action = action;\n }", "public void setService(Text newService) {\n service = newService;\n }", "public void registerProtocol(Protocol protocol);", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "public void setBottoneCoppia(ServiceButton sb) { this.sb = sb; }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tConfig.HisiSettingService = ServiceSettingsInfoAidl.Stub.asInterface(service);\n\t\t}", "public setAcl_args setAction(TSetAclAction action) {\n this.action = action;\n return this;\n }", "public abstract void setYjaService(AbsYJACommonService yjaService) throws Exception;", "public void setAction(RateLimiterAction action) {\n this.action = action;\n }", "<R extends IBaseResource> IOperationProcessMsgMode<R> setMessageBundle(IBaseBundle theMsgBundle);", "public void setProtocol(String a_protocol)\n\t{\n\t\tif (!isValidProtocol(a_protocol))\n\t\t{\n\t\t\tif (isValidHostname(getHost()))\n\t\t\t{\n\t\t\t\tLogHolder.log(LogLevel.NOTICE, LogType.NET, \"Host \" + getHost() + \" has listener with \" +\n\t\t\t\t\t\t\t \"invalid protocol '\" + a_protocol + \"'!\");\n\t\t\t}\n\t\t\tm_iProtocolType = PROTOCOL_TYPE_RAW_TCP;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_iProtocolType = recognizeProtocol(a_protocol);\n\t\t}\n\t}", "public void bindService() {\n mIntent = new Intent();\n mIntent.setPackage(\"com.eebbk.studyos.themes\");\n mIntent.setAction(THEME_SERVICE_ACTION);\n mContext.bindService(mIntent,mConnection, Context.BIND_AUTO_CREATE);\n }", "protected void enableActionSetDACConfig()\n {\n Action action = new Action(\"SetDACConfig\");\n action.addInputParameter(new ParameterRelated(\"DACConfig\", iPropertyDACConfig));\n iDelegateSetDACConfig = new DoSetDACConfig();\n enableAction(action, iDelegateSetDACConfig);\n }", "@Override\n\tpublic void setButtonAction() {\n\t}", "@Override\n protected void hookUpActionListeners() {\n }", "public ActionManager() {\n\t\tsuper();\n\t}", "public final void setService(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String service)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Service.toString(), service);\r\n\t}", "public void setOperation (String Operation);", "public Event setService(String service) {\n this.service = service;\n return this;\n }", "@Remote\r\npublic interface MenuActionManagerRemote\r\n extends MenuActionManager\r\n{\r\n\r\n\r\n}", "public void setContentService(ContentService contentService)\n {\n this.contentService = contentService;\n }", "protected void setPersonlanguagecommunicationchannelService(PersonlanguagecommunicationchannelService service) {\n\t\tthis.personlanguagecommunicationchannelService = service;\n\t}", "public interface SettingAction {\n\n void onAction();\n\n}", "@Override\n\tpublic void onActionStart(int action) {\n\t\t\n\t}", "protected void onServiceConnectedExtended(ComponentName className,\n IBinder service) {\n mAllowedToBind = true;\n\n }", "@Override\n protected void configure() {\n bind(OperationPerformingService.class);\n }", "public void setAction(SliceItem action) {\n mAction = action;\n }", "@Required\n\tpublic void setTargetService(TargetService service) {\n\t\tthis.targetService = service;\n\t}", "public abstract void setValueAction(Object value);", "void setClassOfService(ClassOfService serviceClass);", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public export.serializers.avro.DeviceInfo.Builder setService(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.service = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }", "public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }", "@Override\n public void setActivePart(IAction action, IWorkbenchPart targetPart) {}", "public void setAction(int value) {\n this.action = value;\n }", "public void setProtocol(int a_protocol)\n\t{\n\t\tif (!isValidProtocol(a_protocol))\n\t\t{\n\t\t\tif (isValidHostname(getHost()))\n\t\t\t{\n\t\t\t\tLogHolder.log(LogLevel.NOTICE, LogType.NET, \"Host \" + getHost() + \" has listener with \" +\n\t\t\t\t\t\t\t \"invalid protocol '\" + a_protocol + \"'!\");\n\t\t\t}\n\t\t\tm_iProtocolType = PROTOCOL_TYPE_RAW_TCP;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_iProtocolType = recognizeProtocol(a_protocol);\n\t\t}\n\t}", "public GetMarkerSetMembershipAction() {\n }", "public void setController(ShannonsController ctl){\n\t\tcontroller = ctl;\n\t}", "public void setGameService(GameService gameService) {\n this.gameService = gameService;\n }", "public void setGameService(GameService gameService) {\n this.gameService = gameService;\n }" ]
[ "0.55832386", "0.5481239", "0.5410429", "0.531512", "0.5273259", "0.52505964", "0.5185817", "0.5174628", "0.51620984", "0.51140696", "0.5112145", "0.5106007", "0.5104994", "0.50964683", "0.50860244", "0.5073514", "0.50637865", "0.5046674", "0.5041258", "0.49951297", "0.49938256", "0.4983431", "0.4978141", "0.4976349", "0.4961687", "0.49594718", "0.49594718", "0.49594718", "0.4954641", "0.49060965", "0.49037728", "0.4898066", "0.4862888", "0.48462245", "0.483592", "0.4814523", "0.4808104", "0.48058286", "0.47735727", "0.47733968", "0.47661898", "0.4760439", "0.4760439", "0.47543004", "0.4751459", "0.47335926", "0.47332576", "0.47261813", "0.4705442", "0.47009876", "0.46931195", "0.46883094", "0.46755612", "0.46667045", "0.46609387", "0.4655688", "0.46468586", "0.46435854", "0.46413076", "0.4639773", "0.4629951", "0.46282858", "0.46280995", "0.46158522", "0.46108294", "0.46095502", "0.4606327", "0.46049055", "0.458644", "0.45842823", "0.45753384", "0.4571748", "0.45699874", "0.4562786", "0.45579365", "0.45576626", "0.45567423", "0.45562735", "0.4554123", "0.45532036", "0.45429164", "0.45399246", "0.45325124", "0.45203722", "0.45200637", "0.45173156", "0.45129958", "0.45114377", "0.4510486", "0.4503859", "0.4499559", "0.44983274", "0.44907516", "0.44838268", "0.44831577", "0.44817135", "0.448041", "0.44797415", "0.44763285", "0.44763285" ]
0.7149291
0
Set the Business Object Service.
public void setBusinessObjectService(BusinessObjectService businessObjectService) { this.businessObjectService = businessObjectService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setBusinessObjectService(BusinessObjectService businessObjectService) {\n this.businessObjectService = businessObjectService;\n }", "public void setBusinessObjectService(BusinessObjectService businessObjectService) {\r\n this.businessObjectService = businessObjectService;\r\n }", "public void setDataObjectService(DataObjectService dataObjectService) {\n this.dataObjectService = dataObjectService;\n }", "@Override\n public BusinessObjectService getBusinessObjectService() {\n return businessObjectService;\n }", "public void setBusinessProcessService(BusinessProcessService businessProcessService) {\n this.businessProcessService = businessProcessService;\n }", "public BusinessObjectService getBusinessObjectService() {\n return businessObjectService;\n }", "private void setService(Service service) {\n this.service = service;\n }", "public void setBusinessInterface(Class clazz) {\n this.businessInterface = clazz;\n }", "public void setBankService(BankService bankService) {\r\n this.bankService = bankService;\r\n }", "public void setBusiness(String Business) {\n this.Business = Business;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(Service value) {\n\t\tthis._service = value;\n\t}", "protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "protected void setEmployeeSalaryService(EmployeeSalaryService service) {\n this.employeeSalaryService = service;\n }", "public final void setService(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String service)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Service.toString(), service);\r\n\t}", "void setClassOfService(ClassOfService serviceClass);", "public abstract void setServiceName(String serviceName);", "public void setService (String service) {\n\t this.service = service;\n\t}", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public abstract void setServiceType(String serviceType);", "@Autowired\n\tpublic void setConfigService(ConfigService configService) {\n\t\tthis.configService = configService;\n\t}", "public void setService(PlaylistBusinessInterface service) {\n\t\tthis.service = service;\n\t}", "public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}", "public void setUserService(UserService userService) {\n this.userService = userService;\n }", "public final void setService(java.lang.String service)\r\n\t{\r\n\t\tsetService(getContext(), service);\r\n\t}", "public void setServiceRef(IntegrationAppmasterService<?> serviceRef) {\n\t\tthis.serviceRef = serviceRef;\n\t}", "public void setServiceDAO(ServiceDAO serviceDAO) {\n\t\tthis.serviceDAO = serviceDAO;\n\t}", "@Autowired\n public void setUserService(UserService userService) {\n this.userService = userService;\n }", "public void setJbpmService(JbpmService jbpmService)\r\n\t{\r\n\t\tthis.jbpmService = jbpmService;\r\n\t}", "public BusinessService register(BusinessService service) {\n\t\treturn register(service, this.getUDDINode().getApiNode());\n\t}", "protected void setServiceProcess(ServiceProcess serviceProcess) {\n\t\tthis.serviceProcess = serviceProcess;\n\t}", "public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "default void setEventService(EventService service) {\n bind(service);\n }", "public void setDocumentService(DocumentService documentService) {\r\n this.documentService = documentService;\r\n }", "public void setService(Text newService) {\n service = newService;\n }", "public void setServiceClass(java.lang.String serviceClass) {\n this.serviceClass = serviceClass;\n }", "public void setBusiness(BusinessSummaryInfo [] Business) {\n this.Business = Business;\n }", "public Event setService(String service) {\n this.service = service;\n return this;\n }", "void setBluetoothService(BluetoothService bluetoothService);", "public void setAttributeService(AttributeService attributeService) {\n this.attributeService = attributeService;\n }", "public void setDocumentService(DocumentService documentService) {\n this.documentService = documentService;\n }", "public void setContentService(ContentService contentService)\n {\n this.contentService = contentService;\n }", "public void setIdentityService(IdentityService identityService) {\n this.identityService = identityService;\n }", "@Required\n\tpublic void setCabinClassService(final CabinClassService cabinClassService)\n\t{\n\t\tthis.cabinClassService = cabinClassService;\n\t}", "void setServiceId(java.lang.String serviceId);", "public void setTypeOfService(String typeOfService){\n\tthis.typeOfService=typeOfService;\n}", "protected void setAuthUserService(AuthUserService service) {\n this.authUserService = service;\n }", "void xsetServiceId(com.microsoft.schemas._2003._10.serialization.Guid serviceId);", "public export.serializers.avro.DeviceInfo.Builder setService(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.service = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}", "public void setAccountService(AccountService accountService){\n this.accountService = accountService;\n }", "public static void setMockSystemService(String serviceName, Object service) {\n if (service != null) {\n sMockServiceMap.put(serviceName, service);\n } else {\n sMockServiceMap.remove(serviceName);\n }\n }", "public void setBluetoothService(BluetoothService bluetoothService) {\n this.bluetoothService = bluetoothService;\n }", "public void setObjBusinessSql(final BusinessSql objBusinessSql) {\n this.objBusinessSql = objBusinessSql;\n }", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}", "public OrdersBusinessInterface getService() {\r\n\t\treturn service;\r\n\t}", "public void setUserService(\n com.liferay.portal.service.UserService userService) {\n this.userService = userService;\n }", "public void setUserService(\n com.liferay.portal.service.UserService userService) {\n this.userService = userService;\n }", "public void setUserService(\n com.liferay.portal.service.UserService userService) {\n this.userService = userService;\n }", "public void setBalService(String balService) {\r\n\t\tthis.balService = balService;\r\n\t}", "public void setServiceImpl(Class<AppmasterService> serviceImpl) {\n\t\tthis.serviceImpl = serviceImpl;\n\t}", "public void setJpaService(JpaService jpaService) {\r\n\t\tthis.jpaService = jpaService;\r\n\t\tvalidateEntityManagerFactory(factoryName);\r\n\t}", "public abstract void setYjaService(AbsYJACommonService yjaService) throws Exception;", "@Reference\n protected void setComposerService(ComposerService composerService) {\n this.composerService = composerService;\n }", "public void setTranslationService(TranslationService bpt) throws IllegalStateException {\n\t\tif (this.translation != null) {\n\t\t\tString errMsg = \"TranslationService already initialized. Setup not allowed.\";\n \t\tlogger.error(errMsg);\n\t\t\tthrow new UnsupportedOperationException(errMsg);\n\t\t}\n\t\tthis.translation = bpt;\n\t}", "public void setServiceName(String serviceName)\r\n {\r\n this.serviceName = serviceName;\r\n }", "public void testSetService() throws Exception {\n }", "@JsonProperty(\"service\")\n public void setService(String service) {\n this.service = service;\n }", "public void setServiceModelDao(IServiceModelDao serviceModelDao) {\n this.serviceModelDao = serviceModelDao;\n }", "private void setServiceDTO (String service[], boolean isJai) {\n\n\t\tString companyName = service[0];\n\n\t\tString depTime[] = service[1].split (\":\");\n\n\t\tLocalTime departureTime = LocalTime.of (Integer.parseInt (depTime[0]), Integer.parseInt (depTime[1]));\n\n\t\tString arrTime[] = service[2].split (\":\");\n\n\t\tLocalTime arrivalTime = LocalTime.of (Integer.parseInt (arrTime[0]), Integer.parseInt (arrTime[1]));\n\n\t\tlong netDuration = arrivalTime.toSecondOfDay () - departureTime.toSecondOfDay ();\n\n\t\tif (netDuration > SECONDS_IN_AN_HOUR)\n\t\t\treturn;\n\n\t\tTreeSet <BusService> busServiceList;\n\n\t\tif (isJai) {\n\t\t\tbusServiceList = jaiBusServiceList == null ? jaiBusServiceList = new TreeSet<> () : jaiBusServiceList;\n\t\t} else {\n\t\t\tbusServiceList = veeruBusServiceList == null ? veeruBusServiceList = new TreeSet<> () : veeruBusServiceList;\n\t\t}\n\n\t\tBusService busService = new BusService ();\n\n\t\tbusService.setCompanyName (companyName);\n\t\tbusService.setDepartureTime (departureTime);\n\t\tbusService.setArrivalTime (arrivalTime);\n\n\t\tbusServiceList.add (busService);\n\t}", "public void setUserService(\n\t\tcom.liferay.portal.kernel.service.UserService userService) {\n\t\tthis.userService = userService;\n\t}", "public void setServiceValue(YangString serviceValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n serviceValue,\n childrenNames());\n }", "public void setServiceValue(YangString serviceValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n serviceValue,\n childrenNames());\n }", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public void setStatusService(StatusService statusService) {\r\n this.statusService = statusService;\r\n }", "public void setDateTimeService(DateTimeService dateTimeService) {\r\n this.dateTimeService = dateTimeService;\r\n }", "public void setDateTimeService(DateTimeService dateTimeService) {\r\n this.dateTimeService = dateTimeService;\r\n }", "public void setPersonService(PersonService personService) {\n\t\tthis.personService = personService;\n\t}", "public void setFooService(\n com.sohlman.liferay.foobar.service.FooService fooService) {\n this.fooService = fooService;\n }", "public void setServiceID(java.lang.String serviceID)\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(SERVICEID$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SERVICEID$6);\n }\n target.setStringValue(serviceID);\n }\n }", "public void setDeveloperService(DeveloperService developerService) {\n this.developerService = developerService;\n }", "public void setServiceName(String serviceName)\n {\n this.serviceName = serviceName;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "public void setSecurityService(SecurityService securityService) {\n this.securityService = securityService;\n }", "protected void setSubdivisionsService(SubdivisionsService service) {\n\t\tthis.subdivisionsService = service;\n\t}", "public final void setServiceProcess(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String serviceprocess)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ServiceProcess.toString(), serviceprocess);\r\n\t}", "public void setBusiness_id(String business_id) {\n this.business_id = business_id;\n }", "public void setMetaService(boolean metaService) {\n this.metaService = metaService;\n }", "public void setDateTimeService(DateTimeService dateTimeService) {\n this.dateTimeService = dateTimeService;\n }" ]
[ "0.8348757", "0.8167264", "0.71954453", "0.7054389", "0.702019", "0.68934524", "0.6817466", "0.66503686", "0.6589954", "0.64286566", "0.6390116", "0.63085234", "0.630327", "0.6294723", "0.6294723", "0.6294723", "0.6289938", "0.6256125", "0.62512916", "0.624012", "0.6231202", "0.61286086", "0.61286086", "0.61286086", "0.61192393", "0.610245", "0.60849863", "0.6070082", "0.60575175", "0.6021008", "0.60152304", "0.59911454", "0.5919652", "0.59022146", "0.58991027", "0.5887696", "0.58869433", "0.58864546", "0.58864546", "0.58864546", "0.58847666", "0.58754677", "0.5868945", "0.5866172", "0.584706", "0.5829221", "0.5826306", "0.5817704", "0.57745314", "0.5772096", "0.57552505", "0.57504296", "0.57401323", "0.5734071", "0.57249534", "0.5716889", "0.5715058", "0.57101995", "0.5700288", "0.56911796", "0.5685887", "0.56829107", "0.56597763", "0.5658212", "0.5635012", "0.5632849", "0.5632849", "0.5632849", "0.563114", "0.56305856", "0.56284416", "0.5619399", "0.56176007", "0.5615813", "0.5601263", "0.5590232", "0.55853367", "0.55819786", "0.5577218", "0.5575453", "0.55621755", "0.55621755", "0.55616033", "0.55586785", "0.55441034", "0.55441034", "0.55436677", "0.5537331", "0.55350214", "0.5531051", "0.55116177", "0.5507671", "0.5507671", "0.5507671", "0.55013496", "0.55001724", "0.5493572", "0.5493216", "0.5490625" ]
0.81135535
2
When a protocol is submitted for review, an action entry must be added to the protocol. This action entry is a history of the major events that have occurred during the life of the protocol. Also, for a submission, a Submission BO must be created. It contains all of the relevant data for a submission: type, checklists, reviewers, etc.
public void submitToIacucForReview(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) throws Exception { /* * The submission is saved first so that its new primary key can be added * to the protocol action entry. */ String prevSubmissionStatus = protocol.getProtocolSubmission().getSubmissionStatusCode(); String submissionTypeCode = protocol.getProtocolSubmission().getSubmissionTypeCode(); IacucProtocolSubmission submission = createProtocolSubmission(protocol, submitAction); /* * If this is an initial submission, then set the initial submission date. */ if (protocol.getInitialSubmissionDate() == null) { protocol.setInitialSubmissionDate(new Date(submission.getSubmissionDate().getTime())); } getIacucProtocolAssignReviewersService().assignReviewers(submission, submitAction.getReviewers()); IacucProtocolAction protocolAction = new IacucProtocolAction(protocol, submission, IacucProtocolActionType.SUBMITTED_TO_IACUC); protocolAction.setComments(SUBMITTED_TO_IACUC); //For the purpose of audit trail protocolAction.setPrevProtocolStatusCode(protocol.getProtocolStatusCode()); protocolAction.setPrevSubmissionStatusCode(prevSubmissionStatus); protocolAction.setSubmissionTypeCode(submissionTypeCode); protocolAction.setCreatedSubmission(true); protocol.getProtocolActions().add(protocolAction); IacucProtocolStatus protocolStatus = new IacucProtocolStatus(); protocolStatus.setProtocolStatusCode(IacucProtocolActionType.SUBMITTED_TO_IACUC); protocolStatus.setDescription(SUBMITTED_TO_IACUC); protocol.setProtocolStatus(protocolStatus); protocol.setProtocolStatusCode(IacucProtocolActionType.SUBMITTED_TO_IACUC); protocolActionService.updateProtocolStatus(protocolAction, protocol); if (submission.getScheduleIdFk() != null) { updateDefaultSchedule(submission); } businessObjectService.delete(protocol.getProtocolDocument().getPessimisticLocks()); protocol.getProtocolDocument().getPessimisticLocks().clear(); documentService.saveDocument(protocol.getProtocolDocument()); protocol.refresh(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected IacucProtocolSubmission createProtocolSubmission(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) {\n IacucProtocolSubmissionBuilder submissionBuilder = new IacucProtocolSubmissionBuilder(protocol, submitAction.getSubmissionTypeCode());\n submissionBuilder.setSubmissionTypeQualifierCode(submitAction.getSubmissionQualifierTypeCode());\n submissionBuilder.setProtocolReviewTypeCode(submitAction.getProtocolReviewTypeCode());\n setSubmissionStatus(submissionBuilder, submitAction);\n setCommittee(submissionBuilder, submitAction);\n setSchedule(submissionBuilder, submitAction);\n return submissionBuilder.create();\n }", "public String toString() {\n return \"submission\";\n }", "void saveActivityHistForAddEntity(Record inputRecord);", "private static void createSubmission(String[] attributes, int docuID, int orgID) {\n\t\tint actID = ActivityDetailsService.getActivityDetailsByDocuID(docuID).getId();\n\t\tint submissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t//System.out.println(\"docuID: \" + docuID);\n\t\tif(submissionID == 0){\n\t\t\t//create submission details\n\t\t\tSubmissionDetails subDet = new SubmissionDetails();\n\t\t\tsubDet.setActID(actID);\n\t\t\tsubDet.setSubmittedBy(attributes[16]);\n\t\t\tsubDet.setContactNo(attributes[17]);\n\t\t\tsubDet.setEmailAddress(attributes[18]);\n\t\t\tsubDet.setDateSubmitted(toDateTime(attributes[0]));\n\t\t\tsubDet.setSubmissionType(attributes[4]);\n\t\t\t\n\t\t\tif(subDet.getSubmissionType().equalsIgnoreCase(\"Special Approval Slip\"))\n\t\t\t\tsubDet.setSasType(attributes[19]);\n\t\t\telse subDet.setSasType(\"-\");\n\t\t\tSubmissionDetailsService.addSubmissionDetails(subDet);\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t} else {\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t}\n\t\n\t}", "protected void postEvent(String wfId, String type,String ticketNo, String activity, String payLoad,IntegrationLogDetail logDetail) {\n\t\tlogger.debug(\"---involking postEvent, JaxBMarshalling...\");\n\t\tJAXBContext jaxbContext;\n\t\tUnmarshaller jaxbUnmarshaller = null;\n\t\tExternalComplaint complaint = null;\n\t\tExternalLineItem lineItem = null;\n\t\tExternalStatus status = null;\n\t\tEventContext eventContext = null;\n\t\t\n\t\ttry {\n\t\t\tEventType et = EventType.getEventType(type);\n\t\t\tif(et != null) {\n\t\t\t\tint orgId = Integer.parseInt(getOrgId());\n\t\t\t\tint workflowId = (wfId != null && wfId.length() > 0) ? Integer.parseInt(wfId) : 0;\n\t\t\t\tswitch (et) {\n\t\t\t\tcase INTERNAL_CREATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\n\t\t\t\t\tpostCreateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_CREATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\n\t\t\t\t\tpostCreateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_UPDATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\n\t\t\t\t\tpostUpdateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_UPDATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\t\t\t\t\t\n\t\t\t\t\tpostUpdateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_STATUS_UPDATE:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalStatus.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tstatus = (ExternalStatus) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,status, logDetail);\n\t\t\t\t\tpostStatusUpdate(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_STATUS_UPDATE:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalStatus.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tstatus = (ExternalStatus) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,status, logDetail);\n\t\t\t\t\tpostStatusUpdate(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_CREATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostCreateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_CREATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostCreateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_UPDATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostUpdateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_UPDATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostUpdateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// update response here\n\t\t\t\tlogger.debug(\"---involking update response...\");\n\t\t\t\tdesRepository.updateResponse(eventContext);\n\t\t\t}\n\t\t} catch (JAXBException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "private void makeRequest() {\n\t\tRequest request = new Request(RequestCode.GET_REVISION_HISTORY);\n\t\trequest.setDocumentName(tabs.getTitleAt(tabs.getSelectedIndex()));\n\t\ttry {\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "void submitBug() {\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"plain/text\");\n intent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"bryan.walsh.mti@gmail.com\" });\n intent.putExtra(Intent.EXTRA_SUBJECT, \"36-3 Bug Report\");\n intent.putExtra(Intent.EXTRA_TEXT, \"The following question is incorrect: \\n\\n\" + \"Question Number: \" + currentQ.getID() + \"\\n\\n\" + currentQ.getQUESTION() + \"\\n\\n\" + \"Choice A: \"+ currentQ.getOPTA() + \"\\n\\n\" + \"Choice B: \"+ currentQ.getOPTB() + \"\\n\\n\" + \"Choice C: \" + currentQ.getOPTC() + \"\\n\\n\" + \"Choice D: \" + currentQ.getOPTD() + \"\\n\\n Additional Information: \\n\");\n startActivity(Intent.createChooser(intent, \"\"));\n\n\n }", "public MethodEntryRequest methodEntry(Consumer<MethodEntryEvent> action) {\n\t\tMethodEntryRequest request = vm.eventRequestManager().createMethodEntryRequest();\n\t\tmethodEntries.add(action);\n\t\treturn request;\n\t}", "public ActionList getEntryActionList() {\r\n\t\treturn entryActionList;\r\n\t}", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "protected void setCommittee(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n submissionBuilder.setCommittee(submitAction.getNewCommitteeId());\n }", "@SkylarkModule(\n name = \"feedback.action\",\n doc = \"An action that will be executed in a feedback workflow or on_finish hook\",\n category = SkylarkModuleCategory.TOP_LEVEL_TYPE,\n documented = false)\npublic interface Action {\n\n void run(SkylarkContext<?> context) throws ValidationException, RepoException;\n\n String getName();\n\n /** Returns a key-value ist of the options the action was instantiated with. */\n ImmutableSetMultimap<String, String> describe();\n}", "protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING);\n }", "@Override\n\tpublic String getSubmitArgs() {\n\t\treturn model.getSubmitArgs();\n\t}", "@Override\n\tpublic String getSubmissionText() {\n\t\treturn model.getSubmissionText();\n\t}", "private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null || representativeName == null || representativePost == null\n || repPhoneNumber == null || grpBankAccount == null || physAddress == null\n || grpPhoneNumber == null || grpSupportType == null) {\n flashMessage(\"Please Fill all Fields\");\n\n } else if (IsEditing.equalsIgnoreCase(\"1\")) {\n url.append(\"editVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n\n } else { // Creating a new VSLA\n url.append(\"addNewVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n }\n }", "public WorkFlowResult processActionGradeSubmitAndEditAnotherVersion() {\n\tif (!AssignmentAuthoringBean.checkCsrf(csrfToken))\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n\n WorkFlowResult saveResult = processActionGradeSubmit();\n if (WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE.equals(saveResult)) {\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n }\n WorkFlowResult togo = WorkFlowResult.INSTRUCTOR_FEEDBACK_SAVE_AND_EDIT_PREFIX;\n togo.setNextSubVersion(getNextVersionIdToEdit());\n return togo;\n }", "public ModelingExercise addExampleSubmission(ModelingExercise modelingExercise) throws Exception {\n Set<ExampleSubmission> exampleSubmissionSet = new HashSet<>();\n String validModel = FileUtils.loadFileFromResources(\"test-data/model-submission/model.54727.json\");\n var exampleSubmission = database.generateExampleSubmission(validModel, modelingExercise, true);\n exampleSubmission.assessmentExplanation(\"explanation\");\n exampleSubmissionSet.add(exampleSubmission);\n modelingExercise.setExampleSubmissions(exampleSubmissionSet);\n return modelingExercise;\n }", "protected Modification handleEntry(List historyEntry) {\n // Ignore unusual labels of directories which cause parsing errors that \n // look like this:\n //\n // ***** built *****\n // Version 4\n // Label: \"autobuild_test\"\n // User: Etucker Date: 6/26/01 Time: 11:53a\n // Labeled\n if ((historyEntry.size() > 4) && \n (((String) historyEntry.get(4)).startsWith(\"Labeled\"))) {\n return null;\n }\n \n \t\tModification mod = new Modification();\n String nameAndDateLine = (String) historyEntry.get(2);\n \t\tmod.userName = parseUser(nameAndDateLine);\n \t\tmod.modifiedTime = parseDate(nameAndDateLine);\n \n String folderLine = (String) historyEntry.get(0);\n String fileLine = (String) historyEntry.get(3);\n \t\tif (fileLine.startsWith(\"Checked in\")) {\n \t\t\tmod.type = \"checkin\";\n \t\t\tmod.comment = parseComment(historyEntry);\n \t\t\tmod.fileName = folderLine.substring(7, folderLine.indexOf(\" *\"));\n \t\t\tmod.folderName = fileLine.substring(12);\n \t\t} else if (fileLine.endsWith(\"Created\")) {\n mod.type = \"create\";\n } else {\n \t\t\tmod.folderName = folderLine.substring(7, folderLine.indexOf(\" *\"));\n int lastSpace = fileLine.lastIndexOf(\" \");\n if ( lastSpace != -1 ) {\n mod.fileName = fileLine.substring(0, lastSpace);\n } else {\n mod.fileName = fileLine;\n }\n \n if (fileLine.endsWith(\"added\")) {\n \t\t\t\tmod.type = \"add\";\n \t\t\t} else if (fileLine.endsWith(\"deleted\")) {\n \t\t\t\tmod.type = \"delete\";\n \t\t\t} else if (fileLine.endsWith(\"recovered\")) {\n \t\t\t\tmod.type = \"recover\";\n \t\t\t} else if (fileLine.endsWith(\"shared\")) {\n mod.type = \"branch\";\n }\n \t\t}\n \n \t\tif (_propertyOnDelete != null && \"delete\".equals(mod.type)) {\n _properties.put(_propertyOnDelete, \"true\");\n \t\t}\n \n if (_property != null) {\n \t\t_properties.put(_property, \"true\");\n }\n \n return mod;\n \t}", "private void processCommitEntry(SensorShell shell, String author, long timestamp, \r\n Date commitTime, int revision, PerforceChangeListData.PerforceFileData fileData)\r\n throws Exception {\r\n if (shell != null) {\r\n String file = this.fileNamePrefix == null ? \"\" : this.fileNamePrefix;\r\n file += fileData.getFileName();\r\n\r\n Map<String, String> pMap = new HashMap<String, String>();\r\n String timestampString = Tstamp.makeTimestamp(timestamp).toString();\r\n pMap.put(\"SensorDataType\", \"Commit\");\r\n pMap.put(\"Resource\", file);\r\n pMap.put(\"Tool\", \"Perforce\");\r\n pMap.put(\"Timestamp\", timestampString);\r\n pMap.put(\"Runtime\", Tstamp.makeTimestamp(commitTime.getTime()).toString());\r\n pMap.put(\"totalLines\", String.valueOf(fileData.getTotalLines()));\r\n pMap.put(\"linesAdded\", String.valueOf(fileData.getLinesAdded()));\r\n pMap.put(\"linesDeleted\", String.valueOf(fileData.getLinesDeleted()));\r\n pMap.put(\"linesModified\", String.valueOf(fileData.getLinesModified()));\r\n shell.add(pMap);\r\n if (this.isVerbose) {\r\n System.out.printf(\"Sending Perforce Commit: Timestamp: %s Resource: %s User: %s%n\", \r\n timestampString, file, shell.getProperties().getSensorBaseUser());\r\n }\r\n }\r\n }", "private void addAgentAction(Event e) {\n AgentActionEvent event = (AgentActionEvent) e;\n int time = this.getEnvironment().getTime();\n\n this.addCycle(time);\n\n var packet = event.getPacket();\n var agentId = event.getAgent().getID();\n\n switch (event.getAction()) {\n case AgentActionEvent.PICK: {\n var action = new PacketAction(packet.getX(), packet.getY(),\n PacketAction.Mode.Pickup, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.PUT: {\n var action = new PacketAction(event.getToX(), event.getToY(),\n PacketAction.Mode.Drop, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.DELIVER: {\n var action = new PacketAction(event.getToX(), event.getToY(),\n PacketAction.Mode.Delivery, agentId);\n this.historyPackets.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n case AgentActionEvent.STEP: {\n var action = new AgentMove(event.getFromX(), event.getFromY(),\n event.getToX(), event.getToY(), agentId);\n this.historyMoves.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n break;\n }\n }\n\n repaint();\n }", "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\tString toSave = assignmentObjectiveView.getAssignmentObjective().getText();\n\t\t\t\tint jobCreationId = selectedJobId;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tAuditEngagement e = new AuditEngagement();\n\t\t\t\te.setAssignmentObj(toSave);\n\t\t\t\t\n\t\t\t\tJobCreation j = new JobCreation();\n\t\t\t\tj.setJobCreationId(jobCreationId);\n\t\t\t\te.setJobCreation(j);\n\t\t\t\t\n\t\t\t\trpcService.updateAuditEngagement(e, \"assignmentObj\", new AsyncCallback<Boolean>() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Boolean arg0) {\n\t\t\t\t\t\tWindow.alert(\"success\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tWindow.alert(\"fail\");\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tlogger.log(Level.INFO, \"FAIL: updateAuditEngagement .Inside Audit AuditAreaspresenter\");\n\t\t\t\t\t\tif(caught instanceof TimeOutException){\n\t\t\t\t\t\t\tHistory.newItem(\"login\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.println(\"FAIL: updateAuditEngagement .Inside AuditAreaspresenter\");\n\t\t\t\t\t\t\tWindow.alert(\"FAIL: updateAuditEngagement\");// After FAIL ... write RPC Name NOT Method Name..\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// call rpc from here.. and save this data to this selectedJobId.. in our new table under column assignmentObjective\n\t\t\t}", "public void addEntry(EventType type, String msg) {\n if (_entries == null) {\n _entries = new ArrayList<Entry>();\n }\n _entries.add(new Entry(type, new Date(), msg));\n }", "ExpProtocol insertProtocol(@NotNull ExpProtocol baseProtocol, @Nullable List<ExpProtocol> steps, @Nullable Map<String, List<String>> predecessors, User user) throws ExperimentException;", "protected void onSubmit() {\n\n Building b = new Building(c.BuildingTypeId, c.StyleId, c.CityId,\n c.Architectural_element_Id, c.Agesid, c.Latitude, c.Longtitude,\n c.buildingname, c.Address);\n BuildingCollection bc = new BuildingCollection();\n bc.AddBuilding(b);\n this.setResponsePage(new BuildingListWithPropertiesPage());\n\n }", "@Override\n public void Submit() {\n }", "private LetterEntry getPrintFileEntry(\n CaseAction caseAction, CaseActionTemplate caseActionTemplate, SurveyDTO survey) {\n log.with(\"caseId\", caseAction.getCaseId())\n .with(\"actionTemplateType\", caseActionTemplate.getType())\n .info(\"Getting print file entry\");\n String iac = caseAction.getIac();\n String sampleUnitRef = caseAction.getSampleUnitRef();\n String status = caseAction.getStatus().toString();\n CaseActionParty actionCaseParty = actionService.setParties(caseAction, survey);\n PartyDTO businessParty = actionCaseParty.getParentParty();\n Contact contact = new Contact();\n String respondentStatus = \"\";\n List<PartyDTO> respondentParties = actionCaseParty.getChildParties();\n if (respondentParties.size() > 0) {\n Attributes attributes = respondentParties.get(0).getAttributes();\n contact.setEmailAddress(attributes.getEmailAddress());\n contact.setForename(attributes.getFirstName());\n contact.setSurname(attributes.getLastName());\n respondentStatus = parseRespondentStatuses(respondentParties);\n List<PartyDTO> createdRespondentParties = filterListByStatus(respondentParties, CREATED);\n if (createdRespondentParties != null && createdRespondentParties.size() > 0) {\n iac = \"\";\n }\n }\n log.with(\"caseId\", caseAction.getCaseId())\n .with(\"actionTemplateType\", caseActionTemplate.getType())\n .info(\"Finished getting print file entry\");\n return new LetterEntry(\n caseAction.getCaseId(),\n caseActionTemplate.getType(),\n caseActionTemplate.getHandler(),\n sampleUnitRef,\n iac,\n status,\n getEnrolmentStatus(actionCaseParty.getParentParty()),\n respondentStatus,\n contact,\n businessParty.getAttributes().getRegion());\n }", "public interface Actions {\n void initScreen();\n void submitReview(String accessToken,\n String productID,\n String rating,\n String orderDID,\n String comment);\n }", "public String addNew() {\r\n\t\ttry {\r\n\t\t\tgetNavigationPanel(2);\r\n\t\t\treturn \"questData\";\r\n\t\t} catch(Exception e) {\r\n\t\t\tlogger.error(\"Exception in addNew in action:\" + e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "DateTime getSubmissionTime();", "public String getEntrySave() {\r\n return \"-\"+getId() + \"|\" + getFavorite() + \"|\" + getSubject() + \"|\" + date(4) + \"|\" + price.getFull() + \"|\" + getNotes();\r\n }", "private void entryAction() {\n\t}", "public String getAuditUpdateActionRequest() {\n return auditUpdateActionRequest;\n }", "private void submit_attendance() {\n }", "public static void doSavechanges ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tString flow = params.getString(\"flow\").trim();\n\n\t\tif(flow == null || \"cancel\".equals(flow))\n\t\t{\n\t\t\tdoCancel(data);\n\t\t\treturn;\n\t\t}\n\n\t\t// get values from form and update STATE_STACK_EDIT_ITEM attribute in state\n\t\tcaptureValues(state, params);\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\n\t\tEditItem item = (EditItem) current_stack_frame.get(STATE_STACK_EDIT_ITEM);\n\n\t\tif(flow.equals(\"showMetadata\"))\n\t\t{\n\t\t\tdoShow_metadata(data);\n\t\t\treturn;\n\t\t}\n\t\telse if(flow.equals(\"hideMetadata\"))\n\t\t{\n\t\t\tdoHide_metadata(data);\n\t\t\treturn;\n\t\t}\n\t\telse if(flow.equals(\"intentChanged\"))\n\t\t{\n\t\t\tdoToggle_intent(data);\n\t\t\treturn;\n\t\t}\n\t\telse if(flow.equals(\"addInstance\"))\n\t\t{\n\t\t\tString field = params.getString(\"field\");\n\t\t\taddInstance(field, item.getProperties());\n\t\t\tResourcesMetadata form = item.getForm();\n\t\t\tList flatList = form.getFlatList();\n\t\t\titem.setProperties(flatList);\n\t\t\treturn;\n\t\t}\n\t\telse if(flow.equals(\"linkResource\"))\n\t\t{\n\t\t\t// captureMultipleValues(state, params, false);\n\t\t\tcreateLink(data, state);\n\t\t\t//Map new_stack_frame = pushOnStack(state);\n\t\t\t//new_stack_frame.put(ResourcesAction.STATE_RESOURCES_HELPER_MODE, ResourcesAction.MODE_ATTACHMENT_SELECT);\n\t\t\tstate.setAttribute(ResourcesAction.STATE_RESOURCES_HELPER_MODE, ResourcesAction.MODE_ATTACHMENT_SELECT);\n\n\t\t\treturn;\n\t\t}\n\n\n\t\tSet alerts = (Set) state.getAttribute(STATE_EDIT_ALERTS);\n\n//\t\tif(item.isStructuredArtifact())\n//\t\t{\n//\t\t\tSchemaBean bean = (SchemaBean) current_stack_frame.get(STATE_STACK_STRUCT_OBJ_SCHEMA);\n//\t\t\tSaveArtifactAttempt attempt = new SaveArtifactAttempt(item, bean.getSchema());\n//\t\t\tvalidateStructuredArtifact(attempt);\n//\n//\t\t\tIterator errorIt = attempt.getErrors().iterator();\n//\t\t\twhile(errorIt.hasNext())\n//\t\t\t{\n//\t\t\t\tValidationError error = (ValidationError) errorIt.next();\n//\t\t\t\talerts.add(error.getDefaultMessage());\n//\t\t\t}\n//\t\t}\n\n\t\tif(alerts.isEmpty())\n\t\t{\n\t\t\t// populate the property list\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// get an edit\n\t\t\t\tContentCollectionEdit cedit = null;\n\t\t\t\tContentResourceEdit redit = null;\n\t\t\t\tGroupAwareEdit gedit = null;\n\t\t\t\tResourcePropertiesEdit pedit = null;\n\n\t\t\t\tif(item.isFolder())\n\t\t\t\t{\n\t\t\t\t\tcedit = ContentHostingService.editCollection(item.getId());\n\t\t\t\t\tgedit = cedit;\n\t\t\t\t\tpedit = cedit.getPropertiesEdit();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tredit = ContentHostingService.editResource(item.getId());\n\t\t\t\t\tgedit = redit;\n\t\t\t\t\tpedit = redit.getPropertiesEdit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\t\tif(preventPublicDisplay == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\t\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(! preventPublicDisplay.booleanValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tContentHostingService.setPubView(gedit.getId(), item.isPubview());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(! AccessMode.GROUPED.toString().equals(item.getAccess()) && AccessMode.GROUPED == gedit.getAccess())\n\t\t\t\t\t{\n\t\t\t\t\t\tgedit.clearGroupAccess();\n\t\t\t\t\t}\n\t\t\t\t\telse if(AccessMode.GROUPED.toString().equals(item.getAccess()) && ! item.getEntityGroupRefs().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tgedit.setGroupAccess(item.getEntityGroupRefs());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tgedit.clearGroupAccess();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(InconsistentException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO: Should this be reported to user??\n\t\t\t\t\tlogger.debug(\"ResourcesAction.doSavechanges ***** InconsistentException changing groups ***** \" + e.getMessage());\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(ContentHostingService.isAvailabilityEnabled())\n\t\t\t\t{\n\t\t\t\t\tTime releaseDate = null;\n\t\t\t\t\tTime retractDate = null;\n\t\t\t\t\t\n\t\t\t\t\tboolean hidden = item.isHidden();\n\t\t\t\t\t\n\t\t\t\t\tif(item.useReleaseDate())\n\t\t\t\t\t{\n\t\t\t\t\t\treleaseDate = item.getReleaseDate();\n\t\t\t\t\t}\n\t\t\t\t\tif(item.useRetractDate())\n\t\t\t\t\t{\n\t\t\t\t\t\tretractDate = item.getRetractDate();\n\t\t\t\t\t}\n\t\t\t\t\tgedit.setAvailability(hidden, releaseDate, retractDate);\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\tif(item.isFolder())\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(item.isUrl())\n\t\t\t\t\t{\n\t\t\t\t\t\tredit.setContent(item.getFilename().getBytes());\n\t\t\t\t\t}\n\t\t\t\t\telse if(item.isStructuredArtifact())\n\t\t\t\t\t{\n\t\t\t\t\t\tredit.setContentType(item.getMimeType());\n\t\t\t\t\t\tredit.setContent(item.getContent());\n\t\t\t\t\t}\n\t\t\t\t\telse if(item.contentHasChanged())\n\t\t\t\t\t{\n\t\t\t\t\t\tredit.setContentType(item.getMimeType());\n\t\t\t\t\t\tredit.setContent(item.getContent());\n\t\t\t\t\t}\n\t\t\t\t\telse if(item.contentTypeHasChanged())\n\t\t\t\t\t{\n\t\t\t\t\t\tredit.setContentType(item.getMimeType());\n\t\t\t\t\t}\n\n\t\t\t\t\tBasicRightsAssignment rightsObj = item.getRights();\n\t\t\t\t\trightsObj.addResourceProperties(pedit);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tString copyright = StringUtil.trimToNull(params.getString (\"copyright\"));\n\t\t\t\t\tString newcopyright = StringUtil.trimToNull(params.getCleanString (NEW_COPYRIGHT));\n\t\t\t\t\tString copyrightAlert = StringUtil.trimToNull(params.getString(\"copyrightAlert\"));\n\t\t\t\t\tif (copyright != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (state.getAttribute(COPYRIGHT_NEW_COPYRIGHT) != null && copyright.equals(state.getAttribute(COPYRIGHT_NEW_COPYRIGHT)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (newcopyright != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpedit.addProperty (ResourceProperties.PROP_COPYRIGHT, newcopyright);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\talerts.add(rb.getString(\"specifycp2\"));\n\t\t\t\t\t\t\t\t// addAlert(state, rb.getString(\"specifycp2\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (state.getAttribute(COPYRIGHT_SELF_COPYRIGHT) != null && copyright.equals (state.getAttribute(COPYRIGHT_SELF_COPYRIGHT)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString mycopyright = (String) state.getAttribute (STATE_MY_COPYRIGHT);\n\t\t\t\t\t\t\tpedit.addProperty (ResourceProperties.PROP_COPYRIGHT, mycopyright);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpedit.addProperty(ResourceProperties.PROP_COPYRIGHT_CHOICE, copyright);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (copyrightAlert != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tpedit.addProperty (ResourceProperties.PROP_COPYRIGHT_ALERT, copyrightAlert);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpedit.removeProperty (ResourceProperties.PROP_COPYRIGHT_ALERT);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!(item.isFolder() && (item.getId().equals ((String) state.getAttribute (STATE_HOME_COLLECTION_ID)))))\n\t\t\t\t{\n\t\t\t\t\tpedit.addProperty (ResourceProperties.PROP_DISPLAY_NAME, item.getName());\n\t\t\t\t}\t// the home collection's title is not modificable\n\n\t\t\t\tpedit.addProperty (ResourceProperties.PROP_DESCRIPTION, item.getDescription());\n\t\t\t\t// deal with quota (collections only)\n\t\t\t\tif ((cedit != null) && item.canSetQuota())\n\t\t\t\t{\n\t\t\t\t\tif (item.hasQuota())\n\t\t\t\t\t{\n\t\t\t\t\t\t// set the quota\n\t\t\t\t\t\tpedit.addProperty(ResourceProperties.PROP_COLLECTION_BODY_QUOTA, item.getQuota());\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// clear the quota\n\t\t\t\t\t\tpedit.removeProperty(ResourceProperties.PROP_COLLECTION_BODY_QUOTA);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tList metadataGroups = (List) state.getAttribute(STATE_METADATA_GROUPS);\n\n\t\t\t\tstate.setAttribute(STATE_EDIT_ALERTS, alerts);\n\t\t\t\tsaveMetadata(pedit, metadataGroups, item);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_EDIT_ALERTS);\n\n\t\t\t\t// commit the change\n\t\t\t\tif (cedit != null)\n\t\t\t\t{\n\t\t\t\t\tContentHostingService.commitCollection(cedit);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tContentHostingService.commitResource(redit, item.getNotification());\n\t\t\t\t}\n\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_INTENT, INTENT_REVISE_FILE);\n\n\t\t\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\t\t\tif(preventPublicDisplay == null)\n\t\t\t\t{\n\t\t\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (TypeException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"typeex\") + \" \" + item.getId());\n\t\t\t\t// addAlert(state,\" \" + rb.getString(\"typeex\") + \" \" + item.getId());\n\t\t\t}\n\t\t\tcatch (IdUnusedException e)\n\t\t\t{\n\t\t\t\talerts.add(RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t// addAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t}\n\t\t\tcatch (PermissionException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"notpermis10\") + \" \" + item.getId());\n\t\t\t\t// addAlert(state, rb.getString(\"notpermis10\") + \" \" + item.getId() + \". \" );\n\t\t\t}\n\t\t\tcatch (InUseException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"someone\") + \" \" + item.getId());\n\t\t\t\t// addAlert(state, rb.getString(\"someone\") + \" \" + item.getId() + \". \");\n\t\t\t}\n\t\t\tcatch (ServerOverloadException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t}\n\t\t\tcatch (OverQuotaException e)\n\t\t\t{\n\t\t\t\talerts.add(rb.getString(\"changing1\") + \" \" + item.getId() + \" \" + rb.getString(\"changing2\"));\n\t\t\t\t// addAlert(state, rb.getString(\"changing1\") + \" \" + item.getId() + \" \" + rb.getString(\"changing2\"));\n\t\t\t}\n\t\t\tcatch(RuntimeException e)\n\t\t\t{\n\t\t\t\tlogger.debug(\"ResourcesAction.doSavechanges ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\tlogger.debug(\"ResourcesAction.doSavechanges ***** Unknown Exception ***** \", e);\n\t\t\t\talerts.add(rb.getString(\"failed\"));\n\t\t\t}\n\t\t}\t// if - else\n\n\t\tif(alerts.isEmpty())\n\t\t{\n\t\t\t// modify properties sucessful\n\t\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\t\tpopFromStack(state);\n\t\t\tresetCurrentMode(state);\n\t\t}\t//if-else\n\t\telse\n\t\t{\n\t\t\tIterator alertIt = alerts.iterator();\n\t\t\twhile(alertIt.hasNext())\n\t\t\t{\n\t\t\t\tString alert = (String) alertIt.next();\n\t\t\t\taddAlert(state, alert);\n\t\t\t}\n\t\t\talerts.clear();\n\t\t\tstate.setAttribute(STATE_EDIT_ALERTS, alerts);\n\t\t\t// state.setAttribute(STATE_CREATE_MISSING_ITEM, missing);\n\t\t}\n\n\t}", "Notification createAppointmentRequestSubmissionConfirmationNotification(AppointmentRequest appointmentRequest, List<Appointment> appointments );", "public HashMap<String,Rule> get_rules_to_action() throws Exception;", "public HistoryAction getHistoryAction()\n {\n return historyAction;\n }", "public interface ActionProto {\n long getId();\n\n String getKeyword();\n\n <T extends InnerActionProto> List<T> getInnerActions();\n\n ActionType getType();\n}", "@POST\n\t@Path(\"task/submission\")\n\tpublic void taskSubmission(TaskSubmissionTO sumbmissionTO, @Context HttpServletRequest request, @Context HttpServletResponse response) {\n\t\tlogger.info(\"taskSubmission start\");\n\t\tMap<String, Object> json = new HashMap<>();\n\t\tEntityManager em = EntityManagerHelper.getDefaulteEntityManager();\n\t\ttry {\n\t\t\tTaskService taskService = new TaskService(em);\n\t\t\tTaskSubmission taskSumission = taskService.upsertTaskSubmission(sumbmissionTO, CurrentContext.getAppUser());\n\t\t\tTaskSubmissionTO savedTO = new TaskSubmissionTO(taskSumission);\n\t\t\tjson.put(Constants.CODE, Constants.RESPONSE_OK);\n\t\t\tjson.put(Constants.DATA_ITEM, savedTO);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e );\n\n\t\t\tjson.put(Constants.CODE, Constants.ERROR_WITH_MSG);\n\t\t\tjson.put(Constants.MESSAGE, e.getMessage());\n\t\t} finally {\n\t\t\tif (em.isOpen()) {\n\t\t\t\tem.close();\n\t\t\t}\n\t\t}\n\t\trenderResponseJson(json, response);\n\t\tlogger.info(\"taskSubmission exit\");\n\t}", "public Object getChannelActivityAnalysisRequestActionTaskRecord() {\n return channelActivityAnalysisRequestActionTaskRecord;\n }", "public void dispatchSubmit(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(1, action));\n }", "com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder();", "public void submit(ActionEvent actionEvent) {\n if(checkFields()) {\n try {\n newStudent = new Student(firstName.getText(), lastName.getText(),birthday.getValue(),selectImage.getImage());\n activities();\n System.out.println(\"new student: \" + newStudent);\n studentList.add(newStudent);\n viewStudent(actionEvent);\n } catch (IllegalArgumentException | IOException e){\n errorDisplay.setText(e.getMessage());\n }\n }\n }", "com.google.protobuf.Timestamp getSubmitTime();", "protected abstract void createHistoryEvents();", "public static void m5807a(Action action) {\n StringBuilder stringBuilder;\n String str = \"\";\n if (action.getInstantArticleData() != null) {\n str = action.getInstantArticleData().getTitle();\n } else if (action.getVideoData() != null) {\n str = action.getVideoData().getHeading();\n }\n if (f4669a != null) {\n Bundle bundle = new Bundle();\n bundle.putString(\"title\", str);\n FirebaseAnalytics firebaseAnalytics = f4669a;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"home_page_click_\");\n stringBuilder.append(action.getType().name());\n firebaseAnalytics.m12578a(stringBuilder.toString(), bundle);\n }\n Answers instance = Answers.getInstance();\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"home page click \");\n stringBuilder.append(action.getType().name());\n instance.logCustom((CustomEvent) new CustomEvent(stringBuilder.toString()).putCustomAttribute(\"title\", str));\n }", "@FXML\n\t private void loadsubmit(ActionEvent event) {\n\t \t if (!isReadyForSubmission) {\n\t Alert alert = new Alert(Alert.AlertType.ERROR);\n\t alert.setTitle(\"Failed\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Please select a book to submit\");\n\t alert.showAndWait();\n\t return;\n\t }\n\n\t Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t alert.setTitle(\"Confirm Submission Operation\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Are you sure want to return the book ?\");\n\n\t Optional<ButtonType> response = alert.showAndWait();\n\t if (response.get() == ButtonType.OK) {\n\t String id = Bookid.getText();\n\t String ac1 = \"DELETE FROM ISSUE_LMS WHERE BOOKID = '\" + id + \"'\";\n\t String ac2 = \"UPDATE BOOK_LMS SET ISAVAIL = TRUE WHERE ID = '\" + id + \"'\";\n\n\t if (dbhandler.execAction(ac1) && dbhandler.execAction(ac2)) {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Success\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Book Has Been Submitted\");\n\t alert1.showAndWait();\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.ERROR);\n\t alert1.setTitle(\"Failed\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Has Been Failed\");\n\t alert1.showAndWait();\n\t }\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Cancelled\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Operation cancelled\");\n\t alert1.showAndWait();\n\t }\n\t }", "public interface Entry {\n // TODO: constraint, depends on event.isRelayEvent / isIndividualEvent\n @NotNull\n MeetAthlete getAthlete();\n RelayTeam getRelayTeam();\n\n Club getClub();\n\n @NotNull\n Event getEvent();\n // TODO: if relay event, constraint: event.swimstyle.relayscount = relayteam.getSize()\n\n /**\n * This is used for the entry status information.\n */\n EntryStatus getStatus();\n\n Duration getEntryTime();\n\n // TODO: qualifying time?\n\n // TODO: PreparedHeat, not null\n @Nullable\n Heat getHeat();\n @Nullable\n Integer getLane();\n\n /**\n * @return true if heat and lane are set, false otherwise\n */\n boolean isHeatPrepared();\n\n AgeGroup getAgeGroup();\n\n // TODO: not null, throw exception\n @Nullable\n Result getResult();\n}", "public Object getCorporateLoanFulfillmentArrangementUpdateActionTaskRecord() {\n return corporateLoanFulfillmentArrangementUpdateActionTaskRecord;\n }", "public Object getAnalysisUpdateActionTaskRecord() {\n return analysisUpdateActionTaskRecord;\n }", "public ActionStatus addRecord(Map<AuditingFieldsKey, Object> params, String type) {\n\t\tMap<String, Object> displayFields = new HashMap<>();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Entry<AuditingFieldsKey, Object> entry : params.entrySet()) {\n\t\t\tdisplayFields.put(entry.getKey().getDisplayName(), entry.getValue());\n\t\t\tsb.append(entry.getKey().getDisplayName()).append(\" = \").append(entry.getValue()).append(\",\");\n\t\t}\n\n\t\t// Persisiting\n\t\t// String type = clazz.getSimpleName().toLowerCase();\n\t\tAuditingGenericEvent auditingGenericEvent = new AuditingGenericEvent();\n\t\tpopulateCommonFields(params, auditingGenericEvent);\n\t\tauditingGenericEvent.getFields().putAll(displayFields);\n\n\t\tlog.debug(\"Auditing: Persisting object of type {}, fields: {}\", type, sb.toString());\n\n\t\treturn write(type, auditingGenericEvent);\n\t}", "public void sendBuilderTableRequests()\n\t{\n\t\tHasWidgets container = this.getView().getViewRootPanel();\n\t\tSendCoursesAction sla = new SendCoursesAction();\n\t\tSendCoursesEvent sle = new SendCoursesEvent(sla, container);\n//\t\tSystem.out.println(\"send REACHED\");\n\n\t\tGWT.log(\"Send Table Requests Reached\");\n\t\teventBus.fireEvent(sle);\n\t\t\n\t\tSendCourseSectionsAction sla2 = new SendCourseSectionsAction();\n\t\tSendCourseSectionsEvent sle2 = new SendCourseSectionsEvent(sla2, container);\n//\t\tSystem.out.println(\"send REACHED\");\n\n\t\teventBus.fireEvent(sle2);\n\t\t\n\t\tSendCourseTimesAction sla3 = new SendCourseTimesAction();\n\t\tSendCourseTimesEvent sle3 = new SendCourseTimesEvent(sla3, container);\n//\t\tSystem.out.println(\"send REACHED\");\n\n\t\teventBus.fireEvent(sle3);\n\t\t\n\t\tSendLocationsAction sla4 = new SendLocationsAction();\n\t\tSendLocationsEvent sle4 = new SendLocationsEvent(sla4, container);\n//\t\tSystem.out.println(\"send REACHED\");\n\n\t\teventBus.fireEvent(sle4);\n\t\t\n\t\tSendDepartmentsAction sla5 = new SendDepartmentsAction();\n\t\tSendDepartmentsEvent sle5 = new SendDepartmentsEvent(sla5, container);\n//\t\tSystem.out.println(\"send REACHED\");\n\n\t\teventBus.fireEvent(sle5);\n\n\t\tSendTermsAction sla6 = new SendTermsAction();\n\t\tSendTermsEvent sle6 = new SendTermsEvent(sla6, container);\n//\t\tSystem.out.println(\"send REACHED\");\n\n\t\teventBus.fireEvent(sle6);\n\t}", "public Entry() {\n\t\tthis.typeCode = XActRelationshipEntry.COMP;\n\t\tthis.contextConductionInd = true;\n\t}", "public abstract DankSubmissionRequest build();", "public Action generateAuditRecord(ProcessorNode processor, Operation operation, ActionDetails actionDetails) {\n FlowChangeAction action = null;\n\n // get the current user\n NiFiUser user = NiFiUserUtils.getNiFiUser();\n\n // ensure the user was found\n if (user != null) {\n // create the processor details\n FlowChangeExtensionDetails processorDetails = new FlowChangeExtensionDetails();\n processorDetails.setType(processor.getComponentType());\n\n // create the processor action for adding this processor\n action = new FlowChangeAction();\n action.setUserIdentity(user.getIdentity());\n action.setOperation(operation);\n action.setTimestamp(new Date());\n action.setSourceId(processor.getIdentifier());\n action.setSourceName(processor.getName());\n action.setSourceType(Component.Processor);\n action.setComponentDetails(processorDetails);\n\n if (actionDetails != null) {\n action.setActionDetails(actionDetails);\n }\n }\n\n return action;\n }", "private void historyButtonListener() {\n JButton historyButton = gui.getHistory_Button();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getHistory_TextArea().setText(\"\");\n gui.getFrame_History().setVisible(true);\n gui.getFrame_History().setSize(415, 250);\n gui.getHistory_TextArea().setEditable(false);\n for (int key : requestsAnswered.keySet()) {\n gui.getHistory_TextArea().append(requestsAnswered.get(key).getFormattedRequest());\n }\n for (int key : processingRequests.keySet()) {\n gui.getHistory_TextArea().append(processingRequests.get(key).getFormattedRequest());\n }\n };\n historyButton.addActionListener(actionListener);\n }", "@Override public void actionPerformed(java.awt.event.ActionEvent arg0) {\n\t\tJButton jb=new JButton();\n\t\t\n\t\tjb=(JButton) arg0.getSource();\n\t\t\n\t\t//TypeOfJob=jtxp1a.getText();\n\t\t\n\t\tif(jb==Submit)\n\t\t{\n\t\tTypeOfJob=(String) Kindofjobs.getSelectedItem();\n\t\tDescription=jtxp1b.getText();\n\t\t\n\t\tDatess=(String) Dates.getSelectedItem();\n\t\tMonthh=(String) Months.getSelectedItem();\n\t\t\n\t\n\t\tKindofjobs.setEnabled(false);\n\t\tjtxp1b.setEnabled(false);\n\t\tDates.setEnabled(false);\n\t\tMonths.setEnabled(false);\n\t\t\n\t\tAdd_Client(this);\n\n\n\t\tif(count==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tcm1.Make_managerp();\n\t\t}\t\n\t\n\n\t}\n\n\t}", "@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}", "void onIssueCreatedEvent(T event);", "public void add_entry(final EndpointID eid, ForwardingInfo.action_t action,\r\n\t\t\tstate_t state) {\r\n\t\tlock_.lock();\r\n\r\n\t\ttry {\r\n\t\t\tString name = \"eid-\" + eid.str();\r\n\t\t\tCustodyTimerSpec spec = CustodyTimerSpec.getDefaultInstance();\r\n\r\n\t\t\tlog_.add(new ForwardingInfo(state, action, name, 0xffffffff, eid,\r\n\t\t\t\t\tspec));\r\n\t\t} finally {\r\n\t\t\tlock_.unlock();\r\n\r\n\t\t}\r\n\t}", "public static Event handleAddTimeLineEvents(HttpServletRequest request,\r\n\t\t\tLong timeLineId, SessionObjectBase sob) {\r\n\r\n\t\tEvent event = new Event();\r\n\r\n\t\tif (timeLineId == null) {\r\n\t\t\treturn event;\r\n\t\t}\r\n\r\n\t\tTimeLine timeline = TimeLine.getById(sob.schema, timeLineId);\r\n\r\n\t\tString sending_page = (String) request.getParameter(\"sending_page\");\r\n\r\n\t\tif ((sending_page != null)\r\n\t\t\t\t&& (sending_page.equalsIgnoreCase(\"timeline_creator\"))) {\r\n\r\n\t\t\tString command = (String) request.getParameter(\"command\");\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Update\")) {\r\n\t\t\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\t\t\tevent.setId(new Long(event_id));\r\n\t\t\t\tsob.draft_event_id = event.getId();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Clear\")) {\r\n\t\t\t\tsob.draft_event_id = null;\r\n\t\t\t} else { // coming here as update or as create.\r\n\r\n\t\t\t\tString event_type = (String) request.getParameter(\"event_type\");\r\n\r\n\t\t\t\tint eventTypeInt = 1;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\teventTypeInt = new Long(event_type).intValue();\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\r\n\t\t\t\tevent.setEventType(eventTypeInt);\r\n\t\t\t\t\r\n\t\t\t\tString eventTitle = (String) request.getParameter(\"event_title\");\r\n\t\t\t\t\r\n\t\t\t\tif (!(USIP_OSP_Util.stringFieldHasValue(eventTitle))){\r\n\t\t\t\t\teventTitle = \"No Title Provided\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tevent.setEventTitle(eventTitle);\r\n\t\t\t\tevent.setEventMsgBody((String) request\r\n\t\t\t\t\t\t.getParameter(\"event_text\"));\r\n\r\n\t\t\t\tString timeline_event_date = (String) request\r\n\t\t\t\t\t\t.getParameter(\"timeline_event_date\");\r\n\r\n\t\t\t\tSystem.out.println(timeline_event_date);\r\n\r\n\t\t\t\tSimpleDateFormat sdf_startdate = new SimpleDateFormat(\r\n\t\t\t\t\t\t\"MM/dd/yyyy HH:mm\");\r\n\r\n\t\t\t\t// set this to a safe date (now) in case the date entered does not parse well.\r\n\t\t\t\tevent.setEventStartTime(new java.util.Date());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate ted = sdf_startdate.parse(timeline_event_date);\r\n\t\t\t\t\tevent.setEventStartTime(ted);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tsob.errorMsg = \"The date and time that you entered, \\\"\" + timeline_event_date + \"\\\", could not be interpreted. \" + \r\n\t\t\t\t\t\t\"The date was set to your current time.\";\r\n\t\t\t\t}\r\n\t\t\t\tevent.setSimId(sob.sim_id);\r\n\r\n\t\t\t\tevent.setPhaseId(sob.phase_id);\r\n\r\n\t\t\t\t// //////////////////////////////////////////\r\n\t\t\t\tevent.setTimelineId(timeline.getId());\r\n\r\n\t\t\t\tevent.saveMe(sob.schema);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tString remove_event = (String) request.getParameter(\"remove_event\");\r\n\t\tString edit_event = (String) request.getParameter(\"edit_event\");\r\n\r\n\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\tif ((remove_event != null) && (remove_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tEvent.removeMe(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = null;\r\n\t\t}\r\n\r\n\t\tif ((edit_event != null) && (edit_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tevent = Event.getById(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = event.getId();\r\n\t\t}\r\n\r\n\t\treturn event;\r\n\t}", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "private static void createHistoryEntry(int docId, String username, String eventType) {\r\n History history = new History();\r\n history.setDocId(docId);\r\n history.setDate(DateBean.toCompactString());\r\n history.setUsername(username);\r\n history.setEvent(eventType);\r\n HistoryDAO historyDao = (HistoryDAO) Context.getInstance().getBean(HistoryDAO.class);\r\n historyDao.store(history);\r\n }", "public interface WfEventAudit extends BaseBusinessObject { //PersistenceInterface\n\n /**\n A WfEventAudit can be associated with the WfExecutionObject that triggered the\n event. Event audit items are meant to provide information on the execution history of\n workflow object even after the source object has been deleted; in this case, no source\n would be associated with the WfEventAudit.\n <p>The following operation returns the source of the event, when available; if the source is\n not available, a SourceNotAvailable exception is raised.\n */\n WfExecutionObject source () throws BaseException, SourceNotAvailable;\n\n /**\n A WfEventAudit can be associated with the WfExecutionObject that triggered the\n event. Event audit items are meant to provide information on the execution history of\n workflow object even after the source object has been deleted; in this case, no source\n would be associated with the WfEventAudit.\n <p>The following operation returns the source of the event, when available; if the source is\n not available, a SourceNotAvailable exception is raised.\n */\n WfExecutionObject source (SharkTransaction t) throws BaseException, SourceNotAvailable;\n\n /**\n Records the time the status change of the source occurred that triggered the event audit\n item to be created, using the TimeBase::UtcT data type defined by the OMG Time Service.\n */\n UtcT time_stamp () throws BaseException;\n\n /**\n Identifies the specific event type. The following is a set of pre-defined event types;\n implementations of the WfM Facility may decide to support additional audit event\n types.\n <ul>\n <li>processCreated - A WfProcess was created\n <li>processStateChanged - The state of a WfProcess was changed\n <li>processContextChanged - The context of a WfProcess was initialized or changed\n <li>activityStateChanged - The state of a WfActivity was changed\n <li>activityContextChanged - The context of a WfActivity was changed\n <li>activityResultChanged - The result of a WfActivity was set\n <li>activityAssigmentChanged - The status or the resource assignment of a\n WfAssignment was initialized or changed\n </ul>\n */\n String event_type () throws BaseException;\n\n /**\n If the event is triggered by a status change of a WfActivity, the key and the name of the\n activity is recorded with the WfEventAudit. Otherwise, the activity related attributes\n contain a NULL value.\n <p>The following operation returns the key of the WfActivity associated with the event.\n */\n String activity_key () throws BaseException;\n\n /**\n If the event is triggered by a status change of a WfActivity, the key and the name of the\n activity is recorded with the WfEventAudit. Otherwise, the activity related attributes\n contain a NULL value.\n <p>The following operation return the name of the WfActivity associated with the event.\n */\n String activity_name () throws BaseException;\n\n /**\n The key and the name of the WfProcess associated with the source of an event are\n recorded with the WfEventAudit. If the event was triggered by a WfActivity, this is the\n containing WfProcess. If it was triggered by a status change of a WfProcess, it is that\n process.\n <p>The following operation returns the key of the WfProcess associated with the event.\n */\n String process_key () throws BaseException;\n\n /**\n The key and the name of the WfProcess associated with the source of an event are\n recorded with the WfEventAudit. If the event was triggered by a WfActivity, this is the\n containing WfProcess. If it was triggered by a status change of a WfProcess, it is that\n process.\n <p>The following operation returns the name of the WfProcess associated with the event.\n */\n String process_name () throws BaseException;\n\n /**\n The WfProcessMgr associated with the workflow object that triggered the event is\n identified via its name and version. If the event was triggered by a status change of an\n activity, this is the manager of the process that contains the activity. If it was triggered\n by a status change of a process, this is the manager of that process.\n <p>The following operation returns the name of the WfProcessMgr associated with the event.\n */\n String process_mgr_name () throws BaseException;\n\n /**\n The WfProcessMgr associated with the workflow object that triggered the event is\n identified via its name and version. If the event was triggered by a status change of an\n activity, this is the manager of the process that contains the activity. If it was triggered\n by a status change of a process, this is the manager of that process.\n <p>The following operation returns the version of the WfProcessMgr associated with the event.\n */\n String process_mgr_version () throws BaseException;\n\n}", "public abstract void processHistoryRequest(Message message);", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tfinal String appview = app_view.getText()\n\t\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t\tif (app_atate == 4 && appview.equals(\"\")) {\n\t\t\t\t\t\t\t\tToastUtil.showToast(context, \"请先填写审批意见!\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLinearLayout shenpi = (LinearLayout) LayoutInflater\n\t\t\t\t\t\t\t\t\t.from(context).inflate(\n\t\t\t\t\t\t\t\t\t\t\tR.layout.submit_dialog, null);\n\t\t\t\t\t\t\tTextView heads = (TextView) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.heads);\n\t\t\t\t\t\t\tButton button_t = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_t);\n\t\t\t\t\t\t\tButton button_f = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_f);\n\t\t\t\t\t\t\theads.setText(\"您确定要提交审核吗?\");\n\t\t\t\t\t\t\tdialog_app.show();\n\t\t\t\t\t\t\tdialog_app.getWindow().setContentView(shenpi);\n\t\t\t\t\t\t\tbutton_t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t// 提交审批\n\t\t\t\t\t\t\t\t\tRequestParams param = new RequestParams();\n\t\t\t\t\t\t\t\t\tparam.put(\"taskId\", TaskId);\n\t\t\t\t\t\t\t\t\tparam.put(\"key\", key);\n\t\t\t\t\t\t\t\t\tparam.put(\"applyNameState\", applyNameState);\n\t\t\t\t\t\t\t\t\tparam.put(\"id\", applyId);\n\t\t\t\t\t\t\t\t\tparam.put(\"proc_inst_id\", procInstId);\n\t\t\t\t\t\t\t\t\tparam.put(\"userid\", userid);\n\t\t\t\t\t\t\t\t\tparam.put(\"state\", state);\n\t\t\t\t\t\t\t\t\tparam.put(\"authApp\", app_atate);\n\t\t\t\t\t\t\t\t\tparam.put(\"descId\", descId);\n\t\t\t\t\t\t\t\t\tparam.put(\"authContent\", appview);// 审批意见\n\t\t\t\t\t\t\t\t\tLog.e(\"lyt\", param.toString());\n\t\t\t\t\t\t\t\t\tDialog progressDialog = dialog_util\n\t\t\t\t\t\t\t\t\t\t\t.showWaitingDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"正在审批\", false);\n\t\t\t\t\t\t\t\t\tasync.post(\n\t\t\t\t\t\t\t\t\t\t\tAPIURL.CHECK.ADDNEWOVERPROVE,\n\t\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\t\t\tnew JsonHandlerApproval(\n\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprogressDialog));\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\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\tbutton_f.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}", "public void submitFeedback()\r\n {\n if(mechanicList.getValue() == null && ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Both Mechanic Name AND Desired Rating.\");\r\n } else if(mechanicList.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Mechanic Name.\");\r\n } else if(ratingButtons.getValue() == null){\r\n MainLayout.displayInformationPrompt(\"Missing Information! You Must Include Desired Rating.\");\r\n } else {\r\n feedbackController.submitFeedback(mechanicList.getValue(), feedbackMsgField.getValue(), Integer.parseInt(ratingButtons.getValue()));\r\n feedbackController.updateMechanicStars(mechanicList.getValue());\r\n MainLayout.displayInformationPrompt(\"Review Submitted! Thanks For Your feedback!\");\r\n }\r\n }", "public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }", "private void logEvent(String operation, EntryEvent event) {\n}", "private void populateTreatementHistory() {\n DefaultTableModel model = (DefaultTableModel) historyTable.getModel();\n model.setRowCount(0);\n if (wr.getPatient().getPerson().getTreatmentHistory() != null) {\n for (WorkRequest r : wr.getPatient().getPerson().getTreatmentHistory()) {\n Object[] row = new Object[4];\n row[0] = r.getReceiver();\n row[1] = r.getResolveDate();\n row[2] = r.getMessage();\n row[3] = r.getStatus();\n\n model.addRow(row);\n }\n }\n\n }", "public Issue_Hash_Imprint() {\n \t \n initComponents();\n this.jLabel_Title.setText(Lang.getInstance().translate(\"Write Hashs to BlockChain\"));\n table_Model = new Table_Model_Issue_Hashes(0);\n this.jTable_Hash.setModel(table_Model);\n this.jLabel_Account.setText(Lang.getInstance().translate(\"Account\") + \":\");\n this.jComboBox_Account.setModel(new AccountsComboBoxModel());\n this.jLabel_URL.setText(Lang.getInstance().translate(\"URL\") + \":\");\n this.jTextField_URL.setText(\"\");\n this.jLabel_Description.setText(Lang.getInstance().translate(\"Description\") + \":\");\n this.jButton.setText(Lang.getInstance().translate(\"Write & Sign\"));\n \n /* this.jButton.addActionListener(new ActionListener()\n\t\t{\n\t\t public void actionPerformed(ActionEvent e)\n\t\t {\n\t\t onIssueClick();\n\t\t }\n\t\t});\n */\n }", "com.google.protobuf.ByteString\n getActionBytes();", "static void recordNotificationInteractionHistogram(String action) {\n if (!LibraryLoader.isInitialized()) return;\n int actionType = sInteractions.indexOf(action);\n if (actionType == -1) return;\n RecordHistogram.recordEnumeratedHistogram(\"Android.DownloadManager.NotificationInteraction\",\n actionType, sInteractions.size());\n }", "public void addEntry(ActionEvent event) {\n\t\tif(checkEntryInputs()) {\n\t\t\tBacteroidesSample newBacteroidesSample = new BacteroidesSample(sampleNumberTF.getText(),materialDescriptionTF.getText(),bacteroidesConcentration.getText());\n\t\t\tnewBacteroidesSample.setConclusionCase();\n\t\t\ttable.getItems().add(newBacteroidesSample);\n\t\t\tnewReport2.addSample(newBacteroidesSample);\n\t\t\taddConclusionNumber(newBacteroidesSample);\n\t\t\tsampleNumberTF.clear();\n\t\t\tmaterialDescriptionTF.clear();\n\t\t\tbacteroidesConcentrationTF.clear();\n\t\t}\n\t}", "public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}", "@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}", "public interface Action {\n\t\n\t/**\n\t * @return The action's printable value\n\t */\n\tpublic String toString();\n\n\tpublic Action actionClone();\n \t\n}", "default void insertActivity(FormActivityDef activity, long revisionId) {\n insertActivity(activity, List.of(), revisionId);\n }", "@Override\n\tpublic void preProcessAction(GwtEvent e) {\n\t\t\n\t}", "public abstract void commitSprintBacklog();", "public void setFormDataProtocol(){\r\n try{\r\n if(vecSpecialReviewData != null){\r\n SpecialReviewFormBean specialReviewFormBean = null;\r\n for(int index = 0; index < vecSpecialReviewData.size(); index++){\r\n specialReviewFormBean = (SpecialReviewFormBean)vecSpecialReviewData.elementAt(index);\r\n\r\n // Case# 3110: Special review in prop dev linked to protocols - Start\r\n if(enableProtocolToDevProposalLink == 1 && specialReviewFormBean .getSpecialReviewCode() == specialReviewTypeCode){\r\n specialReviewFormBean .setSpecialReviewCode(specialReviewTypeCode);\r\n // 4154: Problems in IRB Linking - Start\r\n// specialReviewFormBean .setApprovalCode(linkedToIRBCode);\r\n// specialReviewFormBean .setApplicationDate(null);\r\n// specialReviewFormBean .setApprovalDate(null);\r\n // 4154: Problems in IRB Linking - End\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!= null){\r\n ProtocolInfoBean protocolInfoBean = getProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean!= null){\r\n if(protocolInfoBean.getProtocolStatusDesc() != null && !protocolInfoBean.getProtocolStatusDesc().equals(\"\")){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getApplicationDate() != null && !protocolInfoBean.getApplicationDate().equals(\"\")){\r\n specialReviewFormBean.setApplicationDate(protocolInfoBean.getApplicationDate());\r\n }\r\n if(protocolInfoBean.getApprovalDate() != null && !protocolInfoBean.getApprovalDate().equals(\"\")){\r\n specialReviewFormBean.setApprovalDate(protocolInfoBean.getApprovalDate());\r\n }\r\n \r\n // : Problems in IRB Linking - Start\r\n// if(protocolInfoBean.getProtocolStatusDesc()!= null ){\r\n// specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n// }else{\r\n// specialReviewFormBean.setApprovalDescription(\"newTest\");\r\n// }\r\n //Status Changing....\r\n// if(protocolInfoBean.getProtocolNumber() != null){\r\n// specialReviewFormBean .setApprovalCode(linkedToIRBCode);\r\n// }\r\n // : Problems in IRB Linking - End\r\n }\r\n }\r\n }\r\n // Case# 3110: Special review in prop dev linked to protocols - End\r\n\r\n if(specialReviewFormBean.getAcType() != null && specialReviewFormBean.getAcType().equals(\"D\")){\r\n /*\r\n *Fix for Bugid #2435\r\n *Create delete vector instance if its null\r\n *Geo on 09-29-2006\r\n *BEGIN\r\n */\r\n if(vecDelSpecialReviewData==null) vecDelSpecialReviewData = new Vector();\r\n /*\r\n *END #2435\r\n */\r\n vecDelSpecialReviewData.addElement(specialReviewFormBean);\r\n vecSpecialReviewData.removeElementAt(index);\r\n index--;\r\n }\r\n }\r\n// //Added for case#3183 - Proposal Hierarchy - starts\r\n// //To update the records in the table after syncing.\r\n//// specialReviewForm.setFormData();\r\n// specialReviewForm.setTableEditors();\r\n// if(((DefaultTableModel) specialReviewForm.tblSpecialReview.getModel()).getRowCount() >0){\r\n// (specialReviewForm.tblSpecialReview.getSelectionModel()).setSelectionInterval(0, 0);\r\n// }\r\n //Added for case#3183 - Proposal Hierarchy - ends\r\n // Commented for Case# 3110: Special review in prop dev linked to protocols - Start\r\n// // Case # 2021\r\n// for(int index=0;index<vecSpecialReviewData.size();index++){\r\n// specialReviewFormBean = (SpecialReviewFormBean)vecSpecialReviewData.get(index);\r\n// //Added/Modified for case#2990 - start\r\n// if(specialReviewFormBean.getSpecialReviewCode() == 1){\r\n// if(specialReviewFormBean.getProtocolSPRevNumber()!= null){\r\n// ProtocolInfoBean protocolInfoBean = getProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n// if(protocolInfoBean!= null){\r\n// if(protocolInfoBean.getProtocolStatusDesc() != null && !protocolInfoBean.getProtocolStatusDesc().equals(\"\")){\r\n// specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n// }\r\n// if(protocolInfoBean.getApplicationDate() != null && !protocolInfoBean.getApplicationDate().equals(\"\")){\r\n// specialReviewFormBean.setApplicationDate(protocolInfoBean.getApplicationDate());\r\n// }\r\n// if(protocolInfoBean.getApprovalDate() != null && !protocolInfoBean.getApprovalDate().equals(\"\")){\r\n// specialReviewFormBean.setApprovalDate(protocolInfoBean.getApprovalDate());\r\n// }\r\n// }\r\n// }\r\n// }\r\n// //Added/Modified for case#2990 - end\r\n// }// Case # 2021\r\n // Commented for Case# 3110: Special review in prop dev linked to protocols - End\r\n }\r\n }catch (CoeusException ex){\r\n ex.printStackTrace();\r\n CoeusOptionPane.showErrorDialog(ex.getMessage());\r\n }\r\n }", "public Object getCustomerBehaviorModelSpecificationRequestActionTaskRecord() {\n return customerBehaviorModelSpecificationRequestActionTaskRecord;\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tMessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.REQUEST); \n\t\t\tACLMessage msg = receive(mt);\n\t\t\tif(msg != null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContentElement ce = null;\n\t\t\t\t\tSystem.out.println(msg.getContent()); //print out the message content in SL\n\n\t\t\t\t\t// Let JADE convert from String to Java objects\n\t\t\t\t\t// Output will be a ContentElement\n\t\t\t\t\tce = getContentManager().extractContent(msg);\n\t\t\t\t\tSystem.out.println(ce);\n\t\t\t\t\tif(ce instanceof Action) {\n\t\t\t\t\t\tConcept action = ((Action)ce).getAction();\n\t\t\t\t\t\tif (action instanceof SupplierOrder) {\n\t\t\t\t\t\t\tSupplierOrder order = (SupplierOrder)action;\n\t\t\t\t\t\t\t//CustomerOrder cust = order.getItem();\n\t\t\t\t\t\t\t//OrderQuantity = order.getQuantity();\n\t\t\t\t\t\t\tif(!order.isFinishOrder()) {\n\t\t\t\t\t\t\tSystem.out.println(\"exp test: \" + order.getQuantity());\n\t\t\t\t\t\t\trecievedOrders.add(order);}\n\t\t\t\t\t\t\telse {orderReciever = true;}\n\t\t\t\t\t\t\t//Item it = order.getItem();\n\t\t\t\t\t\t\t// Extract the CD name and print it to demonstrate use of the ontology\n\t\t\t\t\t\t\t//if(it instanceof CD){\n\t\t\t\t\t\t\t\t//CD cd = (CD)it;\n\t\t\t\t\t\t\t\t//check if seller has it in stock\n\t\t\t\t\t\t\t\t//if(itemsForSale.containsKey(cd.getSerialNumber())) {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Selling CD \" + cd.getName());\n\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\t//else {\n\t\t\t\t\t\t\t\t\t//System.out.println(\"You tried to order something out of stock!!!! Check first!\");\n\t\t\t\t\t\t\t\t//}\n\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t}\n\t\t\t\t\t//deal with bool set here\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (CodecException ce) {\n\t\t\t\t\tce.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (OntologyException oe) {\n\t\t\t\t\toe.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tblock();\n\t\t\t}\n\t\t}", "org.naru.park.ParkController.CommonActionOrBuilder getGetUserHistoryOrBuilder();", "private void createActions() {\n\n\t\t//-----------------------------------------------\n\t\t// Check if Party Exists\n\t\t//-----------------------------------------------\n\t\tpartyExists = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return emailaddressField.noValue();}\n\t\t\tprotected void send() {super.send(getValue(new PartyExists()));}\n\t\t\tprotected void receive(Party party) {\n\t\t\t\tif (party != null ) {setValue(party);}\n\t\t\t}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Read Party\n\t\t//-----------------------------------------------\n\t\tactorRead = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return partyField.noValue();}\n\t\t\tprotected void send() {super.send(getValue(new ActorRead()));}\n\t\t\tprotected void receive(Party party){setValue(party);}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Update Party\n\t\t//-----------------------------------------------\n\t\tactorUpdate = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {\n\t\t\t\treturn (\n\t\t\t\t\t\tifMessage(AbstractRoot.noOrganizationid(), Level.TERSE, AbstractField.CONSTANTS.errOrganizationid(), partyField)\n\t\t\t\t\t\t|| ifMessage(partyField.noValue(), Level.TERSE, AbstractField.CONSTANTS.errId(), partyField)\n\t\t\t\t\t\t|| ifMessage(emailaddressField.noValue(), Level.ERROR, AbstractField.CONSTANTS.errEmailaddress(), emailaddressField)\n\t\t\t\t\t\t|| ifMessage(formatdateField.noValue(), Level.ERROR, CONSTANTS.formatdateError(), formatdateField)\n\t\t\t\t\t\t|| ifMessage(formatphoneField.noValue(), Level.ERROR, CONSTANTS.formatphoneError(), formatphoneField)\n\t\t\t\t\t\t|| ifMessage(!Party.isEmailAddress(emailaddressField.getValue()), Level.ERROR, AbstractField.CONSTANTS.errEmailaddress(), emailaddressField)\n//\t\t\t\t\t\t|| ifMessage((typesField.hasValue(Party.Type.Agent.name()) || typesField.hasValue(Party.Type.Organization.name())) && !partyField.hasValue(AbstractRoot.getOrganizationid()), Level.ERROR, CONSTANTS.partytypeError(), partyField)\n\t\t\t\t);\n\t\t\t}\n\t\t\tprotected void send() {super.send(getValue(new ActorUpdate()));}\n\t\t\tprotected void receive(Party party) {\n\t\t\t\tif (parentTable != null) {parentTable.execute(true);}\n\t\t\t\thide();\n\t\t\t}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Delete Party\n\t\t//-----------------------------------------------\n\t\tactorDelete = new GuardedRequest<Party>() {\n\t\t\tprotected String popup() {return AbstractField.CONSTANTS.errDeleteOK();}\n\t\t\tpublic void cancel() {state = oldstate;}\n\t\t\tprotected boolean error() {\n\t\t\t\treturn (\n\t\t\t\t\t\tifMessage(partyField.noValue(), Level.TERSE, AbstractField.CONSTANTS.errId(), partyField)\n\t\t\t\t);\n\t\t\t}\n\t\t\tprotected void send() {super.send(getValue(new ActorDelete()));}\n\t\t\tprotected void receive(Party party){\n\t\t\t\tif (parentTable != null) {parentTable.execute(true);}\n\t\t\t\thide();\n\t\t\t}\n\t\t};\t\n\t}", "public RemoteCommitEvent(int payloadType, Collection addIds,\n Collection addClasses, Collection updates, Collection deletes) {\n _payload = payloadType;\n if (addIds != null)\n _addIds = Collections.unmodifiableCollection(addIds);\n if (addClasses != null)\n _addClasses = Collections.unmodifiableCollection(addClasses);\n if (updates != null)\n _updates = Collections.unmodifiableCollection(updates);\n if (deletes != null)\n _deletes = Collections.unmodifiableCollection(deletes);\n }", "protected void processAction(Event e) {\n\n\t\t// First check to see if the fields are empty.\n\t\tif (typeNameTF.getText().isEmpty() || unitsTF.getText().isEmpty() || unitMeasureTF.getText().isEmpty()\n\t\t\t\t|| validityDaysTF.getText().isEmpty() || reorderPointTF.getText().isEmpty()\n\t\t\t\t|| notesTF.getText().isEmpty())\n\t\t\tmessageLBL.setText(\"All Item Type data must be filled\");\n\t\telse if(!isInt(unitsTF.getText())) {\n\t\t\tmessageLBL.setText(\"Units must be an integer.\");\n\t\t}\n\t\telse if(!isInt(validityDaysTF.getText())) {\n\t\t\tmessageLBL.setText(\"Validity days must be an integer.\");\n\t\t}\n\t\telse if(!isInt(reorderPointTF.getText())) {\n\t\t\tmessageLBL.setText(\"Reorder point must be an integer.\");\n\t\t}\n\t\t// Then check to see if it is the submit button.\n\t\telse if (e.getSource() == submitBTN)\n\t\t\taddInventoryItemType();\n\t}", "void addWorkflow(Workflow workflow);", "public ActionInfo(Class actionClass, Preferences actionPrefs) {\n this.actionClass = actionClass;\n this.actionPrefs = actionPrefs;\n }", "private void getAddButtonSemantics() {\r\n String requestingTweetID = addTweet.getidTextField().getText();\r\n String requestingTweetBody = addTweet.getBodyTextField().getText();\r\n JFrame error = new JFrame(\"Error\");\r\n\r\n if (!isNumeric(requestingTweetID) || requestingTweetID.contains(\"-\")) {\r\n JOptionPane.showMessageDialog(error, \"The specified ID is not a valid number!\");\r\n } else {\r\n Tweet requestingTweet = new Tweet(requestingTweetID, requestingTweetBody);\r\n requestingTweet.setID(requestingTweetID);\r\n requestingTweet.setBody(requestingTweetBody);\r\n if (twitterModel.contains(requestingTweet)) {\r\n JOptionPane.showMessageDialog(error, \"The specified ID is not a valid number!\");\r\n } else {\r\n twitterModel.add(requestingTweet);\r\n System.out.println(\"Tweet added: \" + requestingTweet.getID() + \": \" + requestingTweet.getBody());\r\n// for (int i = 0; i < twitterModel.getTweetList().size(); i++) {\r\n// //System.out.println(Arrays.toString(twitterModel.getTweetList().toArray()));\r\n//\r\n// }\r\n System.out.println(twitterModel.getTweetList());\r\n }\r\n }\r\n }", "public ActionReport getActionReport();", "public static void invokeGetFeedSubmissionList(MarketplaceWebService service, GetFeedSubmissionListRequest request)\n {\n try\n {\n\n GetFeedSubmissionListResponse response = service.getFeedSubmissionList(request);\n\n\n System.out.println(\"GetFeedSubmissionList Action Response\");\n System.out.println(\"=============================================================================\");\n System.out.println();\n\n System.out.print(\" GetFeedSubmissionListResponse\");\n System.out.println();\n if (response.isSetGetFeedSubmissionListResult())\n {\n System.out.print(\" GetFeedSubmissionListResult\");\n System.out.println();\n GetFeedSubmissionListResult getFeedSubmissionListResult = response.getGetFeedSubmissionListResult();\n if (getFeedSubmissionListResult.isSetNextToken())\n {\n System.out.print(\" NextToken\");\n System.out.println();\n System.out.print(\" \" + getFeedSubmissionListResult.getNextToken());\n System.out.println();\n }\n if (getFeedSubmissionListResult.isSetHasNext())\n {\n System.out.print(\" HasNext\");\n System.out.println();\n System.out.print(\" \" + getFeedSubmissionListResult.isHasNext());\n System.out.println();\n }\n java.util.List<FeedSubmissionInfo> feedSubmissionInfoList = getFeedSubmissionListResult.getFeedSubmissionInfoList();\n for (FeedSubmissionInfo feedSubmissionInfo : feedSubmissionInfoList)\n {\n System.out.print(\" FeedSubmissionInfo\");\n System.out.println();\n if (feedSubmissionInfo.isSetFeedSubmissionId())\n {\n System.out.print(\" FeedSubmissionId\");\n System.out.println();\n System.out.print(\" \" + feedSubmissionInfo.getFeedSubmissionId());\n System.out.println();\n }\n if (feedSubmissionInfo.isSetFeedType())\n {\n System.out.print(\" FeedType\");\n System.out.println();\n System.out.print(\" \" + feedSubmissionInfo.getFeedType());\n System.out.println();\n }\n if (feedSubmissionInfo.isSetSubmittedDate())\n {\n System.out.print(\" SubmittedDate\");\n System.out.println();\n System.out.print(\" \" + feedSubmissionInfo.getSubmittedDate());\n System.out.println();\n }\n if (feedSubmissionInfo.isSetFeedProcessingStatus())\n {\n System.out.print(\" FeedProcessingStatus\");\n System.out.println();\n System.out.print(\" \" + feedSubmissionInfo.getFeedProcessingStatus());\n System.out.println();\n }\n if (feedSubmissionInfo.isSetStartedProcessingDate())\n {\n System.out.print(\" StartedProcessingDate\");\n System.out.println();\n System.out.print(\" \" + feedSubmissionInfo.getStartedProcessingDate());\n System.out.println();\n }\n if (feedSubmissionInfo.isSetCompletedProcessingDate())\n {\n System.out.print(\" CompletedProcessingDate\");\n System.out.println();\n System.out.print(\" \" + feedSubmissionInfo.getCompletedProcessingDate());\n System.out.println();\n }\n }\n }\n if (response.isSetResponseMetadata())\n {\n System.out.print(\" ResponseMetadata\");\n System.out.println();\n ResponseMetadata responseMetadata = response.getResponseMetadata();\n if (responseMetadata.isSetRequestId())\n {\n System.out.print(\" RequestId\");\n System.out.println();\n System.out.print(\" \" + responseMetadata.getRequestId());\n System.out.println();\n }\n }\n System.out.println();\n System.out.println(response.getResponseHeaderMetadata());\n System.out.println();\n\n\n }\n catch (MarketplaceWebServiceException ex)\n {\n\n System.out.println(\"Caught Exception: \" + ex.getMessage());\n System.out.println(\"Response Status Code: \" + ex.getStatusCode());\n System.out.println(\"Error Code: \" + ex.getErrorCode());\n System.out.println(\"Error Type: \" + ex.getErrorType());\n System.out.println(\"Request ID: \" + ex.getRequestId());\n System.out.print(\"XML: \" + ex.getXML());\n System.out.println(\"ResponseHeaderMetadata: \" + ex.getResponseHeaderMetadata());\n }\n }", "public long getSubmissionId() {\r\n return submissionId;\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAction() != null)\n sb.append(\"Action: \").append(getAction()).append(\",\");\n if (getDateAdded() != null)\n sb.append(\"DateAdded: \").append(getDateAdded()).append(\",\");\n if (getDateDue() != null)\n sb.append(\"DateDue: \").append(getDateDue());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUIViewTransactionHistory h = new GUIViewTransactionHistory(true);\n\t\t\t}", "public void submitChanges(EmploymentPeriod ep) {\r\n System.out.println(\"Submitchanges ep Id: \" + ep.getId());\r\n EmploymentPeriodPersistence mepp = new EmploymentPeriodPersistence();\r\n EmploymentPeriod dbEmploymentPeriod = mepp.getEmploymentPeriod(ep);\r\n\r\n System.out.println(dbEmploymentPeriod.getEmploymentLevelPercent() + \" new: \" + ep.getEmploymentLevelPercent());\r\n\r\n if (dbEmploymentPeriod.getEmploymentLevelPercent() != ep.getEmploymentLevelPercent() ||\r\n dbEmploymentPeriod.getMaxOvertime() != ep.getMaxOvertime() ||\r\n dbEmploymentPeriod.getDailyWorkingHours() != ep.getDailyWorkingHours()) {\r\n logger.info(\"Employment Percent changed, creating new EmploymentPeriod\");\r\n generateNewEmploymentPeriod(ep, dbEmploymentPeriod);\r\n deactivateOldEmploymentPeriod(dbEmploymentPeriod);\r\n } else\r\n System.out.println(\"else\");\r\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tfinal String appview = app_view.getText()\n\t\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t\tLinearLayout shenpi = (LinearLayout) LayoutInflater\n\t\t\t\t\t\t\t\t\t.from(context).inflate(\n\t\t\t\t\t\t\t\t\t\t\tR.layout.submit_dialog, null);\n\t\t\t\t\t\t\tTextView heads = (TextView) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.heads);\n\t\t\t\t\t\t\tButton button_t = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_t);\n\t\t\t\t\t\t\tButton button_f = (Button) shenpi\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.button_f);\n\t\t\t\t\t\t\theads.setText(\"您确定要提交审核吗?\");\n\t\t\t\t\t\t\tdialog_app.show();\n\t\t\t\t\t\t\tdialog_app.getWindow().setContentView(shenpi);\n\t\t\t\t\t\t\tbutton_t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tToastManager.getInstance(context).showToastcenter(\"此功能暂不能使用\");\n\n\n//{taskId=405574, applyId=1201, proc_inst_id=405515, descId=usertask5, verifyOtDetail=verifyOtDetail, state=57, duTime=, userids=228, id=1515, mainCause=和你一\n//\n//起碎,沉睡的人们毫无知觉, applyNameState=9, end_time=2016-07-08 23:23, start_time=2016-07-08 18:23, app_view=核实刘宇庭加班时长:}\n\n//\t\t\t\t\t\t\t\t\tRequestParams param = new RequestParams();\n//\t\t\t\t\t\t\t\t\tparam.put(\"taskId\", TaskId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"applyId\", applyId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"key\", key);\n//\t\t\t\t\t\t\t\t\tparam.put(\"applyNameState\", applyNameState);\n////\t\t\t\t\t\t\t\t\tparam.put(\"id\", );\n//\t\t\t\t\t\t\t\t\tparam.put(\"proc_inst_id\", procInstId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"verifyOtDetail\", \"verifyOtDetail\");\n////\t\t\t\t\t\t\t\t\tparam.put(\"userids\", \"\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"state\", mstate);\n//\t\t\t\t\t\t\t\t\tparam.put(\"duTime\", \"\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"authApp\", app_atate);\n//\t\t\t\t\t\t\t\t\tparam.put(\"descId\", descId);\n//\t\t\t\t\t\t\t\t\tparam.put(\"mainCause\", appview);\n//\t\t\t\t\t\t\t\t\tparam.put(\"start_time\", \"2016-07-08 18:23\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"end_time\", \"2016-07-08 23:23\");\n//\t\t\t\t\t\t\t\t\tparam.put(\"app_view\", \"核实刘宇庭加班时长:\");\n//\t\t\t\t\t\t\t\t\tDialog progressDialog = dialog_util\n//\t\t\t\t\t\t\t\t\t\t\t.showWaitingDialog(\n//\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\"正在审批\", false);\n//\t\t\t\t\t\t\t\t\tasync.post(\n//\t\t\t\t\t\t\t\t\t\t\tAPIURL.CHECK.ADDDETAILS,\n//\t\t\t\t\t\t\t\t\t\t\tcontext,\n//\t\t\t\t\t\t\t\t\t\t\tparam,\n//\t\t\t\t\t\t\t\t\t\t\tnew JsonHandlerApproval(\n//\t\t\t\t\t\t\t\t\t\t\t\t\tOverTimeTaskDetailsActivity.this,\n//\t\t\t\t\t\t\t\t\t\t\t\t\tprogressDialog));\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\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\tbutton_f.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}", "public void takeAction(BoardGameController.BoardBugAction action)\n {\n\n }" ]
[ "0.56752175", "0.5558944", "0.518296", "0.50208944", "0.5014295", "0.49078122", "0.4867213", "0.4850453", "0.4803537", "0.4785736", "0.4784007", "0.47696227", "0.47315732", "0.47277743", "0.47187144", "0.4687315", "0.4682378", "0.4677651", "0.46684277", "0.46505728", "0.46017033", "0.460089", "0.45894143", "0.45796695", "0.45754635", "0.45696864", "0.45672384", "0.45508462", "0.45429125", "0.45412633", "0.45390725", "0.45307902", "0.45212862", "0.451647", "0.45150685", "0.4504387", "0.45034412", "0.4502573", "0.4501008", "0.44958323", "0.44925943", "0.44879353", "0.44852644", "0.44809192", "0.44802088", "0.44773522", "0.4437386", "0.44281885", "0.44265047", "0.44245645", "0.442136", "0.44187662", "0.44145933", "0.4412951", "0.44031072", "0.44031027", "0.4402107", "0.44000107", "0.4399009", "0.43937007", "0.43846893", "0.43771428", "0.4377015", "0.43704838", "0.4368865", "0.43679738", "0.43663102", "0.43570608", "0.43567163", "0.43507257", "0.4350138", "0.43470517", "0.43440065", "0.43414634", "0.43412614", "0.43385416", "0.4338449", "0.433352", "0.43310922", "0.4328323", "0.43143976", "0.4306481", "0.42970118", "0.42960122", "0.42937154", "0.4293451", "0.42916638", "0.42904413", "0.42842168", "0.4282936", "0.42805377", "0.42772266", "0.42756858", "0.42727822", "0.4271416", "0.42708287", "0.42675045", "0.42660645", "0.426288", "0.42609426" ]
0.5571709
1
Create a ProtocolBase Submission.
protected IacucProtocolSubmission createProtocolSubmission(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) { IacucProtocolSubmissionBuilder submissionBuilder = new IacucProtocolSubmissionBuilder(protocol, submitAction.getSubmissionTypeCode()); submissionBuilder.setSubmissionTypeQualifierCode(submitAction.getSubmissionQualifierTypeCode()); submissionBuilder.setProtocolReviewTypeCode(submitAction.getProtocolReviewTypeCode()); setSubmissionStatus(submissionBuilder, submitAction); setCommittee(submissionBuilder, submitAction); setSchedule(submissionBuilder, submitAction); return submissionBuilder.create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract DankSubmissionRequest build();", "ExpProtocol insertProtocol(@NotNull ExpProtocol baseProtocol, @Nullable List<ExpProtocol> steps, @Nullable Map<String, List<String>> predecessors, User user) throws ExperimentException;", "private static void createSubmission(String[] attributes, int docuID, int orgID) {\n\t\tint actID = ActivityDetailsService.getActivityDetailsByDocuID(docuID).getId();\n\t\tint submissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t//System.out.println(\"docuID: \" + docuID);\n\t\tif(submissionID == 0){\n\t\t\t//create submission details\n\t\t\tSubmissionDetails subDet = new SubmissionDetails();\n\t\t\tsubDet.setActID(actID);\n\t\t\tsubDet.setSubmittedBy(attributes[16]);\n\t\t\tsubDet.setContactNo(attributes[17]);\n\t\t\tsubDet.setEmailAddress(attributes[18]);\n\t\t\tsubDet.setDateSubmitted(toDateTime(attributes[0]));\n\t\t\tsubDet.setSubmissionType(attributes[4]);\n\t\t\t\n\t\t\tif(subDet.getSubmissionType().equalsIgnoreCase(\"Special Approval Slip\"))\n\t\t\t\tsubDet.setSasType(attributes[19]);\n\t\t\telse subDet.setSasType(\"-\");\n\t\t\tSubmissionDetailsService.addSubmissionDetails(subDet);\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t} else {\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t}\n\t\n\t}", "public CreationScenario(IEmergencyDispatchApi api, Logger logger) {\n\t\tsuper(\"Creation Test\", api, logger);\n\t}", "@Override\n public void Submit() {\n }", "public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}", "public void submitToIacucForReview(IacucProtocol protocol, IacucProtocolSubmitAction submitAction) throws Exception {\n \n /*\n * The submission is saved first so that its new primary key can be added\n * to the protocol action entry.\n */\n String prevSubmissionStatus = protocol.getProtocolSubmission().getSubmissionStatusCode();\n String submissionTypeCode = protocol.getProtocolSubmission().getSubmissionTypeCode();\n IacucProtocolSubmission submission = createProtocolSubmission(protocol, submitAction);\n \n /*\n * If this is an initial submission, then set the initial submission date.\n */\n if (protocol.getInitialSubmissionDate() == null) {\n protocol.setInitialSubmissionDate(new Date(submission.getSubmissionDate().getTime()));\n }\n \n getIacucProtocolAssignReviewersService().assignReviewers(submission, submitAction.getReviewers());\n \n IacucProtocolAction protocolAction = new IacucProtocolAction(protocol, submission, IacucProtocolActionType.SUBMITTED_TO_IACUC);\n protocolAction.setComments(SUBMITTED_TO_IACUC);\n //For the purpose of audit trail\n protocolAction.setPrevProtocolStatusCode(protocol.getProtocolStatusCode());\n protocolAction.setPrevSubmissionStatusCode(prevSubmissionStatus);\n protocolAction.setSubmissionTypeCode(submissionTypeCode);\n protocolAction.setCreatedSubmission(true);\n protocol.getProtocolActions().add(protocolAction);\n \n IacucProtocolStatus protocolStatus = new IacucProtocolStatus();\n protocolStatus.setProtocolStatusCode(IacucProtocolActionType.SUBMITTED_TO_IACUC);\n protocolStatus.setDescription(SUBMITTED_TO_IACUC);\n protocol.setProtocolStatus(protocolStatus);\n protocol.setProtocolStatusCode(IacucProtocolActionType.SUBMITTED_TO_IACUC);\n \n protocolActionService.updateProtocolStatus(protocolAction, protocol);\n \n if (submission.getScheduleIdFk() != null) {\n updateDefaultSchedule(submission);\n }\n businessObjectService.delete(protocol.getProtocolDocument().getPessimisticLocks());\n protocol.getProtocolDocument().getPessimisticLocks().clear();\n documentService.saveDocument(protocol.getProtocolDocument());\n\n protocol.refresh();\n }", "JobResponse create();", "@Transactional\n\tpublic void saveNewProtocol(FlowObjCreator foc) {\n\t\tInteger idf = foc.getIdf();\n\t\tTree newProtocolT = saveNewDocRoot(idf, \"protocol\");\n\t\tProtocol newProtocolO = foc.getNewProtocol();\n\t\tlog.debug(newProtocolO);\n\t\tConceptMtl.reviseIntention(newProtocolO);\n\t\tlog.debug(newProtocolO);\n\t\tnewProtocolO.setProtocoltype(\"clinic\");\n\t\tnewProtocolO.setId(newProtocolT.getId());\n\t\tTree definitionT = addChild(\"definition\",newProtocolT,newProtocolT);\n\t\t\n\t\tTree newTaskT = addChild(\"task\",definitionT,newProtocolT);\n\t\tnewTaskT.setIdClass(newTaskT.getId());\n\t\tint duration = 14;\n\t\tduration = newProtocolO.getDuration();\n\t\tTask newTaskC = newTaskC(newProtocolO.getSchemaName(),\"chemo\",duration, newTaskT);\n\t\taddHistory(newTaskT);\n\t\t\n//\t\tTask supportTaskC = new Task();\n//\t\tsupportTaskC.setTask(\"support\");\n//\t\tsupportTaskC = (Task) taskL(supportTaskC).get(0);\n\t\tSchemaMtl schemaMtl = new SchemaMtl(newTaskT);\n\t\tTree supportTaskC=initInsideTask(schemaMtl, \"support\");\n//\t\taddSchema(supportTaskC.getId(), newTaskT, newTaskT);\n\t\t\n\t\tTree newTask2T = addChild(\"task\",newProtocolT,newProtocolT);\n\t\tnewTask2T.setIdClass(newTaskT.getIdClass());\n//\t\tem.merge(newProtocolT);\n\t\tem.persist(newProtocolT);\n\t\tem.persist(newProtocolO);\n\t\tem.persist(newTaskC);\n\t\t//formUtil.setNewTaskT(newTaskT);\n\t\tfoc.setIdf(newTaskT.getId());\n\t}", "byte[] submit() throws CommitException;", "CreateWorkerResult createWorker(CreateWorkerRequest createWorkerRequest);", "public static SubmitMapper loadInstance(PegasusBag bag, File base)\n throws SubmitMapperFactoryException {\n\n PegasusProperties properties = (PegasusProperties) bag.get(PegasusBag.PEGASUS_PROPERTIES);\n String className = null;\n SubmitMapper creator;\n\n // sanity check\n try {\n if (properties == null) {\n throw new RuntimeException(\"Invalid properties passed\");\n }\n\n // figure out the implementing class\n // that needs to be instantiated.\n className = properties.getProperty(SubmitMapper.PROPERTY_PREFIX);\n className =\n (className == null || className.trim().length() < 2)\n ? DEFAULT_CREATOR\n : className;\n\n // prepend the package name if required\n className =\n (className.indexOf('.') == -1)\n ?\n // pick up from the default package\n DEFAULT_PACKAGE_NAME + \".\" + className\n :\n // load directly\n className;\n\n Properties mapperProps = properties.matchingSubset(SubmitMapper.PROPERTY_PREFIX, false);\n\n // try loading the class dynamically\n DynamicLoader dl = new DynamicLoader(className);\n creator = (SubmitMapper) dl.instantiate(new Object[0]);\n creator.initialize(bag, mapperProps, base);\n } catch (Exception e) {\n // chain the exception caught into the appropriate Factory Exception\n throw new SubmitMapperFactoryException(\"Instantiating SubmitMapper \", className, e);\n }\n\n return creator;\n }", "public abstract void submit(Callable callable);", "void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, \n String defaultEncoding) throws Exception;", "public String toString() {\n return \"submission\";\n }", "public abstract void submit(Runnable runnable);", "For createFor();", "public void createSurvey(int tid);", "public abstract void create();", "TIAssignment createTIAssignment();", "@Override\n public void submitAnswer(PlayerAnswer playerAnswer) {\n\n\n }", "protected abstract void sendNewPost(Discussion discussion, Post post);", "public void submit(Batch batch);", "@Override\r\n\tpublic int type() {\n\t\treturn Packets.CREATE;\r\n\t}", "public Payload() {}", "P createP();", "void create(Feedback entity);", "public MimeMultipart(String subtype) {\n/* 179 */ String boundary = UniqueValue.getUniqueBoundaryValue();\n/* 180 */ ContentType cType = new ContentType(\"multipart\", subtype, null);\n/* 181 */ cType.setParameter(\"boundary\", boundary);\n/* 182 */ this.contentType = cType.toString();\n/* */ }", "public void create(){}", "private Protocol() {}", "public abstract String enableSubmission(ISubmissionProject project);", "DataWrapper submit(Long projectId);", "private TaskProtocol(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "MessageClasses<I, M> createCopyForNewSuperstep();", "@POST\n\t@Path(\"task/submission\")\n\tpublic void taskSubmission(TaskSubmissionTO sumbmissionTO, @Context HttpServletRequest request, @Context HttpServletResponse response) {\n\t\tlogger.info(\"taskSubmission start\");\n\t\tMap<String, Object> json = new HashMap<>();\n\t\tEntityManager em = EntityManagerHelper.getDefaulteEntityManager();\n\t\ttry {\n\t\t\tTaskService taskService = new TaskService(em);\n\t\t\tTaskSubmission taskSumission = taskService.upsertTaskSubmission(sumbmissionTO, CurrentContext.getAppUser());\n\t\t\tTaskSubmissionTO savedTO = new TaskSubmissionTO(taskSumission);\n\t\t\tjson.put(Constants.CODE, Constants.RESPONSE_OK);\n\t\t\tjson.put(Constants.DATA_ITEM, savedTO);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e );\n\n\t\t\tjson.put(Constants.CODE, Constants.ERROR_WITH_MSG);\n\t\t\tjson.put(Constants.MESSAGE, e.getMessage());\n\t\t} finally {\n\t\t\tif (em.isOpen()) {\n\t\t\t\tem.close();\n\t\t\t}\n\t\t}\n\t\trenderResponseJson(json, response);\n\t\tlogger.info(\"taskSubmission exit\");\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate void buildAndSubmit() throws Exception\r\n {\r\n TopologyBuilder builder = new TopologyBuilder();\r\n builder.setSpout(RANDOM_SENTENCE_SPOUT_ID, new RandomSentenceSpout(), 1);\r\n builder.setBolt(KAFKA_BOLT_ID, new KafkaBolt(topologyConfig), 1).shuffleGrouping(RANDOM_SENTENCE_SPOUT_ID);\r\n builder.setBolt(HBASE_UPDATE_BOLT_ID, HBaseUpdateBolt.make(topologyConfig), 1).shuffleGrouping(RANDOM_SENTENCE_SPOUT_ID);\r\n \r\n Config conf = new Config(); \r\n conf.setDebug(false);\r\n \r\n StormSubmitter.submitTopology(\"jason-hbase-storm\", conf, builder.createTopology());\r\n }", "public FileFormatFormData create(FileFormatFormData formData)\r\n\t\t\tthrows ProcessingException;", "@Override\n\tpublic Trunk create(final List<NameValuePair> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "protected GuiTestObject nextsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"nextsubmit\"));\n\t}", "Flow createFlow();", "private void submitSurvey(Bundle capturedArgs) {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n\n Bundle allArgs = new Bundle(capturedArgs);\n allArgs.putString(Store.KEY_FIELD_FIRST_NAME,\n sharedPref.getString(SettingsActivity.KEY_PREF_FIRST_NAME, \"\"));\n allArgs.putString(Store.KEY_FIELD_LAST_NAME,\n sharedPref.getString(SettingsActivity.KEY_PREF_LAST_NAME, \"\"));\n allArgs.putString(Store.KEY_FIELD_GENDER,\n sharedPref.getString(SettingsActivity.KEY_PREF_GENDER, \"\"));\n allArgs.putInt(Store.KEY_FIELD_BIRTH_YEAR,\n sharedPref.getInt(SettingsActivity.KEY_PREF_BIRTH_YEAR, 1990));\n allArgs.putString(Store.KEY_FIELD_STREET,\n sharedPref.getString(SettingsActivity.KEY_PREF_STREET, \"\"));\n allArgs.putString(Store.KEY_FIELD_CITY,\n sharedPref.getString(SettingsActivity.KEY_PREF_CITY, \"\"));\n allArgs.putString(Store.KEY_FIELD_POSTAL_CODE,\n sharedPref.getString(SettingsActivity.KEY_PREF_POSTAL_CODE, \"\"));\n allArgs.putString(Store.KEY_FIELD_EMAIL,\n sharedPref.getString(SettingsActivity.KEY_PREF_EMAIL, \"\"));\n allArgs.putString(Store.KEY_FIELD_PHONE,\n sharedPref.getString(SettingsActivity.KEY_PREF_PHONE, \"\"));\n\n //Send to the API the new SurveyFields instance built by FieldsFactory\n mApiClient.conductSurvey(FieldsFactory.getFields(allArgs));\n\n }", "public abstract AbstractTask createTask(String repositoryUrl, String id, String summary);", "public static void submitJobHelper(CondorScheddPortType schedd,\n\t\t\t\t Transaction transaction,\n\t\t\t\t int clusterId, int jobId, String owner,\n\t\t\t\t UniverseType type,\n\t\t\t\t String cmd, String args,\n\t\t\t\t String requirements,\n\t\t\t\t ClassAdStructAttr[] newAttr,\n\t\t\t\t String[] files)\n\tthrows JobSubmissionException, SendFileException,\n\t java.io.IOException, java.rmi.RemoteException {\n\n\tboolean dontCommit = true;\n\tboolean nullTransaction = false;\n\n\tif(transaction == null) {\n\t dontCommit = false;\n\t nullTransaction = true;\n\t TransactionAndStatus trans_s = schedd.beginTransaction(60);\n\t if(!(trans_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to begin Transaction\");\n\t\tthrow new JobSubmissionException(\"Failed to begin Transaction\");\n\t }\n\t transaction = trans_s.getTransaction();\n\t}\n\n\tif(clusterId < 0) {\n\t IntAndStatus clust_s = schedd.newCluster(transaction);\n\t if(!(clust_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to create new cluster\");\n\t\tthrow new JobSubmissionException(\"Failed to create new cluster\");\n\t }\n\t clusterId = (clust_s.getInteger()).intValue();\n\t}\n\n\tif(jobId < 0) {\n\t IntAndStatus jobid_s = schedd.newJob(transaction, clusterId);\n\t if(!(jobid_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to create new Job\");\n\t\tthrow new JobSubmissionException(\"Failed to create new Job\");\n\t }\n\t jobId = (jobid_s.getInteger()).intValue();\n\t}\n\n\tif(!dontCommit) {\n\t Status st = schedd.commitTransaction(transaction);\n\t if(!(st.getCode()).equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to commit\");\n\t\tthrow new JobSubmissionException(\"Failed to commit\");\n\t }\n\t}\n\n\tif(owner == null) {\n\t owner = System.getProperty(\"user.name\");\n\t}\n\n\tif(type == null) {\n\t type = UniverseType.STANDARD;\n\t}\n\n\tif(args == null) {\n\t args = \"\";\n\t}\n\n\tif(requirements == null) {\n\t requirements = \"TRUE\";\n\t}\n\n\tif(cmd == null) {\n\t System.err.println(\"Illegal Job Template parameter - CommandName has to be specified\");\n\t throw new JobSubmissionException(\"Illegal Job Template parameters - CommandName has to be specified\");\n\t}\n\tClassAdStructAndStatus cas_s =\n\t schedd.createJobTemplate(clusterId, jobId, owner,\n\t\t\t\t type, cmd, args, requirements);\n\tif(!(cas_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t System.err.println(\"Failed to create Job Template\");\n\t throw new JobSubmissionException(\"Failed to create Job Template\");\n\t}\n\tClassAdStructAttr[] jobAd = cas_s.getClassAd().getItem();\n\n\tif(newAttr != null) {\n\t for(int i=0; i<newAttr.length; i++) {\n\t\tjobAd = setAttributeValue(jobAd, newAttr[i]);\n\t }\n\t}\n\n\tif(nullTransaction)\n\t transaction = null;\n\n\tsubmitJobHelper(schedd, transaction, jobAd, files);\n\n }", "Future<CreateBackendResponse> createBackend(\n CreateBackendRequest request,\n AsyncHandler<CreateBackendRequest, CreateBackendResponse> handler);", "@NonNull\n @MainThread\n protected abstract LiveData<ApiResponse<RequestType>> createCall();", "InteractionFlowModel createInteractionFlowModel();", "@Override\n\tpublic void create(ReplyVO4 vo) throws Exception {\n\t\tsession.insert(namespace+\".create4\",vo);\n\t\n\t}", "private CreateTaskPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DataFlow createDataFlow();", "public abstract AttachmentPart createAttachmentPart();", "@Override\n\tprotected Object doInBackground(Object... params) {\n\t\treturn new JudgeSignNet(context, build.toJson1());\n\t}", "public AbstractBinaryInteraction() {\n\n\t}", "SendAction createSendAction();", "@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }", "protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING);\n }", "void create(Trubriques trubriques);", "@Override\r\n\tprotected CallableProtectedTask<String> createCallable(Method method,\r\n\t\t\tList<FileItem> input, DBProtocol item) throws ResourceException {\r\n\t\tDBUser user = null;\r\n\t\t\r\n\t\tif ((getRequest().getClientInfo().getUser()==null) || (getRequest().getClientInfo().getUser().getIdentifier()==null)) {\r\n\t\t\tuser = null;\r\n\t\t\t//we have default user and POST is protected by a filter\r\n\t\t\t/*\r\n\t\t\tthrow new ResourceException(Status.CLIENT_ERROR_UNAUTHORIZED.getCode(),\r\n\t\t\t\t\t\t\"Upload not allowed\",\r\n\t\t\t\t\t\t\"Only logged in users with editor rights may upload new documents\",\r\n\t\t\t\t\t\tStatus.CLIENT_ERROR_UNAUTHORIZED.getUri());\r\n\t\t\t\t\t\t*/\r\n\t\t} else {\r\n\t\t\tuser = new DBUser();\r\n\t\t\tuser.setUserName(getRequest().getClientInfo().getUser().getIdentifier());\r\n\t\t}\t\r\n\t\tConnection conn = null;\r\n\t\tDBConnection dbc = null;\r\n\t\ttry {\r\n\t\t\tProtocolQueryURIReporter r = new ProtocolQueryURIReporter(getRequest(),\"\");\r\n\t\t\tclass TDBConnection extends QDBConnection {\r\n\t\t\t\tpublic TDBConnection(Context context,Properties configFile) {\r\n\t\t\t\t\tsuper(context,configFile);\r\n\t\t\t\t}\r\n\t\t\t\tpublic String getDir() {\r\n\t\t\t\t\tloadProperties();\r\n\t\t\t\t\treturn getAttachmentDir();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tdbc = new TDBConnection(getApplication().getContext(),getDbConfig());\r\n\t\t\tconn = dbc.getConnection();\r\n\r\n\t\t\tString dir = ((TDBConnection)dbc).getDir();\r\n\t\t\tif (\"\".equals(dir)) dir = null;\r\n\t\t\treturn new CallableProtocolUpload(method,item,user,input,conn,r,getToken(),getRequest().getRootRef().toString(),\r\n\t\t\t\t\t\tdir==null?null:new File(dir),\r\n\t\t\t\t\t\t((TaskApplication)getApplication()).getResolver()\r\n\t\t\t);\r\n\t\t} catch (ResourceException x) {\r\n\t\t\tthrow x;\r\n\t\t} catch (Exception x) {\r\n\t\t\ttry { conn.close(); } catch (Exception xx) {}\r\n\t\t\tthrow new ResourceException(Status.SERVER_ERROR_INTERNAL,x);\r\n\t\t} finally {\r\n\t\t\tdbc = null;\r\n\t\t}\r\n\r\n\t}", "CompletableFuture<PostResponse> createNewPost(Post post);", "protected abstract CreateRemoteClassic<Msg, Ref> make_create();", "public Payload() {\n\t}", "Flows createFlows();", "@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}", "public TAccountTicketFlow(){}", "protected ProtocolVersion createProtocolVersion(int major, int minor) {\n/* 201 */ return this.protocol.forVersion(major, minor);\n/* */ }", "public abstract void create(T t);", "JobResponse create(Context context);", "@POST(\"replays/upload\")\n @Multipart\n Call<DataResponse<JobData>> createJob(@Part MultipartBody.Part replay);", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "public ActivityIdentifier submit(Activity activity) throws NoSuitableExecutorException;", "public PostBibTeXParser(final Class<? extends BibTex> pubInstanceToCreate) {\n\t\tthis();\n\t\tthis.pubInstanceToCreate = pubInstanceToCreate;\n\t}", "private void initProtocol() {\n\t\tprotocol = new MixingProtocol();\n\n\t\tRectangleMixingStep step1 = new RectangleMixingStep(1.25, true, true);\n\t\tRectangleMixingStep step2 = new RectangleMixingStep(2.50, true, false);\n\t\tRectangleMixingStep step3 = new RectangleMixingStep(3.75, false, true);\n\t\tRectangleMixingStep step4 = new RectangleMixingStep(4.0, false, false);\n\n\t\tprogram = new ArrayList<MixingStep>();\n\t\tprogram.add(step1);\n\t\tprogram.add(step2);\n\t\tprogram.add(step3);\n\t\tprogram.add(step4);\n\n\t\tprotocol.setProgram(program);\n\t}", "protected abstract JsonObject submitBuildArtifact(CloseableHttpClient httpclient,\n JsonObject jco, String submitUrl)\n throws IOException;", "@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }", "public void createNoSubject() {\n\n }", "Assignment createAssignment();", "Assignment createAssignment();", "GoalSpecification createGoalSpecification();", "@Override\n public void createTechnicalTestService(\n @RequestBody CreateProblemSetRequest createProblemSetRequest)\n {\n List<Problem> problemSet = createProblemSetService(createProblemSetRequest);\n TechnicalTest technicalTest = new TechnicalTest();\n\n technicalTest.setProblems(problemSet);\n technicalTest.setCv(cvRepository.findOne(createProblemSetRequest.getIdCV()));\n\n technicalTestRepository.save(technicalTest);\n\n }", "boolean createWork(Work work);", "@Override\n\tpublic String createSubForum_request() {\n\t\treturn null;\n\t}", "BOp createBOp();", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public abstract T create() throws PoolException;", "@Override\n public void copyFrom(ProtocolSubmitResponse message) {\n setOperationsApplied(message.getOperationsApplied());\n\n /**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n if (message.hasErrorMessage()) {\n setErrorMessage(message.getErrorMessage());\n } else {\n clearErrorMessage();\n }\n\n /**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n if (message.hasHashedVersionAfterApplication()) {\n setHashedVersionAfterApplication(message.getHashedVersionAfterApplication());\n } else {\n clearHashedVersionAfterApplication();\n }\n }", "TaskProtobufWrapper.CreateTaskPack getCreateTaskPack();", "public CreateRemoteClassic<Msg, Ref> create();", "public void create() {\n\t\t\n\t}", "@POST(\"/dev/gig/create_verify/\")\n Call<CreateGigResp> createGig(@Header(\"authorization\") String auth, @Body CreateGigReqBody createGig);", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method allows to create a new requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_CREATED, message = \"Returns the created requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response createRequirement(@ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToCreate) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n // TODO: check whether the current user may create a new requirement\n dalFacade = service.bazaarService.getDBConnection();\n Gson gson = new Gson();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n requirementToCreate.setCreatorId(internalUserId);\n Vtor vtor = service.bazaarService.getValidators();\n vtor.useProfiles(\"create\");\n vtor.validate(requirementToCreate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n\n // check if all components are in the same project\n for (Component component : requirementToCreate.getComponents()) {\n component = dalFacade.getComponentById(component.getId());\n if (requirementToCreate.getProjectId() != component.getProjectId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.VALIDATION, \"Component does not fit with project\");\n }\n }\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Create_REQUIREMENT, String.valueOf(requirementToCreate.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.create\"));\n }\n Requirement createdRequirement = dalFacade.createRequirement(requirementToCreate, internalUserId);\n dalFacade.followRequirement(internalUserId, createdRequirement.getId());\n\n // check if attachments are given\n if (requirementToCreate.getAttachments() != null && !requirementToCreate.getAttachments().isEmpty()) {\n for (Attachment attachment : requirementToCreate.getAttachments()) {\n attachment.setCreatorId(internalUserId);\n attachment.setRequirementId(createdRequirement.getId());\n vtor.validate(attachment);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n dalFacade.createAttachment(attachment);\n }\n }\n\n createdRequirement = dalFacade.getRequirementById(createdRequirement.getId(), internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, createdRequirement.getCreation_time(), Activity.ActivityAction.CREATE, createdRequirement.getId(),\n Activity.DataType.REQUIREMENT, createdRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.status(Response.Status.CREATED).entity(gson.toJson(createdRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }", "FlowType createFlowType();", "public ProtobufHttpMessageConverter() {\n\t super(PROTOBUF, ContentType.TEXT_PLAIN, ContentType.APPLICATION_JSON, ContentType.APPLICATION_XML);\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n\n sub = new Submission();\n }", "public Builder createBuilder(ProjectSubmission projectSubmission)\n\t\t\tthrows BuilderException, MissingConfigurationPropertyException, ZipExtractorException;", "protected abstract JsonObject submitBuild(CloseableHttpClient httpclient,\n File archive, String buildName, String originator) throws IOException;", "GoalModel createGoalModel();", "protected TaskFlow( ) { }", "void submit(String accountName, String accountDescription, String currency);", "public ProposalSpecialReviewForm() {\r\n }", "public LinkedIntegrationRuntimeRequest() {\n }" ]
[ "0.5908602", "0.54306334", "0.5345706", "0.52961516", "0.525248", "0.52495044", "0.51056844", "0.50901216", "0.5081819", "0.500371", "0.49813208", "0.49270067", "0.49228752", "0.48855296", "0.4884805", "0.4878602", "0.48601615", "0.48324305", "0.4829539", "0.48065573", "0.48057136", "0.4754223", "0.47496915", "0.47457236", "0.4730092", "0.47280037", "0.4719293", "0.4698711", "0.4691716", "0.46831566", "0.46778637", "0.4666108", "0.46594018", "0.46496847", "0.46486887", "0.46465343", "0.46458358", "0.46424958", "0.4632835", "0.4631986", "0.46212772", "0.46180972", "0.46165264", "0.4610341", "0.4602883", "0.45990363", "0.45900816", "0.45832464", "0.45820335", "0.45678577", "0.4565248", "0.4564653", "0.45602694", "0.45572814", "0.45560417", "0.45532975", "0.45529023", "0.45409715", "0.45274043", "0.4522435", "0.45170376", "0.44998065", "0.44988635", "0.4498336", "0.44951046", "0.4491126", "0.4489602", "0.4487439", "0.448223", "0.4460687", "0.44604728", "0.44577873", "0.4452406", "0.44502154", "0.44329277", "0.44308493", "0.44308493", "0.4429968", "0.44298345", "0.4428999", "0.44235778", "0.4420148", "0.4419493", "0.4411991", "0.4406037", "0.44044805", "0.43981186", "0.43971875", "0.43945697", "0.4394399", "0.43881664", "0.43859208", "0.43828952", "0.4377609", "0.43759897", "0.43749425", "0.43724784", "0.43723962", "0.43644375", "0.43591708" ]
0.7224977
0
Set the submission status.
protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) { // not setting committee during submit in iacuc so need not check that like in irb. submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStatus(JobStatus status);", "public void testSetSubmissionStatus() {\n try {\n sub.setSubmissionStatus(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }", "@Override\n\tpublic void setJobStatus(int jobStatus) {\n\t\tmodel.setJobStatus(jobStatus);\n\t}", "void setStatus(TaskStatus status);", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(String status) { this.status = status; }", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(WorkflowInstanceStatus status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(ProcessModelStatus status) {\r\n this.status = status;\r\n }", "public void setStatus(String status)\n {\n setValue(\"status\", status);\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(String _status) {\n this._status = _status;\n }", "void setStatus(int status);", "public void setStatus(Boolean s){ status = s;}", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}", "void setStatus(java.lang.String status);", "public void setStatus(java.lang.String status) {\n\t\t_forumUser.setStatus(status);\n\t}", "void setStatus(String status);", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}" ]
[ "0.7293228", "0.6967947", "0.6936256", "0.68302834", "0.6826004", "0.6809234", "0.67957336", "0.67809516", "0.6777023", "0.6758813", "0.67533785", "0.67533785", "0.6747627", "0.6747627", "0.67431474", "0.6740284", "0.6740284", "0.6740284", "0.6740284", "0.67367655", "0.67366403", "0.67366403", "0.67129153", "0.67098635", "0.6697063", "0.6697063", "0.6693355", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6690161", "0.6682099", "0.6682099", "0.6665876", "0.66545534", "0.6653283", "0.6653283", "0.6651278", "0.6651278", "0.66508526", "0.6639913", "0.6639913", "0.6638777", "0.6637976", "0.66288465", "0.66251415", "0.66220605", "0.66218674", "0.66218674", "0.66218674", "0.66218674", "0.66218674", "0.6616348", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.661515", "0.6614895", "0.65989774", "0.65989774", "0.65989774", "0.65861547", "0.658509", "0.65799415", "0.65767074", "0.65767074", "0.6571872", "0.6570255", "0.65654373", "0.6562764", "0.6561913", "0.6561913", "0.6561913" ]
0.71333915
1
Set committee for the submission.
protected void setCommittee(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) { submissionBuilder.setCommittee(submitAction.getNewCommitteeId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommittee(List<Professor> list) {\r\n committee = list;\r\n }", "public void addCommitteeMember(Professor p) {\r\n committee.add(p);\r\n }", "@When ( \"I assign representee (.+) for the patient (.+)\" )\n public void hcpAssignTee ( final String tee, final String tive ) {\n wait.until( ExpectedConditions\n .visibilityOfElementLocated( By.cssSelector( \"input[type=radio][value=\" + tive + \"]\" ) ) );\n driver.findElement( By.cssSelector( \"input[type=radio][value=\" + tive + \"]\" ) ).click();\n setTextField( By.name( \"representee\" ), tee );\n driver.findElement( By.name( \"representeeSubmit\" ) ).click();\n Patient.getByName( tive ).save();\n Patient.getByName( tee ).save();\n }", "public void setCessionarioCommittente(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.CessionarioCommittenteType cessionarioCommittente)\r\n {\r\n generatedSetterHelperImpl(cessionarioCommittente, CESSIONARIOCOMMITTENTE$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\r\n }", "public void setAssignee(double assignee) {\n this.assignee = assignee;\n }", "public String getCommitter() {\n return committer;\n }", "public void setCommitSpecifier(String commitSpecifier) {\n this.commitSpecifier = commitSpecifier;\n }", "public void setAssignment(StudentEntry se, CandidateAssignment ca) {\n\t\tassignments.put(se,ca);\n\t}", "public void setDefaultAssignee(Integer defaultAssignee) {\n this.defaultAssignee = defaultAssignee;\n }", "public void setRollBackAssignee(String rollBackAssignee) {\n\t\tthis.rollBackAssignee = rollBackAssignee;\r\n\t}", "@Override\n public Set<Committee> getAllCommittee(Editor editor) {\n Set<Committee> committeeSet = new HashSet<>();\n\n\n return committeeSet;\n }", "public final void setCommitmentName(java.lang.String commitmentname)\r\n\t{\r\n\t\tsetCommitmentName(getContext(), commitmentname);\r\n\t}", "void setOwner(Subject owner)\n {\n this.owner = owner;\n }", "public IssueBuilderAbstract addAssignee(String assignee){\n fieldAssignees.add(assignee);\n return this;\n }", "@When ( \"I assign representative (.+) for the patient (.+)\" )\n public void hcpAssignTive ( final String tive, final String tee ) {\n wait.until( ExpectedConditions\n .visibilityOfElementLocated( By.cssSelector( \"input[type=radio][value=\" + tee + \"]\" ) ) );\n driver.findElement( By.cssSelector( \"input[type=radio][value=\" + tee + \"]\" ) ).click();\n setTextField( By.name( \"representative\" ), tive );\n driver.findElement( By.name( \"representativeSubmit\" ) ).click();\n }", "protected void sequence_Assignement(ISerializationContext context, Assignement semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void addCommitter(ICommitter... committer) {\n this.committers.addAll(Arrays.asList(committer));\n }", "public void setTpe(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe tpe)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe)get_store().find_element_user(TPE$32, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe)get_store().add_element_user(TPE$32);\r\n }\r\n target.set(tpe);\r\n }\r\n }", "public void setConsignee(String consignee) {\n this.consignee = consignee;\n }", "public SetElevatorSetpoint(Constants.OIMap.Setpoint setpoint, Elevator elevator)\n {\n requires(elevator);\n logger = LoggerFactory.createNewLogger(this.getClass());\n this.setpoint = setpoint;\n this.elevator = elevator;\n }", "public void setSubject(Subject subject);", "protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING);\n }", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public void assignEObject(EObject eobj) {\n\t\tthis.assignedEObject = eobj;\n\t}", "public final void setCommitment_Business_Time_Group(com.mendix.systemwideinterfaces.core.IContext context, businesshours.proxies.Business_Time_Group commitment_business_time_group)\r\n\t{\r\n\t\tif (commitment_business_time_group == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Commitment_Business_Time_Group.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Commitment_Business_Time_Group.toString(), commitment_business_time_group.getMendixObject().getId());\r\n\t}", "public void setLecturer()\n {\n //Call the Lecturer constructor passing it the name of the subject as a parameter\n //lecturer = new Lecturer(getNameOfSubject());\n }", "public CommitteeDocumentBase getCommitteeDocument() {\n return (CommitteeDocumentBase) this.getDocument();\n }", "void setCreaedBy(Subject creator)\n {\n this.creator = creator;\n }", "public void setAssignees(List<String> assignees){\n this.assignees = assignees;\n }", "public void setCommit(boolean commit) {\n\t\tthis.commit = commit;\n\t}", "public TeacherPage submit() {\n clickSaveButton();\n return this;\n }", "@Override\r\n\tpublic void setException(Throwable throwable) {\r\n super.setException(throwable);\r\n if ( getFutureListenerProcessor() != null ) {\r\n getFutureListenerProcessor().futureSetException(this, throwable);\r\n }\r\n }", "protected void commitTask(final ManifestCommitter committer,\n final TaskAttemptContext tContext) throws IOException {\n committer.commitTask(tContext);\n }", "public ArrayList<Scholar> getCommitteeMembers(){\r\n\t\treturn committeeMembers;\r\n\t}", "void setCommitID(long commit_id) {\r\n this.commit_id = commit_id;\r\n }", "public void setSubject(String newValue);", "protected void setEPerson(Context context, String eperson)\n throws Exception {\n if (eperson == null) {\n pr(\"Error - an eperson to do the importing must be specified\");\n pr(\" (run with -h flag for details)\");\n throw new Exception(\"EPerson not specified.\");\n }\n\n EPerson myEPerson = null;\n\n if (eperson.indexOf('@') != -1) {\n // @ sign, must be an email\n myEPerson = epersonService.findByEmail(context, eperson);\n } else {\n myEPerson = epersonService.find(context, UUID.fromString(eperson));\n }\n\n if (myEPerson == null) {\n pr(\"Error, eperson cannot be found: \" + eperson);\n throw new Exception(\"Invalid EPerson\");\n }\n\n context.setCurrentUser(myEPerson);\n }", "public void setExercise(Exercise target, Exercise editedExercise) {\n logger.info(\"Setting exercise\");\n int index = workoutExercises.indexOf(target);\n if (index != -1) {\n workoutExercises.set(index, editedExercise);\n }\n }", "public void initialize() {\n setCommitteeHelper(getNewCommitteeHelperInstanceHook(this));\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public void setEntityType(StageableEntity entityType) {\n\t\tthis.entityType = entityType;\n\t}", "public final void setCommitmentName(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String commitmentname)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.CommitmentName.toString(), commitmentname);\r\n\t}", "public void setReporter(ReporterStrategy reporter) {\n this.reporter = reporter;\n }", "@SuppressWarnings(\"rawtypes\")\n @Override\n protected CommitteeTaskBase getNewCommitteeTaskInstanceHook(String taskName, CommitteeBase committee) {\n return new CommitteeTaskBase<IacucCommittee>(TaskGroupName.IACUC_COMMITTEE, taskName, (IacucCommittee) committee) {};\n }", "public void asignarEco(EcoPelvico eco) {\n this.ecoPelvico = eco;\n this.tipoEco = eco.tipo();\n }", "public void setSupervisor(Supervisor supervisor){\r\n this.supervisor = supervisor;\r\n }", "public void set(String toSet) throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Setting \" + this + \" to \" + toSet);\n\t\t\n\t\twaitForElement().click();\n\t\tVoodooUtils.pause(1000);\n\t\tVoodooUtils.focusWindow(1);\n\t\tnew VoodooControl(\"a\", \"XPATH\", \"//a[contains(text(), '\" + toSet + \"')]\").click();\n\t\tVoodooUtils.focusWindow(0);\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t}", "public void setUser(User user) {\n this.savedBy = user;\n }", "public void addAssignee(String user){\n assignees.add(user);\n }", "public synchronized void setCommitted(CommitInfo info) {\n\t\t// We can't be committed twice.\n\t\tAssert.assertTrue(null == _commitInfo);\n\t\t// The commit offset must be a positive number.\n\t\tAssert.assertTrue(info.intentionOffset > 0L);\n\t\t\n\t\t_commitInfo = info;\n\t\tthis.notifyAll();\n\t}", "public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }", "@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }", "@Override\n\tpublic void assignAcademicVisitor(String matriculation, String visitorName) {\n\t\tSystem.out.println(\"Send an email to \" + matriculation + \", \" + visitorName + \" & employer to let them know about the assignment\");\n\t}", "public Setter(final CloseListenerSettable<C> settable) {\n this.settable = settable;\n }", "public final void setCommitment_Business_Time_Group(businesshours.proxies.Business_Time_Group commitment_business_time_group)\r\n\t{\r\n\t\tsetCommitment_Business_Time_Group(getContext(), commitment_business_time_group);\r\n\t}", "public void setEntidade(final E entidade) {\n\n\t\tthis.entidade = entidade;\n\t}", "public void set(Throwable e) {\n this.classType = e.getClass().getName();\n this.objectId = System.identityHashCode(e);\n StackTraceElement[] stack = e.getStackTrace();\n if ( stack != null && stack.length > 0 ) {\n this.path = stack[0].getFileName();\n this.lineNumber = stack[0].getLineNumber();\n }\n this.message = e.getMessage();\n }", "public synchronized void setCommittedTx( long tx )\n {\n waitForSyncConnected();\n this.committedTx = tx;\n String root = getRoot();\n String path = root + \"/\" + machineId + \"_\" + sequenceNr;\n byte[] data = dataRepresentingMe( tx );\n try\n {\n zooKeeper.setData( path, data, -1 );\n }\n catch ( KeeperException e )\n {\n throw new ZooKeeperException( \"Unable to set current tx\", e );\n }\n catch ( InterruptedException e )\n {\n Thread.interrupted();\n throw new ZooKeeperException( \"Interrupted...\", e );\n }\n }", "public void setTeacher(Student s) {\n // TODO implement here\n \tthis.teacher = s;\n }", "void setChangeSet(ChangeSet changeSet);", "public void setRequester(User requester) {\n this.requester = requester;\n }", "public void setEpDeletetime(Date epDeletetime) {\n this.epDeletetime = epDeletetime;\n }", "public void asignarEco(EcoObstetrico eco) {\n this.ecoObstetrico = eco;\n this.tipoEco = eco.tipo();\n }", "public final void setIncomingRequest_Commitment(slm_notifications.proxies.Commitment incomingrequest_commitment)\r\n\t{\r\n\t\tsetIncomingRequest_Commitment(getContext(), incomingrequest_commitment);\r\n\t}", "@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }", "void setTaskOwner(ConversationalObject taskOwner);", "@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}", "public void set_per_commitment_secret(byte[] val) {\n\t\tbindings.RevokeAndACK_set_per_commitment_secret(this.ptr, val);\n\t}", "public void setConsignee(String consignee) {\n this.consignee = consignee == null ? null : consignee.trim();\n }", "public void setPeer(Peer peer);", "synchronized final void setEvolutionControlThread( EvolutionControlThread evolutionControlThread )\n\t{\n\n\t\tfieldEvolutionControlThread = evolutionControlThread;\n\n\t}", "protected void sequence_AssignmentStatement(ISerializationContext context, AssignmentStatement semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE));\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getAssigneeFieldIDTerminalRuleCall_0_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE, false));\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getExprExpressionParserRuleCall_2_0(), semanticObject.getExpr());\n\t\tfeeder.finish();\n\t}", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public HistoryEditorPanel(ToolBelt toolBelt) {\n super(toolBelt);\n initialize();\n setLocked(isLocked());\n approveHistoryTask = toolBelt.getApproveHistoryTask();\n rejectHistoryTask = toolBelt.getRejectHistoryTask();\n }", "public void storeToRequest() {\r\n HttpServletRequest httpServletRequest = GrouperUiFilter.retrieveHttpServletRequest();\r\n httpServletRequest.setAttribute(\"inviteExternalSubjectsContainer\", this);\r\n }", "public void setChiefEditor(String value) {\n setAttributeInternal(CHIEFEDITOR, value);\n }", "ManifestCommitter createCommitter(\n TaskAttemptContext context) throws IOException;", "private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }", "public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }", "public void setExaminer (User examiner) {\n\t\tthis.examiner = examiner;\n\t}", "@Override\n public void setMeeting(Meeting meeting) {\n }", "public void setCredential(final Object credential)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n if (this.getLogCredentials()) {\n this.logger.trace(\"setting credential: \" + credential);\n } else {\n this.logger.trace(\"setting credential: <suppressed>\");\n }\n }\n this.credential = credential;\n }", "public void setCredential(final Object credential)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n if (this.getLogCredentials()) {\n this.logger.trace(\"setting credential: \" + credential);\n } else {\n this.logger.trace(\"setting credential: <suppressed>\");\n }\n }\n this.credential = credential;\n }", "void commit(IDevTree tree, Map options) throws IOException;", "public void setCampus(CampusEbo campus) {\n this.campus = campus;\n }", "public void initCommit(MeubleModele meuble){\n this.getPanier().initCommit(meuble);\n this.getCatalogue().initCommit(meuble);\n this.infoPane.initCommit(meuble);\n }", "public static void setExecutionContext(final HttpServlet servlet) {\r\n\t\tServletLoggingOutput.servlets.set(servlet);\r\n\t}", "public void setEditor(Editor editor)\n {\n this.editor = editor;\n }", "public void setEnteredBy(int tmp) {\n this.enteredBy = tmp;\n }", "public String setAppender(String appender) {\n\t\tint pipe = appender.indexOf('|');\n\t\tif(pipe>=0) {\n\t\t\tString rv;\n\t\t\tSystem.setProperty(\n\t\t\t\t\"LOG4J_FILENAME_\"+(rv=appender.substring(0,pipe)),\n\t\t\t\troot + appender.substring(pipe+1) + (printPID?('-' + pid):\"\") + \".log\");\n\t\t\treturn rv;\n\t\t} else {\n\t\t\tSystem.setProperty(\n\t\t\t\t\"LOG4J_FILENAME_\"+appender,\n\t\t\t\troot + appender + (printPID?('-' + pid):\"\") + \".log\");\n\t\t\treturn appender;\n\t\t}\n\t\t\n\t}", "public IssueBuilderAbstract assignees(List<String> assignees){\n fieldAssignees = assignees;\n return this;\n }", "public void setSubject(String reference){\r\n\r\n\t\tWebElement eleTemplate = driver.findElement(By.xpath(SUBJECT_XPATH));\r\n\t\teleTemplate.click();\r\n\t\teleTemplate.clear();\r\n\t\teleTemplate.sendKeys(reference);\r\n\t\teleTemplate.sendKeys(Keys.TAB);\r\n\t}", "public void setActor(Actor actor);", "public JGitCommit(RevCommit commit) {\n this.author = commit.getAuthorIdent();\n this.commit = commit;\n this.committer = commit.getCommitterIdent();\n }", "protected ManifestCommitter createCommitter(\n TaskAttemptContext context) throws IOException {\n return createCommitter(getOutputDir(), context);\n }", "public void setSubmit(String submit) {\n this.submit = submit;\n }", "public void setExperiment(Experiment e){\r\n \tthis.experiment = e;\r\n \tthis.exptID = e.getId();\r\n this.maxExperimentValue = experiment.getMaxAbsValue();\r\n }", "protected static void setIdentityAsserter(com.tangosol.net.security.IdentityAsserter asserter)\n {\n __s_IdentityAsserter = asserter;\n }", "public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public void makeSet(T e){\n\t\tnodes.put(e, new Node<T>(e));\r\n\t}" ]
[ "0.6552587", "0.5699505", "0.5682174", "0.5644578", "0.5590861", "0.5137599", "0.4978819", "0.48985782", "0.48774856", "0.48707092", "0.4865798", "0.48119822", "0.4799101", "0.47529033", "0.47427598", "0.47284788", "0.47190833", "0.47148702", "0.4701083", "0.4697907", "0.46873", "0.46717763", "0.46687385", "0.4651251", "0.46494922", "0.4647254", "0.46447077", "0.46175936", "0.46101415", "0.46064395", "0.45918936", "0.45891318", "0.4582624", "0.45783386", "0.45691216", "0.45644957", "0.4553282", "0.45529866", "0.45148197", "0.45094463", "0.44947645", "0.4493316", "0.44921574", "0.44894463", "0.44813287", "0.4479154", "0.44766533", "0.44690627", "0.44687957", "0.4460367", "0.44570762", "0.44376427", "0.44313326", "0.44295278", "0.44235218", "0.44200367", "0.44161388", "0.4410976", "0.4405126", "0.44027463", "0.4400335", "0.43995973", "0.43993112", "0.4397025", "0.43967083", "0.4396521", "0.43956438", "0.43937275", "0.43926883", "0.43819577", "0.43754232", "0.43746892", "0.43712", "0.43595865", "0.43504587", "0.43358675", "0.43311238", "0.4323828", "0.43201596", "0.43111947", "0.43101236", "0.4306965", "0.4306965", "0.4297846", "0.42972225", "0.4292201", "0.4275879", "0.42754504", "0.42716026", "0.4270584", "0.4268922", "0.42626303", "0.42561764", "0.42556408", "0.42551422", "0.42538628", "0.42490464", "0.42486772", "0.42481163", "0.4245251" ]
0.74211615
0
Set schedule for the submission.
protected void setSchedule(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) { submissionBuilder.setSchedule(submitAction.getNewScheduleId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSchedule(java.lang.String schedule);", "public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}", "public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }", "public final void setSchedule(java.util.Date schedule)\n\t{\n\t\tsetSchedule(getContext(), schedule);\n\t}", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public void setSchedule(CanaryScheduleOutput schedule) {\n this.schedule = schedule;\n }", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "public void setScheduletime(Date scheduletime) {\r\n this.scheduletime = scheduletime;\r\n }", "public final void setSchedule(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date schedule)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Schedule.toString(), schedule);\n\t}", "public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }", "void xsetSchedule(org.apache.xmlbeans.XmlString schedule);", "MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }", "public void schedule(String id, String[] schedule) {\n\t}", "public void setScheduler(RunnerScheduler scheduler) {\n this.scheduler = scheduler;\n }", "public Builder setSchedulingValue(int value) {\n scheduling_ = value;\n onChanged();\n return this;\n }", "public synchronized Task setScheduler(Scheduler s)\n/* */ {\n/* 102 */ this.scheduler = s;\n/* 103 */ return this;\n/* */ }", "public void applyToSchedule(Schedule sched) {\n String repeat = m_repeatCombo.getSelectedItem().toString();\n for (Schedule.Repeat r : Schedule.Repeat.values()) {\n if (r.toString().equals(repeat)) {\n sched.setRepeatUnit(r);\n break;\n }\n }\n if (m_intervalField.getText() != null\n && m_intervalField.getText().length() > 0) {\n sched.setRepeatValue(Integer.parseInt(m_intervalField.getText()));\n } else if (sched.getRepeatUnit() == Schedule.Repeat.MINUTES\n || sched.getRepeatUnit() == Schedule.Repeat.HOURS\n || sched.getRepeatUnit() == Schedule.Repeat.DAYS) {\n // set a default value of 5\n sched.setRepeatValue(5);\n m_intervalField.setText(\"5\");\n }\n\n java.util.List<Integer> dow = new java.util.ArrayList<Integer>();\n if (m_sunCheck.isSelected()) {\n dow.add(Calendar.SUNDAY);\n }\n if (m_monCheck.isSelected()) {\n dow.add(Calendar.MONDAY);\n }\n if (m_tueCheck.isSelected()) {\n dow.add(Calendar.TUESDAY);\n }\n if (m_wedCheck.isSelected()) {\n dow.add(Calendar.WEDNESDAY);\n }\n if (m_thuCheck.isSelected()) {\n dow.add(Calendar.THURSDAY);\n }\n if (m_friCheck.isSelected()) {\n dow.add(Calendar.FRIDAY);\n }\n if (m_satCheck.isSelected()) {\n dow.add(Calendar.SATURDAY);\n }\n sched.setDayOfTheWeek(dow);\n\n if (sched.getRepeatUnit() == Schedule.Repeat.MONTHLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched.setDayOfTheMonth(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n }\n }\n\n if (sched.getRepeatUnit() == Schedule.Repeat.YEARLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched\n .setRepeatValue(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n // day of the week is already set\n\n sched.setMonthOfTheYear(m_month.getSelectedIndex());\n }\n }\n }", "public String getSchedule() {\n return schedule;\n }", "public void setScheduleDate(Date scheduleDate) {\r\n\t\tthis.scheduleDate=scheduleDate;\r\n\t}", "public void setScheduleFrom(ScheduleFrom scheduleFrom)\r\n {\r\n m_scheduleFrom = scheduleFrom;\r\n }", "void setStartTime(java.util.Calendar startTime);", "public Schedule(Date startTime) {\n\t\tAssert.notNull(startTime, \"Scheduled time reqd\");\n\t\tthis.startTime = startTime;\n\t\tthis.repeatAfter = -1;\n\t}", "public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }", "public void setScheduleExpression(String scheduleExpression) {\n this.scheduleExpression = scheduleExpression;\n }", "AbsoluteScheduleBuilder(ScheduleSetter schedule_setter)\n {\n super(schedule_setter);\n }", "public void setSpeakerScheduleController(){\n setChanged();\n notifyObservers(speakerScheduleController);\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "public Schedule getSchedule() {\r\n\t\treturn schedule;\r\n\t}", "public void setList(ScheduleInterface<Schedule> scheduleList){\n this.scheduleList = scheduleList;\n }", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Builder setScheduling(io.opencannabis.schema.commerce.CommercialOrder.SchedulingType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n scheduling_ = value.getNumber();\n onChanged();\n return this;\n }", "public void setOrgScheduleController(){\n setChanged();\n notifyObservers(orgScheduleController);\n }", "public void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;", "Schedule createSchedule();", "public void setSchedule_date(java.lang.String schedule_date) {\r\n this.schedule_date = schedule_date;\r\n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "void schedule(ScheduledJob job);", "public Schedule() {\n this(DataManager.readAll());\n }", "void setAppointmentScheduleFilePath(Path appointmentScheduleFilePath);", "public Schedule(Schedule other) {\n __isset_bitfield = other.__isset_bitfield;\n this.begTime = other.begTime;\n this.endTime = other.endTime;\n this.date = other.date;\n if (other.isSetOffice()) {\n this.office = other.office;\n }\n this.plan = other.plan;\n if (other.isSetTickets()) {\n List<TTicket> __this__tickets = new ArrayList<TTicket>();\n for (TTicket other_element : other.tickets) {\n __this__tickets.add(new TTicket(other_element));\n }\n this.tickets = __this__tickets;\n }\n this.available = other.available;\n }", "@Test\n\tpublic void modifyingScheduleWorks() throws Exception {\n\t\tResource floatRes = new Resource();\n\t\tfloatRes.setName(\"scheduleTest\");\n\t\tfloatRes.setType(FloatResource.class);\n\t\t// floatRes.setDecorating(Boolean.TRUE);\n\t\tFloatSchedule schedule = createTestSchedule();\n\n\t\tfloatRes.getSubresources().add(schedule);\n\t\tResource meter1 = unmarshal(sman.toXml(meter), Resource.class);\n\t\tmeter1.getSubresources().add(floatRes);\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\n\t\tschedule.getEntry().clear();\n\t\tschedule.setStart(2L);\n\t\tschedule.setEnd(3L);\n\n\t\tSampledValue v = new SampledFloat();\n\t\tv.setQuality(Quality.GOOD);\n\t\tv.setTime(2);\n\t\tv.setValue(new FloatValue(2));\n\t\tschedule.getEntry().add(v);\n\n\t\tsman.applyXml(marshal(meter1), meter, true);\n\n\t\tSchedule ogemaSchedule = (Schedule) meter.getSubResource(\"scheduleTest\").getSubResource(\"data\");\n\n\t\tassertEquals(3, ogemaSchedule.getValues(0).size());\n\t\tassertEquals(2, ogemaSchedule.getValues(0).get(1).getValue().getFloatValue(), 0);\n\t}", "private void setCronTime(Settings set) {\n CRON_TIME = set.getValue(\"cron.time\");\n }", "public Schedule getSchedule() {\n\n return schedule;\n }", "public abstract void setStartTime(Date startTime);", "public void generateSchedule(){\n\t\t\n\t}", "public static void setSchedulings(SubscriptionData subscription, List<Map<String, Object>> schedulings, String callerKey) {\n\n\t\tfinal List<SubscriptionSchedulingData> theExistingSchedulings = SubscriptionSchedulingData.findAllBySubscription(subscription);\n\n\t\tfor (final Map<String, Object> aNewScheduling : schedulings) {\n\t\t\tfinal Map<String, Object> schedWithoutType = new HashMap<String, Object>(aNewScheduling);\n\t\t\tfinal SCHEDULING_TYPE type = SCHEDULING_TYPE.findByLabel(schedWithoutType.remove(SchedulingType.TYPE_KEY).toString());\n\n\t\t\tfinal SchedulingHandler theHandler = SchedulingHandlerManager.getHandler(type);\n\n\t\t\tfinal Map<String, String> theNewSettings = theHandler.generateSettings(subscription.getObject(), schedWithoutType, callerKey);\n\n\t\t\tfinal SubscriptionSchedulingData theScheduling;\n\t\t\tif (theExistingSchedulings.isEmpty()) {\n\t\t\t\ttheScheduling = SubscriptionSchedulingData.create(subscription, type);\n\t\t\t} else {\n\t\t\t\ttheScheduling = theExistingSchedulings.remove(0);\n\t\t\t\tSchedulingHandlerManager.getHandler(theScheduling.getType()).deleteElements(theScheduling);\n\t\t\t\ttheScheduling.setType(type);\n\t\t\t}\n\t\t\tSchedulingHandlerManager.setSchedulingSettings(theScheduling, theNewSettings);\n\t\t\ttheHandler.executeWhenDone(theScheduling);\n\t\t}\n\n\t\tSchedulingHandlerManager.deleteSchedulings(theExistingSchedulings);\n\t}", "public Builder setScheduling(io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling value) {\n if (schedulingBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n scheduling_ = value;\n onChanged();\n } else {\n schedulingBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean saveSchedule(Schedule schedule);", "@IcalProperty(pindex = PropertyInfoIndex.SCHEDULE_METHOD,\n jname = \"scheduleMethod\",\n eventProperty = true,\n todoProperty = true)\n public void setScheduleMethod(final int val) {\n scheduleMethod = val;\n }", "public void setSchedulingStrategy(String schedulingStrategy) {\n this.schedulingStrategy = schedulingStrategy;\n }", "public void setCurrent(SchedulerInterface current) {\n this.current = current;\n }", "public void setSchedule(String pName, int month, int hour, int day)\r\n {\r\n switch (month)\r\n {\r\n case 1:\r\n Jan[hour][day] = pName;\r\n \r\n case 2:\r\n Feb[hour][day] = pName;\r\n \r\n case 3:\r\n Mar[hour][day] = pName;\r\n \r\n case 4:\r\n Apr[hour][day] = pName;\r\n \r\n case 5:\r\n May[hour][day] = pName;\r\n \r\n case 6:\r\n Jun[hour][day] = pName;\r\n \r\n case 7:\r\n Jul[hour][day] = pName;\r\n \r\n case 8:\r\n Aug[hour][day] = pName;\r\n \r\n case 9:\r\n Sep[hour][day] = pName;\r\n \r\n case 10:\r\n Oct[hour][day] = pName;\r\n \r\n case 11:\r\n Nov[hour][day] = pName;\r\n \r\n case 12:\r\n Dec[hour][day] = pName;\r\n \r\n default:\r\n System.out.println(\"For the month you must use only the first\"\r\n + \"three letters of the month and it must be \"\r\n + \"capitalized\\n\"); \r\n } \r\n }", "public void setSchedulerName(String schedulerName)\r\n/* 20: */ {\r\n/* 21: 58 */ this.schedulerName = schedulerName;\r\n/* 22: */ }", "public void setStart( Calendar start );", "public void setTime() {\r\n\t\tArrayList<String> slots = new ArrayList<String>();\r\n\t\tString inSched = getWorkHours();\r\n\t\tswitch(inSched) {\r\n\t\tcase \"6AM-3PM\":\r\n\t\t\tArrayList<String> sched1 = new ArrayList<String>(Arrays.asList(\"06AM\",\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"12PM\",\"1PM\",\"2PM\"));\r\n\t\t\tslots = sched1;\r\n\t\t\tbreak;\r\n\t\tcase \"7AM-4PM\":\r\n\t\t\tArrayList<String> sched2 = new ArrayList<String>(Arrays.asList(\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"1PM\",\"2PM\",\"3PM\"));\r\n\t\t\tslots = sched2;\r\n\t\t\tbreak;\r\n\t\tcase \"8AM-5PM\":\r\n\t\t\tArrayList<String> sched3 = new ArrayList<String>(Arrays.asList(\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"2PM\",\"3PM\",\"4PM\"));\r\n\t\t\tslots = sched3;\r\n\t\t\tbreak;\r\n\t\tcase \"9AM-6PM\":\r\n\t\t\tArrayList<String> sched4 = new ArrayList<String>(Arrays.asList(\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"3PM\",\"4PM\",\"5PM\"));\r\n\t\t\tslots = sched4;\r\n\t\t\tbreak;\r\n\t\tcase \"10AM-7PM\":\r\n\t\t\tArrayList<String> sched5 = new ArrayList<String>(Arrays.asList(\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"2PM\",\"4PM\",\"5PM\",\"6PM\"));\r\n\t\t\tslots = sched5;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tslots.add(\"No appointments available for this date.\");\r\n\t\t}\r\n\t\tthis.timeAvailable = slots;\r\n\t}", "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}", "public Builder setScheduling(\n io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling.Builder builderForValue) {\n if (schedulingBuilder_ == null) {\n scheduling_ = builderForValue.build();\n onChanged();\n } else {\n schedulingBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public abstract void schedule();", "public final void setScheduledStart(java.util.Date scheduledstart)\r\n\t{\r\n\t\tsetScheduledStart(getContext(), scheduledstart);\r\n\t}", "public Schedule() {\r\n }", "@IcalProperty(pindex = PropertyInfoIndex.SCHEDULE_STATE,\n jname = \"scheduleState\",\n eventProperty = true,\n todoProperty = true)\n public void setScheduleState(final int val) {\n if ((val != scheduleStateNotProcessed) &&\n (val != scheduleStateProcessed) &&\n (val != scheduleStateExternalDone)) {\n throw new RuntimeException(\"org.bedework.badvalue\");\n }\n\n scheduleState = val;\n }", "public void setScheduler(ElevatorsScheduler scheduler) {\n this.scheduler = scheduler;\n }", "public synchronized void resetSchedules() {\n schedules = null;\n }", "@Resource\r\n\tpublic void setScheduleBCF(IScheduleBCF scheduleBCF)\r\n\t{\r\n\t\tthis.scheduleBCF = scheduleBCF;\r\n\t}", "@Override\n\tpublic void setAsText(String text){\n\t\tSchedule schedule = this.scheduleService.findById(Long.parseLong(text));\n\t\tthis.setValue(schedule);\n\t}", "private void reset(Schedule schedule){\r\n\t\tScheduleDao dao = new ScheduleDaoImpl();\r\n\t\t\r\n\t\tif(schedule.getStatus()==Schedule.STATUS_INPROGRESS)\r\n\t\t\tschedule.setStatus(Schedule.STATUS_STOPPED);\r\n\t\t\r\n\t\tschedule.setNextRunTime(schedule.calculateStartTime());\r\n\t\tdao.modify(schedule);\r\n\t}", "public PurchaseSchedule(String shoeType, int tick) {\r\n\t\tthis.shoeType = shoeType;\r\n\t\tthis.tick = tick;\r\n\t}", "public void setScheduleRow(String s) {\n\t\tuSRow = s;\n\t}", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "WorkingSchedule updateWorkingSchedule(Long workingScheduleId, WorkingScheduleRequest workingSchedule);", "public void setSchedulingMethod(String league, String schedulingMethodName) {\n SchedulingMethod schedulingMethod;\n switch (schedulingMethodName) {\n case \"OneGameSchedulingMethod\":\n logger.info(schedulingMethodName + \" Scheduling Method was added to \" + league);\n schedulingMethod = new OneGameSchedulingMethod();\n case \"TwoGameSchedulingMethod\":\n logger.info(schedulingMethodName + \" Scheduling Method was added to \" + league);\n schedulingMethod = new TwoGameSchedulingMethod();\n default:\n return;\n }\n // TODO: get league\n // League league = get from DB by leagueName\n // league.setSchedulingMethod(schedulingMethod);\n }", "private void setScheduleTableCell(int row, int col, String text) {\n\t\tteamScheduleTable.setText(row, col, text);\n\t\tteamScheduleTable.getCellFormatter().setAlignment(row, col, HasHorizontalAlignment.ALIGN_RIGHT, HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tteamScheduleTable.getCellFormatter().addStyleName(row, col, style.teamSchedule());\n\t}", "public void update(Schedule arg0) {\n\t\t\n\t}", "@Override\n\tpublic void addSchedule(TeacherCourse tc) {\n\t\tcd.addTeacherCourse(tc);\n\t}", "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }", "public void schedule() {\n\t\tnew Timer().schedule(getTask(), TIME);\n\t}", "public Schedule() {\r\n\t\tschedule = new boolean[WEEK_DAYS][];\r\n\t\tfor(int i = 0; i < WEEK_DAYS; i++)\r\n\t\t\tschedule[i] = new boolean[SEGMENTS_PER_DAY];\r\n\t\tlisteners = new ArrayList<ScheduleChangeListener>();\r\n\t}", "public Scheduler(String scheduler_name) {\n super();\n this.scheduler_name = scheduler_name;\n this.task_set = null;\n }", "public void setMeetingCal(final BwCalendar val) {\n meetingCal = val;\n }", "public void setupTimerSchedule(GUIController controller, int startTime, int runRate){\n this.fTimer.scheduleAtFixedRate(controller, startTime, runRate);\n }", "public void setTimes(FerriesScheduleTimes Times) {\n this.Times.add(Times);\n }", "private void scheduleJob() {\n\n }", "private void schedule( TaskKey aWorkPackage, boolean aCollectionReqBool ) throws Exception {\n ScheduleInternalTO lTO = new ScheduleInternalTO();\n lTO.setSchedDates( new Date(), new Date() );\n lTO.setWorkOrderNo( WORK_ORDER_NO, \"\" );\n lTO.setCollectionRequired( aCollectionReqBool );\n\n STaskBean staskBean = new STaskBean();\n staskBean.setSessionContext( new SessionContextFake() );\n staskBean.schedule( aWorkPackage, lTO, AUTHORIZING_HR );\n\n }", "public void storeRegularDayTripStationScheduleWithRS();", "public void setSchedName(String schedName) {\n this.schedName = schedName;\n }", "void setTime(int index, Time value, Calendar cal)\n throws SQLException;", "public ModifyWorkflowScheduleRequest(ModifyWorkflowScheduleRequest source) {\n if (source.ProjectId != null) {\n this.ProjectId = new String(source.ProjectId);\n }\n if (source.WorkflowId != null) {\n this.WorkflowId = new String(source.WorkflowId);\n }\n if (source.DelayTime != null) {\n this.DelayTime = new Long(source.DelayTime);\n }\n if (source.StartupTime != null) {\n this.StartupTime = new Long(source.StartupTime);\n }\n if (source.SelfDepend != null) {\n this.SelfDepend = new Long(source.SelfDepend);\n }\n if (source.CycleType != null) {\n this.CycleType = new Long(source.CycleType);\n }\n if (source.CycleStep != null) {\n this.CycleStep = new Long(source.CycleStep);\n }\n if (source.StartTime != null) {\n this.StartTime = new String(source.StartTime);\n }\n if (source.EndTime != null) {\n this.EndTime = new String(source.EndTime);\n }\n if (source.TaskAction != null) {\n this.TaskAction = new String(source.TaskAction);\n }\n if (source.CrontabExpression != null) {\n this.CrontabExpression = new String(source.CrontabExpression);\n }\n if (source.ExecutionStartTime != null) {\n this.ExecutionStartTime = new String(source.ExecutionStartTime);\n }\n if (source.ExecutionEndTime != null) {\n this.ExecutionEndTime = new String(source.ExecutionEndTime);\n }\n if (source.DependencyWorkflow != null) {\n this.DependencyWorkflow = new String(source.DependencyWorkflow);\n }\n }", "@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}", "java.lang.String getSchedule();", "public void setSubmittime(Date submittime) {\n this.submittime = submittime;\n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "@ApiModelProperty(value = \"Schedule that this filter refers to. Output is a Schedule Summary Object. Input must be a Schedule Lookup Object. Required.\")\n public ScheduleSummary getSchedule() {\n return schedule;\n }", "abstract public void computeSchedule();", "public Schedule(int timeOfDay, int minute, int duration, List<Integer> daysOfWeek, List<SprinklerGroup> sprinklerGroups) {\n\t\tsuper();\n\t\t\n\t\t\tTimeOfDay = timeOfDay;\n\t\t\tMinute = minute;\n\t\t\tDuration = duration;\n\t\t\tDaysOfWeek = daysOfWeek;\n\t\t\tSprinklerGroups = sprinklerGroups;\n\t\t\tType=ScheduleType.TIMED;\t\n\t\t\n\t}", "public Schedule assign()\n\t{\n\t\tif(debug) System.out.println(\"Assignment started (Lecture Random)\");\n\t\tboolean valid = assignSlot(true); //assign times to Lectures\n\t\tif(debug && valid) System.out.println(\"Assignment started (Lab Random)\");\n\t\tif(valid) valid = assignSlot(false); //assign times to Labs\n\t\tif(debug && valid) System.out.println(\"Checking constraints (Random)\");\n\t\tif(valid) \n\t\t{\n\t\t\tvalid = constr(); //check the hard constraints one more time\n\t\t\tif(debug) System.out.println(child);\n\t\t}\n\t\tif (valid) child.setValue(child.eval()); //evaluate the soft constraints\n\t\t\n\t\tif(valid) \n\t\t{\n\t\t\tif(debug) System.out.println(child);\n\t\t\treturn child; //return the completed valid schedule\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(child);\n\t\t\treturn null; //invalid schedule, return nothing\n\t\t}\n\t}", "@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }", "public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }" ]
[ "0.7665371", "0.75039953", "0.7164177", "0.709807", "0.7087025", "0.6860684", "0.68364435", "0.6797201", "0.6669702", "0.66194046", "0.6563811", "0.651514", "0.6340113", "0.6306554", "0.6276736", "0.6215156", "0.60806394", "0.59735847", "0.5932552", "0.5906282", "0.5890398", "0.5882169", "0.58750564", "0.58460706", "0.5834009", "0.58178586", "0.5805635", "0.57992214", "0.5789049", "0.5772646", "0.5755404", "0.5752029", "0.5740917", "0.5740434", "0.5735162", "0.571533", "0.57028615", "0.56892395", "0.564259", "0.562591", "0.56174755", "0.5607481", "0.559361", "0.55907506", "0.5590567", "0.5561744", "0.5545642", "0.5498441", "0.5483875", "0.5476894", "0.5472737", "0.5468678", "0.546618", "0.5422719", "0.5409874", "0.5396574", "0.5380499", "0.5376337", "0.53696316", "0.5349655", "0.5340973", "0.5338516", "0.5336977", "0.5330313", "0.5328422", "0.53255296", "0.5319028", "0.53149617", "0.5295897", "0.5273553", "0.52652353", "0.5250579", "0.52459705", "0.52444685", "0.5236956", "0.5228446", "0.5213657", "0.5206806", "0.5200865", "0.519336", "0.5178821", "0.51713663", "0.5170456", "0.5158716", "0.5151426", "0.51429474", "0.5141609", "0.5135905", "0.51248896", "0.5115967", "0.511166", "0.51107013", "0.5109101", "0.5108704", "0.5102881", "0.5099532", "0.5096608", "0.50907177", "0.5088329", "0.5082306" ]
0.6934721
5
The default constructor. It loads properties from repository into memory if there is any.
public PSBeanProperties() { loadProperties(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void initRepository() {\n deserialize();\n if (flightRepository == null) {\n flightRepository = new FlightRepository();\n }\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private ObjectRepository() {\n\t}", "public Repository() {\n\n }", "public ProductoRepository() {}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }", "public DataRepository() throws IOException {\n\t\tthis.init();\n\t}", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public EntityPropertyBean() {}", "public Repository() {\n allShips = new ArrayList<>();\n }", "public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }", "public Property() {}", "public TestBase()\r\n\t{\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"src\\\\test\\\\resources\\\\intellicus.properties\");\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tMemoryStore store = new MemoryStore(IWBFileUtil.getFileInDataFolder(Config.getConfig().getRepositoryName()));\n\t\t\t\n\t\t\t// create a lucenesail to wrap the memorystore\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// let the lucene index store its data in ram\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t\t// wrap memorystore in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\t\t\t\n\t\t\t// create a Repository to access the sails\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}", "private EmployeeRepository(){\n\t\t\n\t}", "protected XMLRepositoryImpl() {\n }", "private AuditYamlConfigurationLoader(Properties properties)\n {\n this.properties = new Properties(properties);\n }", "public void init(Properties props) ;", "public void initializeRepository() throws ApplicationException;", "public Property()\r\n {\r\n }", "public SpotPropertyManager() {\r\n\t\tsuper();\r\n\t}", "public AbstractRepositoryImplConfig() {\n\t}", "public PropertyManager(String propFileName) {\n if ((propFileName != null) && (propFileName.length() > 0)) {\n this.propFileName = propFileName;\n recentResult = loadPropertyFile(propFileName);\n }\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "private PropertyHolder() {\n }", "public LoadTestProperties() {\n }", "public DetectionProperties() throws Exception {\n super(DetectionProperties.class.getResourceAsStream(PROPERTIES_FILE_NAME));\n }", "public CartRepositoryImpl() {\n\t\tsuper(Cart.class);\n\t\t// this.qf = qf;\n\t}", "public Properties(){\n\n }", "private PropertiesGetter() {\n // do nothing\n }", "public ParcoursDataService() {\n this.repository = new JeeRepository();\n }", "public static ObjectRepository getRepository() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (ObjectRepository.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new ObjectRepository();\n\t\t\t\t\tif (config == null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconfig = new PropertiesConfiguration(\n\t\t\t\t\t\t\t\t\t\"object.properties\");\n\t\t\t\t\t\t} catch (final ConfigurationException e) {\n\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t.println(\"Configuration Exception - Not able to locate object.properties\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn _instance;\n\t}", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}", "private PropertySingleton(){}", "public void init(Properties properties) throws IOException;", "@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tNativeStore store = ReadDataManagerImpl.getNativeStore(IWBFileUtil.getFileInDataFolder(repositoryName));\n\n\t\t\t// create a lucenesail to wrap the store\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// store the lucene index on disk\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_DIR_KEY, IWBFileUtil.getLuceneIndexFolder().getAbsolutePath());\n\t\t\t// wrap store in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\n\t\t\t// create a Repository to access the sail\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "private ScoreRepository() {\r\n\t\tthis.filePath = Constants.SCORE_FILE_PATH;\r\n\t}", "private ConfigProperties() {\n\n }", "public void init(java.util.Properties props) {\r\n }", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}", "public ApplicationResourceProperties() {\n }", "public\n YutilProperties()\n {\n super(new Properties());\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }", "public SourceDataFileJpa() {\n // n/a\n }", "public void init() {\n\t\tProperties prop = new Properties();\n\t\tInputStream propStream = this.getClass().getClassLoader().getResourceAsStream(\"db.properties\");\n\n\t\ttry {\n\t\t\tprop.load(propStream);\n\t\t\tthis.host = prop.getProperty(\"host\");\n\t\t\tthis.port = prop.getProperty(\"port\");\n\t\t\tthis.dbname = prop.getProperty(\"dbname\");\n\t\t\tthis.schema = prop.getProperty(\"schema\");\n\t\t\tthis.passwd=prop.getProperty(\"passwd\");\n\t\t\tthis.user=prop.getProperty(\"user\");\n\t\t} catch (IOException e) {\n\t\t\tString message = \"ERROR: db.properties file could not be found\";\n\t\t\tSystem.err.println(message);\n\t\t\tthrow new RuntimeException(message, e);\n\t\t}\n\t}", "public PropertyReader(String propertyFileName)\r\n\t{\r\n\t\tthis.propertyFileName = propertyFileName;\r\n\t}", "private static void loadObjectRepository() {\n\n\t\ttry {\n\n\t\t\tObjectRepositoryReader reader = new ObjectRepositoryReader(GlobalContext.getAppDir(), Constants.FILENAME_OBJECT_REPO);\n\t\t\tMap<String, ObjectRepositoryRow> objectRepository = new HashMap<>();\n\t\t\twhile (reader.hasNextRow()) {\n\n\t\t\t\tObjectRepositoryRow row = (ObjectRepositoryRow) reader.nextRow();\n\t\t\t\tobjectRepository.put(row.getName(), row);\n\t\t\t}\n\n\t\t\t//sets to global context.\n\t\t\tGlobalContext.setObjectRepository(objectRepository);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public PensionParametersDAO(Configuration properties) {\n this.properties = properties;\n\n }", "public CountryResource(CountryRepository repository) {\n this.repository = repository;\n }", "@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }", "public LunchModel(LunchRepo repo) {\n this.repo = repo;\n }", "private DatabaseValidationProperties() {}", "private mxPropertiesManager()\n\t{\n\t}", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public Repo() {\n //this.app = Init.application;\n }", "public FileServicePropertiesProperties() {\n }", "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public StoreReadSettings() {\n }", "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "@Test public void testConstructor() {\r\n GaeAwarePropertySource source = new GaeAwarePropertySource();\r\n assertNull(source.getProductionModeProperties());\r\n assertNull(source.getDevelopmentModeProperties());\r\n\r\n Properties baseProperties = new Properties();\r\n source.setProductionModeProperties(baseProperties);\r\n assertSame(baseProperties, source.getProductionModeProperties());\r\n\r\n Properties developmentModeProperties = new Properties();\r\n source.setDevelopmentModeProperties(developmentModeProperties);\r\n assertSame(developmentModeProperties, source.getDevelopmentModeProperties());\r\n }", "public UserRepo()\n {\n }", "public BaseTest() {\n\n String path = System.getProperty(\"user.dir\") + \"/src/test/resources/config.properties\";\n prop = new Properties();\n /** Stream to read the spreadsheet. */\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n prop.load(fis);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "public RepositoryParser() {\n pageElementsMap = new HashMap<String, Map<String, PageElement>>();\n }", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }", "public void load() throws FileNotFoundException {\n loadConfig();\n initRepos();\n }", "public JRepositoryDao() {\n super(JRepository.REPOSITORY, JRepositoryPojo.class);\n }", "public DefaultConnectionProvider() {\n loadProperties();\n }", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public Propuestas() {}", "public AddressDaoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "protected MovieRepository(String url) {\n URL = url;\n }", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "@Override\n @PostConstruct\n protected void init() {\n super.init();\n\n // _HACK_ Attention: you must realize that associations below (when lazy) are fetched from the view, non transactionnally.\n\n if (products == null) {\n products = new SelectableListDataModel<Product>(getPart().getProducts());\n }\n }", "public BaseTest() {\n\t\t\n\t\tprop= new Properties();\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fle= new FileInputStream(\"C:\\\\Users\\\\19175\\\\eclipse-workspace\\\\com.toyota\\\\src\\\\test\\\\java\\\\Config\\\\config.properties\"); // Path of the Properties file\n\t\t\tprop.load(fle);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public DataSourceEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public HawtDBAggregationRepository() {\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n entitymanager = DBConnection.getEntityManger();\n this.loadCombos();\n this.loadTime();\n this.setLocations();\n }", "default void load(Map<String, Object> properties)\r\n {\r\n }", "public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}", "public KeyVaultProperties() {\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "public Configuration(File configFile) {\r\n \t\tproperties = loadProperties(configFile);\r\n \t}", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "@Override\n public void init(Properties properties) {\n super.init(properties);\n String categoriesFilePath = properties.getProperty(\"categoriesFilePath\", \"\");\n String gemetFilePath = properties.getProperty(\"gemetFilePath\", \"\");\n String lang = properties.getProperty(\"lang\", \"\");\n\n for (Locale l: Locale.getAvailableLocales()) {\n if (l.getLanguage().equalsIgnoreCase(lang)) {\n locale = l;\n break;\n }\n }\n\n ContextInitializer initializer = new ContextInitializer(ontCtx,\n categoriesFilePath, gemetFilePath);\n initializer.initialize();\n\n }", "public MutablePropertiesPropertySource(File propertiesLocation) {\n this(propertiesLocation, 0);\n }", "public Properties getObjectRepository() throws IOException{\n\t\t\n\t\tInputStream stream = new FileInputStream(\"../demo/src/main/resources/config.xlsx\");\n\t\t\n\t\t\n\t\tp.load(stream);\n\t\t\n\t\treturn p;\n\t}", "public PropertiesInjectionModule() {\n }", "public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }", "public OwlimRepositoryFactory() {\n\t\t\tthis(IWBFileUtil.getFileInDataFolder(Config.getConfig()\n\t\t\t\t\t\t\t.getRepositoryName()).getAbsolutePath()); \n\t\t}" ]
[ "0.7099234", "0.67202", "0.66058445", "0.6554916", "0.6436759", "0.64255977", "0.64182544", "0.63610214", "0.6344213", "0.6305799", "0.61778015", "0.6168118", "0.61091155", "0.6107117", "0.60739183", "0.60557353", "0.6046731", "0.6034666", "0.6008736", "0.5991065", "0.59788734", "0.5973889", "0.597145", "0.59530914", "0.59177023", "0.59174967", "0.5913048", "0.5893615", "0.5883067", "0.5874252", "0.58630127", "0.5862594", "0.5850324", "0.5843238", "0.5834215", "0.5817097", "0.5806554", "0.57953006", "0.5782319", "0.5774729", "0.57683253", "0.57676", "0.5767275", "0.57656205", "0.5754074", "0.57509005", "0.5749732", "0.57379454", "0.5723223", "0.5720065", "0.57159317", "0.571113", "0.5707664", "0.5690242", "0.568746", "0.5681373", "0.5678943", "0.5669711", "0.56677055", "0.5663872", "0.5656197", "0.5649067", "0.5632215", "0.5627313", "0.56155854", "0.56081706", "0.5588347", "0.5576756", "0.5575959", "0.55487365", "0.55448", "0.5542851", "0.55412614", "0.553862", "0.55308884", "0.5520205", "0.5515813", "0.55155414", "0.5509969", "0.55093074", "0.55040914", "0.5501046", "0.5493787", "0.5492437", "0.5492309", "0.5488956", "0.54882836", "0.548535", "0.54741013", "0.5473512", "0.547242", "0.547019", "0.5466778", "0.54655296", "0.5464224", "0.5461465", "0.54580593", "0.5456717", "0.5451122", "0.54504734" ]
0.63893425
7
Loads the properties from file into memory. Do nothing if there is no properties file.
@SuppressWarnings("unchecked") private void loadProperties() { File f = getPropertiesFile(); if (!f.exists()) return; m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }", "private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "private void loadPropertiesFile(String propertiesFile) {\n\n\t\t//open the properties file.\n\t\t_props = new Properties();\n\n\t\t//sanity check the properties file\n\t\tFile f = new File(propertiesFile);\n\t\tif (!f.canRead()) {\n\t\t\t//print an error - can't read the props file.\n\t\t\tSystem.err.println(\"Properties file \" + propertiesFile + \" cannot be read.\");\n\t\t}\n\n\t\ttry {\n\t\t\t_props.load(new FileInputStream(f));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }", "private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}", "public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}", "public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }", "public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }", "public void load(File file)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException \n {\n\t initializeTestProperties(new BufferedInputStream(new FileInputStream(file)));\n\t}", "private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}", "public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}", "public void loadPropertyFile(String filename) {\n try (InputStream is = new FileInputStream(filename)) {\n properties.load(is);\n } catch (IOException x) {\n throw new IllegalArgumentException(x);\n }\n }", "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }", "public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public void load(String fileName)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException\n {\n\t\tinitializeTestProperties(new BufferedInputStream(new FileInputStream(fileName)));\n\t}", "@Override\n public final boolean loadProperties() {\n if (props == null) {\n return false;\n }\n\n if (!loadFile()) {\n return false;\n }\n\n if (!loadFields()) {\n return false;\n }\n\n if (!loadFieldWidths()) {\n return false;\n }\n\n if (!loadTableName()) {\n return false;\n }\n\n if (!loadPkey()) {\n return false;\n }\n\n loadFieldOffsets();\n\n loadBatchSize();\n\n loadColumnTypes();\n\n loadRowValidator();\n // load column names. where they follow a given pattern.\n // load table name.\n\n return true;\n }", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }", "public static synchronized void refreshProperties(File file) {\n var prop = new Properties();\n FileInputStream input;\n try {\n input = new FileInputStream(file);\n prop.load(input);\n input.close();\n } catch (IOException e) {\n throw new PropertyReadException(e.getMessage(), e);\n }\n\n prop.forEach((key, value) -> checkSystemPropertyAndFillIfNecessary(valueOf(key),\n nonNull(value) ? valueOf(value) : EMPTY));\n arePropertiesRead = true;\n }", "public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }", "public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\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\treturn properties;\n\t}", "public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }", "public final Properties readPropertiesFromFile(final String fileName)\n {\n\n if (!StringUtils.isEmpty(fileName))\n {\n return PropertyLoader.loadProperties(fileName);\n } else\n {\n return null;\n } // end if..else\n\n }", "protected static Properties loadFileAsProperty(File file) throws FileNotFoundException, IOException {\r\n\t\tProperties result = new Properties();\r\n\t\tresult.load(new FileReader(file));\r\n\t\treturn result;\r\n\t}", "public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }", "public static Properties load(File file) {\n\t\ttry {\n\t\t\tif (file != null && file.exists()) {\n\t\t\t\treturn load(new FileInputStream(file));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "void loadProperties(File propertiesFile) throws IOException\n {\n // Load the properties.\n LOGGER.info(\"Loading properties from \\\"{}\\\" file...\", propertiesFile);\n try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(propertiesFile), \"UTF-8\"))\n {\n properties.load(inputStreamReader);\n }\n\n // Log all properties except for password.\n StringBuilder propertiesStringBuilder = new StringBuilder();\n for (Object key : properties.keySet())\n {\n String propertyName = key.toString();\n propertiesStringBuilder.append(propertyName).append('=')\n .append(HERD_PASSWORD_PROPERTY.equalsIgnoreCase(propertyName) ? \"***\" : properties.getProperty(propertyName)).append('\\n');\n }\n LOGGER.info(\"Successfully loaded properties:%n{}\", propertiesStringBuilder.toString());\n }", "public static Properties loadProperties(final String filename) throws IllegalArgumentException {\n final File file = new File(filename);\n final Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(file));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(\"File not found: \" + file, ex);\n } catch (IOException ex) {\n throw new IllegalArgumentException(\"Unable to load properties: \" + file, ex);\n }\n return properties;\n }", "public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}", "public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}", "public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}", "default void load(Map<String, Object> properties)\r\n {\r\n }", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "public static Properties loadProperties(@NonNull File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n Properties properties = new Properties();\n properties.load(fileInputStream);\n return properties;\n }", "public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }", "public static Properties loadProperties(String filePath) throws MnoConfigurationException {\n\t\tProperties properties = new Properties();\n\t\tInputStream input = getInputStreamFromClassPathOrFile(filePath);\n\t\ttry {\n\t\t\tproperties.load(input);\n\t\t} catch (IOException e) {\n\t\t\tthrow new MnoConfigurationException(\"Could not load properties file: \" + filePath, e);\n\t\t}\n\t\treturn properties;\n\t}", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }", "public static Properties loadProperties(String file) throws Exception {\n Properties props = new Properties();\n props.load(new FileInputStream(file));\n\n return props;\n }", "public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }", "public void load(File configFile) {\n try {\n this.getProperties().load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }", "public void loadObjectData(String datafile) {\n\t\tProperties databaseAddData = new Properties();\n\t\ttry {\n\t\t\tdatabaseAddData.load(new FileInputStream(langFile));\n\t\t} catch (Exception e) {}\n\t\t//put values from the properties file into hashmap\n\t\tthis.properties.put(\"PROPERTY\", databaseAddData.getProperty(\"PROPERTY\"));\n\t}", "private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }", "public abstract void load(Properties props, InputStream in)\n throws IOException, InvalidPropertiesFormatException;", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }", "void setPropertiesFile(File file);", "@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}", "public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }", "public static Properties load(String propsFile)\n {\n \tProperties props = new Properties();\n FileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(propsFile));\n\t\t\tprops.load(fis); \n\t\t fis.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n return props;\n }", "public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }", "public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }", "public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}", "private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }", "public static Properties file2Properties(File file) {\r\n Properties props = new Properties();\r\n FileInputStream stream = null;\r\n InputStreamReader streamReader = null;\r\n\r\n\r\n try {\r\n stream = new FileInputStream(file);\r\n streamReader = new InputStreamReader(stream, charSet);\r\n props.load(streamReader);\r\n } catch (IOException ex) {\r\n Logger.getLogger(RunProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return props;\r\n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}", "private void loadPropertyFiles() {\n if ( _sax_panel != null ) {\n _property_files = ( ( SAXTreeModel ) _sax_panel.getModel() ).getPropertyFiles();\n if ( _property_files == null )\n return ;\n HashMap filelist = new HashMap();\n ArrayList resolved = new ArrayList();\n Iterator it = _property_files.keySet().iterator();\n while ( it.hasNext() ) {\n Object o = it.next();\n if ( o == null )\n continue;\n File f = null;\n if ( o instanceof File ) {\n f = ( File ) o;\n Long lastModified = ( Long ) _property_files.get( f );\n filelist.put( f, lastModified );\n }\n else if ( _project != null ) {\n String value = o.toString();\n String filename = value;\n if ( value.startsWith( \"${\" ) && value.endsWith( \"}\" ) ) {\n filename = filename.substring( 2, filename.length() - 1 );\n }\n filename = _project.getProperty( filename );\n if ( filename != null )\n f = new File( filename );\n if ( f != null && !f.exists() ) {\n f = new File( _project.getBaseDir(), filename );\n }\n if ( f != null && f.exists() ) {\n filelist.put( f, new Long( f.lastModified() ) );\n resolved.add( value );\n }\n // see issue #21, Ant standard is to quietly ignore files not found\n //else\n // _logger.warning( \"Unable to find property file for \" + value );\n }\n }\n it = resolved.iterator();\n while ( it.hasNext() ) {\n filelist.remove( it.next() );\n }\n _property_files = filelist;\n }\n }", "void load(final File file) {\n this.file = Preconditions.checkNotNull(file);\n this.gameModelPo = gameModelPoDao.loadFromFile(file);\n visibleAreaService.setMapSize(getMapSize());\n initCache();\n }", "public HistogramConfiguration loadProperties(String propertyFileName)\n {\n HistogramConfiguration histConfig = HistogramConfiguration.getInstance();\n\n try(FileInputStream inputStream = new FileInputStream(propertyFileName))\n {\n properties.load(inputStream);\n\n histConfig.setShouldIgnoreWhiteSpaces(loadShouldIgnoreWhiteSpace());\n histConfig.setIgnoreCharacters(loadIgnoredCharactersProperties());\n\n }catch (IOException e)\n {\n e.printStackTrace();\n }\n\n return histConfig;\n }", "public static Properties loadProperties(String path) throws IOException {\n BufferedReader br = IOTools.asReader(path);\n Properties prop = new Properties();\n prop.load(br);\n br.close();\n return prop;\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public ReadProperties(String filename) {\n\n\t\ttry {\n\t\t\tInputStream in = new FileInputStream(filename);\n\n\t\t\tprop = new Properties();\n\n\t\t\tprop.load(in);\n\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}", "public static Properties loadOrCreateProperties(String filename, Properties defaultProperties) {\n\n Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(filename));\n } catch (Exception loadException) {\n try {\n FileOutputStream out = new FileOutputStream(filename);\n if (defaultProperties != null) {\n defaultProperties.store(out, null);\n }\n out.close();\n properties.load(new FileInputStream(filename));\n } catch (Exception writeException) {\n // Do nothing\n return null;\n }\n }\n return properties;\n }", "private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }", "public static Properties readProperties(String filePath){\n try {\n FileInputStream fileInputStream= new FileInputStream(filePath);\n properties=new Properties();\n properties.load(fileInputStream);\n fileInputStream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return properties;\n }", "private static void storePropsFile() {\n try {\n FileOutputStream fos = new FileOutputStream(propertyFile);\n props.store(fos, null);\n fos.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }", "private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }", "@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "PropertiesTask setProperties( File propertiesFile );", "public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }", "public static void loadConfigurationFile() throws IOException {\n\t\tFileInputStream fis= new FileInputStream(\"config.properties\");\n\t\tprop.load(fis);\n\t}", "public void load(Map<String, String> props) {\n if (props != null && props.size() > 0) {\n for (String key : props.keySet()) {\n if (isSupported(key)) {\n String suffix = getSuffix(key);\n String value = props.get(key);\n loadProperty(suffix, value);\n }\n }\n }\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public PropertyManager(String propFileName) {\n if ((propFileName != null) && (propFileName.length() > 0)) {\n this.propFileName = propFileName;\n recentResult = loadPropertyFile(propFileName);\n }\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }", "protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }" ]
[ "0.80370486", "0.8032012", "0.77031595", "0.7561896", "0.7548645", "0.74837697", "0.7281896", "0.72395587", "0.72131187", "0.7131818", "0.7128367", "0.7093615", "0.70499474", "0.7047157", "0.70417887", "0.7007766", "0.6993818", "0.6986561", "0.6981396", "0.6964518", "0.6943032", "0.6921139", "0.69135326", "0.68980926", "0.68943125", "0.68352985", "0.68137664", "0.67459404", "0.6707211", "0.6694927", "0.6692534", "0.6668198", "0.6664671", "0.66487867", "0.66349727", "0.6612832", "0.66089636", "0.65963244", "0.65929276", "0.6567667", "0.6562254", "0.6523824", "0.6488592", "0.64639467", "0.64538294", "0.6441016", "0.64299613", "0.64134866", "0.64012533", "0.63991493", "0.639335", "0.6372463", "0.63557047", "0.63552624", "0.6340339", "0.6320986", "0.6311254", "0.6309368", "0.62907416", "0.6289559", "0.62893045", "0.62883556", "0.62787586", "0.6264229", "0.6263887", "0.62582463", "0.62488633", "0.62473065", "0.6226141", "0.621738", "0.6214222", "0.62073404", "0.6201903", "0.6180175", "0.6172851", "0.6170288", "0.6159974", "0.61569476", "0.6131604", "0.61304927", "0.6127785", "0.6122307", "0.61194885", "0.61144495", "0.61137044", "0.61087054", "0.61004835", "0.61002564", "0.60947853", "0.6088733", "0.60790443", "0.6075921", "0.60638124", "0.6052742", "0.60527277", "0.60463846", "0.6033661", "0.6031258", "0.60301715", "0.6025337" ]
0.7979923
2
Saves current properties into the properties file.
private void saveProperties() { PSConfigUtils.saveObjectToFile(m_props, getPropertiesFile()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void saveProperties() {\n //if(debug_flag) \n //System.out.println(Util.asctime() + \" Saving properties to \" + propfilename + \" nkeys=\" + prop.size());\n try {\n try (FileOutputStream o = new FileOutputStream(propfilename)) {\n prop.store(o, propfilename + \" via Util.saveProperties() cp=\"\n + System.getProperties().getProperty(\"java.class.path\"));\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"Could not write properties to \" + propfilename);\n System.exit(1);\n } catch (IOException e) {\n System.out.println(\"Write error on properties to \" + propfilename);\n System.exit(1);\n }\n }", "public static void save()\n {\n try\n {\n FileOutputStream fOS = new FileOutputStream(propsFile); \n props.store(fOS, \"\");\n fOS.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "public static void saveProperties() {\n try {\n try (FileOutputStream out = new FileOutputStream(propFile)) {\n properties.store(out, \"BitcoinWallet Properties\");\n }\n } catch (Exception exc) {\n Main.logException(\"Exception while saving application properties\", exc);\n }\n }", "private void saveProps() {\n FileOutputStream out;\n \n try {\n out = new FileOutputStream(\"gamesettings.properties\");\n props.store(out, null);\n } catch (FileNotFoundException ex) {\n try {\n out = new FileOutputStream(new File(\"gamesettings.properties\"));\n props.store(out, null);\n } catch (FileNotFoundException ex1) {\n System.out.println(\"Saving failed!\");\n } catch (IOException ex1) {\n System.out.println(\"Saving failed!\");\n }\n } catch (IOException ex) {\n try {\n out = new FileOutputStream(new File(\"gamesettings.properties\"));\n props.store(out, null);\n } catch (FileNotFoundException ex1) {\n System.out.println(\"Saving failed!\");\n } catch (IOException ex1) {\n System.out.println(\"Saving failed!\");\n }\n }\n }", "private void saveProperties() throws IOException {\r\n\t\tsetProperties();\r\n\t\tOutputStream outputStream;\r\n\t\toutputStream = new FileOutputStream(configFile);\r\n\t\tconfigProps.store(outputStream, \"Lot Data Mapper Application\");\r\n\t\tString msg = \"SAVING PROPERTIES WITH VALUES: \\n\\t 1 \\t\" + dt.Root+\"\\n \\t 2 \\t\" + dt.Map+\" \\n\\t 3 \\t\" + dt.Out+\" \\n\\t 4 \\t\" + Trans.ReportTypeName+\" \\n\\t 5 \\t\"+Trans.ReportedByPersonName+\" \\n\\t 6\\t\"+Trans.ReportedDate + \"\\n PROPERTIIES SAVED\";\r\n\t\tlg.l(msg);\r\n\t\toutputStream.close();\r\n\t}", "private static void storePropsFile() {\n try {\n FileOutputStream fos = new FileOutputStream(propertyFile);\n props.store(fos, null);\n fos.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "private void saveConfiguration() {\r\n\tnew File(PROPERTIES_FILE).getParentFile().mkdirs();\r\n\tProperties props = new Properties();\r\n\ttry {\r\n\t props.setProperty(KEY_LAST_SOURCE_DIR, lastSourceDir);\r\n\t props.setProperty(KEY_LAST_TARGET_DIR, lastTargetDir);\r\n\t logger.debug(\"Speichere \" + props + \" nach \" + PROPERTIES_FILE);\r\n\t FileOutputStream stream = new FileOutputStream(PROPERTIES_FILE);\r\n\r\n\t props.store(stream, \"Do not change!\");\r\n\t stream.close();\r\n\t} catch (IOException e) {\r\n\t logger.error(\"Konfiguration konnte nicht gespeichert werden!\", e);\r\n\t}\r\n }", "private void savePropertiesFile(String propertiesFile) {\n\t\tif (_props == null) return; //or maybe save a default file?\n\t\tFile f = new File(propertiesFile);\n\t\t\n\t\t//does it exist yet?\n\t\tif (!f.exists()) {\n\t\t\t//touch the file and close it.\n\t\t\ttry {f.createNewFile();}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(\"Properties file \" + propertiesFile + \" does not exist and cannot be created.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//write the file.\n\t\ttry {\n\t\t\t_props.store(new FileOutputStream(f), \"SCSoundControl Properties File\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "public static void writeProperties() {\n\t\ttry {\n\t\t\tLogger.getLogger(Configuration.class).info(\"Write properties\");\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(new File(configFileName));\n\t\t\tproperties.store(fileOutputStream, \"\");\n\t\t\tfileOutputStream.close();\n\n\t\t\t// externalToolParser.writeInFile(externalToolsList,\n\t\t\t// Configuration.extToolsConfigFileName);\n\t\t} catch (FileNotFoundException fne) {\n\t\t\tAlert.raise(fne, \"Cannot find configuration file: \" + fne.getMessage());\n\t\t} catch (IOException ioe) {\n\t\t\tAlert.raise(ioe, \"Cannot write configuration file: \" + ioe.getMessage());\n\t\t} catch (Exception ex) {\n\t\t\tAlert.raise(ex, \"Cannot write configuration file: \" + ex.getMessage());\n\t\t}\n\t}", "public void storeProperties() throws LogFile.LockException, IOException {\n // If the file has not been set, don't save.\n if (dataFile != null) {\n synchronized (dataFile) {\n if (!dataFile.isDirectory()) {\n if (dataFile.getName().endsWith(EtomoDirector.USER_CONFIG_FILE_EXT)) {\n dataFile.backupOnce();\n }\n else {\n dataFile.doubleBackupOnce();\n }\n }\n if (!dataFile.exists()) {\n dataFile.create();\n }\n LogFile.OutputStreamId outputStreamId = dataFile.openOutputStream();\n dataFile.store(properties, outputStreamId);\n dataFile.closeOutputStream(outputStreamId);\n }\n }\n }", "protected void saveProperties() throws RepositoryException {\n try {\n log.debug(\"writing meta file: \" + this.metaFile);\n PrintWriter writer = new PrintWriter(new FileOutputStream(this.metaFile));\n Iterator iterator = this.properties.values().iterator();\n while (iterator.hasNext()) {\n Property property = (Property)iterator.next();\n writer.println(property.getName() + \"<\" + PropertyType.getTypeName(property.getType()) + \n \">:\" + property.getValueAsString());\n }\n writer.flush();\n writer.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }", "private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}", "public void saveProperties()\n\t\tthrows Exception\n\t{\n\n\t\t// Make sure dir exists before saving the file\n\t\tif (!imperson.fileExists(propertyDir)) {\n\t\t\timperson.createDirectory(propertyDir);\n\t\t}\n\n\n\t\tString str = \"\";\n\n\t\t// Sort the property names alphabetically\n\t\tEnumeration en = config.propertyNames();\n\t\tTreeSet sortedKeys = new TreeSet();\n\t\twhile (en.hasMoreElements()) {\n\t\t\tsortedKeys.add((String)en.nextElement());\n\t\t}\n\n\t\t// List them out\n\t\tIterator it = sortedKeys.iterator();\n\t\tString name = \"\";\n\t\tString prev = \"\";\n\t\tString group = \"\";\n\t\tint pos = -1;\n\t\twhile (it.hasNext()) {\n\n\t\t\tname = (String)it.next();\n\n\t\t\t// Check if this prop name is in\n\t\t\t// a different group as the previous one.\n\t\t\tpos = name.indexOf('.');\n\t\t\tif (pos > 0) {\n\t\t\t\tgroup = name.substring(0, pos);\n\t\t\t} else {\n\t\t\t\tgroup = name;\n\t\t\t}\n\t\t\t// add a comment line for the new group\n\t\t\tif (!prev.equals(group))\n\t\t\t\tstr += \"\\n# \" + group + \" config group\\n\";\n\n\t\t\t// add the property\n\t\t\tstr += name + \"=\" + (String)config.getProperty(name, \"\") + \"\\n\";\n\t\t\t\n\t\t\tprev = group;\n\t\t}\n\n\n\t\timperson.saveFile(propertyFile, str);\n\n\n\t}", "private void storeProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Storing Properties to {}\", path.toString());\n try {\n final FileOutputStream fos = new FileOutputStream(path.toFile());\n final Properties properties = new Properties();\n String privateKey = this.credentials.getEcKeyPair().getPrivateKey().toString(16);\n properties.setProperty(PRIVATE_KEY, privateKey);\n properties.setProperty(CONTRACT1_ADDRESS, this.contract1Address);\n properties.setProperty(CONTRACT2_ADDRESS, this.contract2Address);\n properties.setProperty(CONTRACT3_ADDRESS, this.contract3Address);\n properties.setProperty(CONTRACT4_ADDRESS, this.contract4Address);\n properties.setProperty(CONTRACT5_ADDRESS, this.contract5Address);\n properties.setProperty(CONTRACT6_ADDRESS, this.contract6Address);\n properties.store(fos, \"Sample code properties file\");\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject myFile = FileUtil.findBrother(pFile, extension);\n if (myFile == null) {\n myFile = FileUtil.createData(pFile.getParent(), pFile.getName() + \".\" + extension);\n }\n lock = myFile.lock();\n out = new BufferedOutputStream(myFile.getOutputStream(lock));\n props.store(out, \"\");\n out.flush();\n lastLoaded = myFile.lastModified();\n logger.log(Level.FINE, \"Written AssetData properties for {0}\", file);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n if (lock != null) {\n lock.releaseLock();\n }\n }\n }\n });\n }", "public void write() throws IOException { \n FileOutputStream fos = new FileOutputStream(new File(_propertyFileDir, \n DAS_PROPERTY_FILE_NAME));\n _properties.store(fos, _strMgr.getString(\"dasPropertyFileComment\"));\n fos.close(); \n }", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }", "public void saveProperties(ArrayList<Property> otherProperties, ArrayList<Property> notSoldProperties, ArrayList<Property> soldProperties) {\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream(PROPERTY_FILEPATH);\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\tint size1 = otherProperties.size();\r\n\t\t\tint size2 = notSoldProperties.size();\r\n\t\t\tint size3 = soldProperties.size();\r\n\t\t\tfor (int i = 0; i < size1; i++) {\r\n\t\t\t\toos.writeObject(otherProperties.get(i));\r\n\t\t\t}\r\n\t\t\tfor (int j = 0; j < size2; j++) {\r\n\t\t\t\toos.writeObject(notSoldProperties.get(j));\r\n\t\t\t}\r\n\t\t\tfor (int k = 0; k < size3; k++) {\r\n\t\t\t\toos.writeObject(soldProperties.get(k));\r\n\t\t\t}\r\n\t\t\toos.close();\r\n\t\t}\r\n\t\tcatch (EOFException ex) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n\t\t} \r\n\t\tcatch (FileNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} \r\n\t\tcatch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\tcatch (NullPointerException ex) {\r\n\t\t\tSystem.out.println(\"No properties saved.\");\r\n\t\t}\r\n\t}", "public static void SavePreferences()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(preferences_file_name, \"UTF-8\");\n \n writer.print(Utilities.BoolToInt(MusicManager.enable_music) + \"\\r\\n\");\n writer.print(Utilities.BoolToInt(PassiveDancer.englishMode) + \"\\r\\n\");\n \n writer.close();\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + preferences_file_name + \".\"); }\n }", "private void storeProperties() {\n storeValue(Variable.MODE);\n storeValue(Variable.ITEM);\n storeValue(Variable.DEST_PATH);\n storeValue(Variable.MAXTRACKS_ENABLED);\n storeValue(Variable.MAXTRACKS);\n storeValue(Variable.MAXSIZE_ENABLED);\n storeValue(Variable.MAXSIZE);\n storeValue(Variable.MAXLENGTH_ENABLED);\n storeValue(Variable.MAXLENGTH);\n storeValue(Variable.ONE_MEDIA_ENABLED);\n storeValue(Variable.ONE_MEDIA);\n storeValue(Variable.CONVERT_MEDIA);\n storeValue(Variable.CONVERT_COMMAND);\n storeValue(Variable.NORMALIZE_FILENAME);\n storeValue(Variable.RATING_LEVEL);\n }", "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void save(Map<String, Object> props)\n {\n if (props == null)\n throw new IllegalArgumentException(\"props may not be null.\");\n \n m_props.putAll(props);\n saveProperties();\n }", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "private void saveProperties() {\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.driver\", driver);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.serverURL\", serverURL);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.username\", username);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.password\", password);\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.minConnections\",\n Integer.toString(minConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.maxConnections\",\n Integer.toString(maxConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.connectionTimeout\",\n Double.toString(connectionTimeout));\n }", "public static void savePropertiesFile(Properties propFile, String path, String comments) {\n\t\ttry {\n\t\t\tpropFile.store(new FileOutputStream(path), comments);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error Saving Properties File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void writeProperties(Properties pro,String path){\r\n if(pro!=null&&!StringUtil.emptyOrNull(path)){\r\n OutputStream out=null;\r\n try {\r\n out =new FileOutputStream(path);\r\n pro.store(out,\"\");\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally {\r\n try {\r\n if(out!=null){\r\n out.close();\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "@Override\n public void saveProperties() {\n throw new GemFireIOException(\"saveProperties is no longer supported for security reasons\");\n }", "public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}", "public static void save() throws IOException {\n FileOutputStream f_out = new\n FileOutputStream(settingsFile);\n ObjectOutputStream o_out = new\n ObjectOutputStream(f_out);\n SettingsSaver s = new SettingsSaver();\n o_out.writeObject(s);\n o_out.close();\n f_out.close();\n }", "public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}", "public void writeToPropertiesFile(String propertiesPath) {\n OrderedPropertiesBuilder builder = new OrderedPropertiesBuilder();\n builder.withOrdering(String.CASE_INSENSITIVE_ORDER);\n builder.withSuppressDateInComment(true);\n OrderedProperties props = builder.build();\n \n // Creating a File object which will point to location of\n // properties file\n File propertiesFile = new File(propertiesPath);\n \n try {\n \n // create a FileOutputStream by passing above properties file\n FileOutputStream xlsFos = new FileOutputStream(propertiesFile);\n \n // Taking hashMaps keys by first converting it to Set and than\n // taking iterator over it.\n Iterator mapIterator = properties.keySet().iterator();\n \n // looping over iterator properties\n while (mapIterator.hasNext()) {\n \n // extracting keys and values based on the keys\n String key = mapIterator.next().toString();\n \n String value = properties.get(key);\n \n // setting each properties file in props Object\n // created above\n props.setProperty(key, value);\n \n }\n \n // Finally storing the properties to real\n // properties file.\n props.store(xlsFos, null);\n \n } catch (FileNotFoundException e) {\n \n e.printStackTrace();\n \n } catch (IOException e) {\n \n e.printStackTrace();\n \n }\n }", "public void save() {\n\t\tpreferences().flush();\n\t}", "public static boolean storeProperties(String filename, Properties properties) {\n\n try {\n FileOutputStream out = new FileOutputStream(filename);\n if (properties != null) {\n properties.store(out, null);\n }\n out.close();\n return true;\n } catch (Exception e) {\n // Do nothing\n return false;\n }\n\n }", "public void writeProp(File propFile) {\n\t\tprop = new Properties();\n\n\t\t// File file = new File(\"../resources/files/Config.properties\");\n\n\t\tpropFile = new File(propFile.getAbsolutePath().replace(\"..\", \"src\\\\main\"));\n\n\t\ttry {\n\n\t\t\toutput = new FileOutputStream(propFile);\n\n\t\t\t// set the properties value\n\t\t\tprop.setProperty(\"database\", \"localhost\");\n\t\t\tprop.setProperty(\"dbuser\", \"mkyong\");\n\t\t\tprop.setProperty(\"dbpassword\", \"password\");\n\n\t\t\t// save properties to project root folder\n\t\t\tprop.store(output, null);\n\n\t\t} catch (Exception io) {\n\t\t\tio.printStackTrace();\n\t\t} finally {\n\t\t\tif (output != null) {\n\t\t\t\ttry {\n\t\t\t\t\toutput.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "void writeProperties(java.util.Properties p) {\n }", "public void writeToConfigFile() {\n if(properties == null) {\n return;\n }\n\n properties.put(\"MAN-LATITUDE\", String.valueOf(Location.getMan_latitude()));\n properties.put(\"MAN-LONGITUDE\", String.valueOf(Location.getMan_longitude()));\n properties.put(\"CURRENT-DESTINATION-NAME\", currentDestinationName);\n properties.put(\"CURRENT-DESTINATION-ADDRESS\", currentDestination.getCSVAddress());\n properties.put(\"EVENT-START-TIME\", ClockDriver.dfFull.format(Event.globalEventStartTime));\n double[] coefficients = Location.getAdjustmentCoefficients();\n String adjustmentCoefficients = String.valueOf(coefficients[0]) + ',' +\n String.valueOf(coefficients[1]) + ',' + String.valueOf(coefficients[2]) + ',' +\n String.valueOf(coefficients[3]);\n properties.put(\"ADJUSTMENT-COEFFICIENTS\", adjustmentCoefficients);\n StringBuilder blockStringBuilder = new StringBuilder();\n for(Object[] block : Location.getBlockDistances()) {\n if(block.length == 2) {\n blockStringBuilder.append(block[0]);\n blockStringBuilder.append(',');\n blockStringBuilder.append(block[1]);\n blockStringBuilder.append(';');\n }\n }\n properties.put(\"BLOCK-DISTANCES\", blockStringBuilder.toString());\n\n try {\n properties.store(new FileOutputStream(configPath), \"\");\n } catch(IOException e) {\n logger.warning(this.getClass(),\n \"IOException while writing to config file \\'\" + configPath + \"\\': \" + e.getMessage());\n }\n }", "private void saveSettings() {\n SettingsModel settingsModel = new SettingsModel();\n settingsModel.saveState(NJNPStartActivity.this);\n\n File NJNPSettingsDirectory = new File(NJNPConstants.DIRECTORY_PATH + NJNPConstants.SETTINGS_FOLDER);\n NJNPSettingsDirectory.mkdirs();\n\n File file = new File(NJNPSettingsDirectory.getPath(), NJNPConstants.SETTINGS_FILE_NAME);\n\n FileOutputStream fos = null;\n ObjectOutputStream os = null;\n try {\n fos = new FileOutputStream(file);\n os = new ObjectOutputStream(fos);\n os.writeObject(settingsModel);\n os.close();\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"File not found exception when saving settings: \" + e.getMessage());\n } catch (IOException e) {\n Log.e(NJNP_ACTIVITY_TAG, \"IO Exception when saving settings: \" + e.getMessage());\n }\n\n }", "public void saveProperties()\n {\n _appContext.Configuration.save();\n }", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "public synchronized static void saveSettings() {\n try {\n ObjectOutputStream objectOutputStream = null;\n try {\n objectOutputStream = new ObjectOutputStream(new FileOutputStream(settingsfile));\n objectOutputStream.writeUnshared(transferITModel.getProperties());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getHostHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsernameHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getPasswordHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsers());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUserRights());\n objectOutputStream.reset();\n objectOutputStream.flush();\n } catch (IOException ex1) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex1);\n }\n objectOutputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void save() {\n savePrefs();\n }", "public static void storeProperties(final Properties properties, final String path)\n throws IOException {\n if (StringUtils.isBlank(path)) {\n throw new IllegalArgumentException(\n \"The properties file path can't be null or empty\");\n }\n\n if (properties == null) {\n throw new IllegalArgumentException(\n \"The properties to save can't be null\");\n }\n\n final FileOutputStream outPutStream = new FileOutputStream(path);\n properties.store(outPutStream, null);\n }", "public boolean store() {\n\t\tOutputStream stream = null;\n\n\t\tif ( null == m_props ) m_props = new Properties();\n\t\t\n\t\ttry {\n\t\t\tstream = new FileOutputStream(m_strFileName);\n\t\t\tm_props.setProperty(strUrl, \"jdbc:mysql://localhost:3306/Orders\");\n\t\t\tm_props.setProperty(strUser, \"Tom\");\n\t\t\tm_props.setProperty(strPassword, \"password\");\n\t\t\tm_props.store(stream, null);\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tif (stream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"Prop file \" + m_strFileName + \" stored\");\n\t\treturn true;\n\t}", "void savePreferences() throws OntimizeJEERuntimeException;", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "public static void saveGameConfiguration() {\n exportJsonFile(new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME));\n }", "public static boolean saveProperties(final Properties properties, final String path)\n throws IOException {\n if (properties == null) {\n throw new IllegalArgumentException(\n \"The properties to save can't be null\");\n }\n\n if (StringUtils.isBlank(path)) {\n throw new IllegalArgumentException(\n \"The property path can't be null or empty\");\n }\n\n final FileOutputStream outPutStream = new FileOutputStream(path);\n properties.store(outPutStream, null);\n return true;\n }", "public void save() {\n\t\tif (fileConfiguration == null || configFile == null)\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tgetConfig().save(configFile);\n\t\t} catch (final IOException e) {\n\t\t\tplugin.getLogger().severe(String.format(\"[%s] Could not save config to %s : %s\", plugin.getName(), configFile, e));\n\t\t}\n\t}", "protected void writeOutputFileForLocale(String localeName, Properties properties) {\n\t\tFile file = new File(\"localization_\" + localeName + \".properties\");\n\t\ttry (FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\tproperties.store(fileOutputStream, null);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "private static void commit() throws IOException {\n java.io.File out = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION + \".\"\n + Const.FILE_SAVING_FILE_EXTENSION);\n OutputStream str = new FileOutputStream(out);\n // Write the temporary file\n try {\n properties.store(str, \"User configuration\");\n } finally {\n str.flush();\n str.close();\n }\n // Commit with recovery support\n java.io.File finalFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.saveFileWithRecoverySupport(finalFile);\n Log.debug(\"Conf commited to : \" + finalFile.getAbsolutePath());\n }", "public static void saveSettings() {\n\n Writer output = null;\n try {\n output = new BufferedWriter(new FileWriter(getConfigFile()));\n final Set<String> set = m_Settings.keySet();\n final Iterator<String> iter = set.iterator();\n while (iter.hasNext()) {\n final String sKey = iter.next();\n final String sValue = m_Settings.get(sKey);\n output.write(sKey + \"=\" + sValue + \"\\n\");\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n finally {\n if (output != null) {\n try {\n output.close();\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n }\n\n }", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n\t\tp.setProperty(\"version\", \"1.0\");\n\t\t// TODO store your settings\n\t}", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void setPropertiesFile(File file);", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "PropertiesTask setProperties( File propertiesFile );", "private void writePropertiesFile() throws IOException {\n // stop gradle daemon immediately and set maximum heap size to\n // a low value so the functional tests run well on the CI server\n String content = \"org.gradle.daemon.idletimeout=0\\n\" +\n \"org.gradle.jvmargs=-Xmx128M\\n\";\n\n FileUtils.writeStringToFile(propertiesFile, content, StandardCharsets.UTF_8);\n }", "public void savePreferences() {\n\t\ttry\t{\n\t\t\tFile temp = new File(\"dropbox.ini\");\n\t\t\tif (temp.exists()) {\n\t\t\t\tdboxini.load(\"dropbox.ini\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception in loading dropbox.ini\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Save window size.\n\t\tPoint sl = getLocationOnScreen();\n\t\tDimension sz = getSize();\n\t\tConfigSection wp = new ConfigSection(\"WindowState\");\n\t\twp.setIntProperty(\"xLoc\",sl.x);\n\t\twp.setIntProperty(\"yLoc\",sl.y);\n\t\twp.setIntProperty(\"width\",sz.width);\n\t\twp.setIntProperty(\"height\",sz.height);\n\t\tdboxini.removeSection(wp.getName());\n\t\tdboxini.addSection(wp);\n\n\t\t// Save ini file to disk.\n\t\ttry {\n\t\t\tdboxini.store(\"dropbox.ini\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to save preferences as dropbox.ini\");\n\t\t}\n\t}", "public void save() {\n try {\n yml.save(config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save(String filename) throws IOException {\r\n String newline = System.getProperty(\"line.separator\");\r\n FileWriter out = new FileWriter(filename);\r\n Enumeration e = keyvaluepairs.keys();\r\n while (e.hasMoreElements()) {\r\n String key = (String) e.nextElement();\r\n out.write(key + \"=\" + (String) keyvaluepairs.get(key) + newline);\r\n }\r\n out.close();\r\n }", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "private static void saveSettings() {\n try {\n File settings = new File(\"settings.txt\");\n FileWriter writer = new FileWriter(settings);\n //Options\n writer.append(defaultSliderPosition + \"\\n\");\n writer.append(isVerticalSplitterPane + \"\\n\");\n writer.append(verboseCompiling + \"\\n\");\n writer.append(warningsEnabled + \"\\n\");\n writer.append(clearOnMethod + \"\\n\");\n writer.append(compileOptions + \"\\n\");\n writer.append(runOptions + \"\\n\");\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n writer.append(colorScheme[i].getRGB() + \"\\n\");\n writer.append(theme + \"\\n\");\n\n writer.close(); \n } catch (IOException i) {\n println(\"IO exception when saving settings.\", progErr);\n }\n }", "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}", "public void save(File configFile) {\n configFile.getParentFile().mkdirs();\n\n try {\n this.getProperties().store(new FileWriter(configFile), \"Redis Credentials\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public void save() {\r\n try {\r\n FileOutputStream fos = new FileOutputStream(REPO_STATE_FILE_NAME);\r\n fos.write(CodecUtils.toJson(this).getBytes());\r\n fos.close();\r\n } catch (Exception e) {\r\n Logging.logError(e);\r\n }\r\n }", "public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }", "public void save() throws Exception {\n // create a File object for the output file\n File outputFile = new File(MinuteUpdater.mapDir, this.fileName);\n // outputFile.mkdirs();\n outputFile.createNewFile();\n FileOutputStream fileOutputStream = new FileOutputStream(outputFile);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n objectOutputStream.writeObject(this);\n objectOutputStream.close();\n }", "public void save() {\n try {\n ConfigurationProvider.getProvider(YamlConfiguration.class).save(this.configuration, this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}", "@Override\n public void storeProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n }\n final EditableDocument document = Schematic.newDocument();\n for (final Property property : properties.values()) {\n if (property == null) {\n continue;\n }\n translator.setProperty(document, property, null, null);\n }\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }", "public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }", "public Save(Game game) {\n\t\tthis(game, \"/\");\n\t\t\n\t\twritePrefs(\"Preferences\");\n\t}", "public void saveAccountConfig () {\n\t\ttry {\n\t\t\tthis.accountConfig.store(new FileWriter(new File(this.accountAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to account properties file: \" + accountAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }", "private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}", "public void storePreferences() throws Exception {\n\t\tupdatePreferences();\n\t\tPortletPreferences preferences = getPreferences();\n\t\tpreferences.store();\n\t}", "public void autoSave(){\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveDbConfig () {\n\t\ttry {\n\t\t\tthis.databaseConfig.store(new FileWriter(new File(this.databaseAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to database properties file: \" + databaseAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "public void save() throws Exception {\n FileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n ObjectOutputStream save = new ObjectOutputStream(saveFile);\n save.writeObject(this);\n save.close();\n }", "public long saveupdateProperty(Property property, MultipartFile file) {\n\t\treturn 0;\n\t}", "public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void saveOtherSetting(GameEngine engine, CustomProperties prop) {\r\n\t\tsuper.saveOtherSetting(engine, prop, \"spf\");\r\n\t\tint playerID = engine.getPlayerID();\r\n\t\tprop.setProperty(\"avalanchevsspf.ojamaCountdown.p\" + playerID, ojamaCountdown[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropSet.p\" + playerID, dropSet[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropMap.p\" + playerID, dropMap[playerID]);\r\n\t}" ]
[ "0.830144", "0.8246427", "0.82045007", "0.80427706", "0.7915705", "0.78601813", "0.7636705", "0.7531519", "0.7419547", "0.73383486", "0.73276377", "0.7301724", "0.72563064", "0.72438586", "0.7166647", "0.7114225", "0.6924636", "0.6880813", "0.68275857", "0.6789528", "0.67690116", "0.6710486", "0.66508716", "0.6631397", "0.6615845", "0.66012806", "0.65679663", "0.6560686", "0.6533364", "0.64859", "0.6481904", "0.64693576", "0.6424847", "0.6423185", "0.64205414", "0.63945293", "0.63827866", "0.63781565", "0.6364007", "0.63400376", "0.63190734", "0.6309847", "0.63086593", "0.6302855", "0.6295757", "0.629491", "0.6270598", "0.62563866", "0.6252854", "0.62488854", "0.6222698", "0.62110907", "0.6196548", "0.6175787", "0.61625373", "0.61405706", "0.6130027", "0.6129416", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.6124526", "0.61240214", "0.61195534", "0.61195433", "0.60965985", "0.60959744", "0.6095284", "0.60866123", "0.60734284", "0.60718644", "0.6062307", "0.6050596", "0.60364115", "0.6027556", "0.6022577", "0.6012174", "0.6009284", "0.60040313", "0.59907967", "0.59791285", "0.5966233", "0.59545445", "0.5941821", "0.5931719", "0.5929416", "0.5928143", "0.5924613", "0.5907193", "0.58911073", "0.58826166", "0.5870989" ]
0.85157216
0
/ //see base class method for details
@SuppressWarnings("unchecked") public List getList(String name) { Object v = getProperty(name); return (v == null) ? null : (List) v; }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n\n }", "public void smell() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "private stendhal() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void designBasement() {\n\t\t\r\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public abstract void mo70713b();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void classroom() {\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}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576", "0.62397265", "0.61796856", "0.61770797", "0.6164105", "0.6146871", "0.6122446", "0.60946786", "0.6094606", "0.608346", "0.6082499", "0.60409456", "0.6039591", "0.6026561", "0.6025881", "0.6022485", "0.6020405", "0.6009391", "0.6007779", "0.60076237", "0.60076237", "0.6001669", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.5992204", "0.59873676", "0.5979863", "0.5975232", "0.5975232", "0.59371424", "0.5931871", "0.59294736", "0.59294736", "0.5925579", "0.59227633", "0.5919771", "0.59159863", "0.5914985", "0.5914735", "0.5904307", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.5902519", "0.58948666", "0.5891058", "0.5890541", "0.5890541", "0.5890541", "0.588907", "0.5881792", "0.587475", "0.5874252", "0.5863667", "0.58622056", "0.585841", "0.5854168", "0.58413976", "0.5838598", "0.5838598", "0.58369076", "0.583542", "0.5823318", "0.5822206", "0.5813625", "0.5813625", "0.5813625", "0.58088064", "0.5807817", "0.5805739", "0.5798413", "0.579037", "0.5783837", "0.5783109", "0.5783109" ]
0.0
-1
/ //see base class method for details
@SuppressWarnings("unchecked") public Map getMap(String name) { Object v = getProperty(name); return (v == null) ? null : (Map) v; }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n\n }", "public void smell() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "private stendhal() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void designBasement() {\n\t\t\r\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public abstract void mo70713b();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void classroom() {\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}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576", "0.62397265", "0.61796856", "0.61770797", "0.6164105", "0.6146871", "0.6122446", "0.60946786", "0.6094606", "0.608346", "0.6082499", "0.60409456", "0.6039591", "0.6026561", "0.6025881", "0.6022485", "0.6020405", "0.6009391", "0.6007779", "0.60076237", "0.60076237", "0.6001669", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.5992204", "0.59873676", "0.5979863", "0.5975232", "0.5975232", "0.59371424", "0.5931871", "0.59294736", "0.59294736", "0.5925579", "0.59227633", "0.5919771", "0.59159863", "0.5914985", "0.5914735", "0.5904307", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.5902519", "0.58948666", "0.5891058", "0.5890541", "0.5890541", "0.5890541", "0.588907", "0.5881792", "0.587475", "0.5874252", "0.5863667", "0.58622056", "0.585841", "0.5854168", "0.58413976", "0.5838598", "0.5838598", "0.58369076", "0.583542", "0.5823318", "0.5822206", "0.5813625", "0.5813625", "0.5813625", "0.58088064", "0.5807817", "0.5805739", "0.5798413", "0.579037", "0.5783837", "0.5783109", "0.5783109" ]
0.0
-1
/ //see base class method for details
public Object getProperty(String name) { return m_props.get(name); }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n\n }", "public void smell() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "private stendhal() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void designBasement() {\n\t\t\r\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public abstract void mo70713b();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void classroom() {\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}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576", "0.62397265", "0.61796856", "0.61770797", "0.6164105", "0.6146871", "0.6122446", "0.60946786", "0.6094606", "0.608346", "0.6082499", "0.60409456", "0.6039591", "0.6026561", "0.6025881", "0.6022485", "0.6020405", "0.6009391", "0.6007779", "0.60076237", "0.60076237", "0.6001669", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.5992204", "0.59873676", "0.5979863", "0.5975232", "0.5975232", "0.59371424", "0.5931871", "0.59294736", "0.59294736", "0.5925579", "0.59227633", "0.5919771", "0.59159863", "0.5914985", "0.5914735", "0.5904307", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.5902519", "0.58948666", "0.5891058", "0.5890541", "0.5890541", "0.5890541", "0.588907", "0.5881792", "0.587475", "0.5874252", "0.5863667", "0.58622056", "0.585841", "0.5854168", "0.58413976", "0.5838598", "0.5838598", "0.58369076", "0.583542", "0.5823318", "0.5822206", "0.5813625", "0.5813625", "0.5813625", "0.58088064", "0.5807817", "0.5805739", "0.5798413", "0.579037", "0.5783837", "0.5783109", "0.5783109" ]
0.0
-1
/ //see base class method for details
public String getString(String name) { Object v = getProperty(name); return (v == null) ? null : (String) v; }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n\n }", "public void smell() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "private stendhal() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void designBasement() {\n\t\t\r\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public abstract void mo70713b();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void classroom() {\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}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576", "0.62397265", "0.61796856", "0.61770797", "0.6164105", "0.6146871", "0.6122446", "0.60946786", "0.6094606", "0.608346", "0.6082499", "0.60409456", "0.6039591", "0.6026561", "0.6025881", "0.6022485", "0.6020405", "0.6009391", "0.6007779", "0.60076237", "0.60076237", "0.6001669", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.5992204", "0.59873676", "0.5979863", "0.5975232", "0.5975232", "0.59371424", "0.5931871", "0.59294736", "0.59294736", "0.5925579", "0.59227633", "0.5919771", "0.59159863", "0.5914985", "0.5914735", "0.5904307", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.5902519", "0.58948666", "0.5891058", "0.5890541", "0.5890541", "0.5890541", "0.588907", "0.5881792", "0.587475", "0.5874252", "0.5863667", "0.58622056", "0.585841", "0.5854168", "0.58413976", "0.5838598", "0.5838598", "0.58369076", "0.583542", "0.5823318", "0.5822206", "0.5813625", "0.5813625", "0.5813625", "0.58088064", "0.5807817", "0.5805739", "0.5798413", "0.579037", "0.5783837", "0.5783109", "0.5783109" ]
0.0
-1
/ //see base class method for details
public void save(Map<String, Object> props) { if (props == null) throw new IllegalArgumentException("props may not be null."); m_props.putAll(props); saveProperties(); }
{ "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\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n\n }", "public void smell() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "private stendhal() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void designBasement() {\n\t\t\r\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public abstract void mo70713b();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void classroom() {\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}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.69670147", "0.6846433", "0.68144584", "0.6789065", "0.6634276", "0.6634276", "0.65884495", "0.65696484", "0.653439", "0.6527828", "0.64098823", "0.639524", "0.639215", "0.639215", "0.63813776", "0.6326717", "0.6313167", "0.63082933", "0.6299152", "0.6285929", "0.62810576", "0.62397265", "0.61796856", "0.61770797", "0.6164105", "0.6146871", "0.6122446", "0.60946786", "0.6094606", "0.608346", "0.6082499", "0.60409456", "0.6039591", "0.6026561", "0.6025881", "0.6022485", "0.6020405", "0.6009391", "0.6007779", "0.60076237", "0.60076237", "0.6001669", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.59937346", "0.5992204", "0.59873676", "0.5979863", "0.5975232", "0.5975232", "0.59371424", "0.5931871", "0.59294736", "0.59294736", "0.5925579", "0.59227633", "0.5919771", "0.59159863", "0.5914985", "0.5914735", "0.5904307", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.59026194", "0.5902519", "0.58948666", "0.5891058", "0.5890541", "0.5890541", "0.5890541", "0.588907", "0.5881792", "0.587475", "0.5874252", "0.5863667", "0.58622056", "0.585841", "0.5854168", "0.58413976", "0.5838598", "0.5838598", "0.58369076", "0.583542", "0.5823318", "0.5822206", "0.5813625", "0.5813625", "0.5813625", "0.58088064", "0.5807817", "0.5805739", "0.5798413", "0.579037", "0.5783837", "0.5783109", "0.5783109" ]
0.0
-1
Gets the properties. This is not exposed through the interface, but can be called directly, e.g., from unit test.
public Map<String, Object> getProperties() { return m_props; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Properties getProperties() { return props; }", "public Properties getProperties() {\n\t\treturn this.properties;\n\t}", "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "public Properties getProperties()\n {\n return this.properties;\n }", "public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }", "Properties getProperties();", "public Object getProperties() {\n return this.properties;\n }", "public Properties getProperties();", "public Properties getProperties() {\n return properties;\n }", "public Properties getProperties() {\n return properties;\n }", "public Map<String, Property> getProperties()\n {\n return properties;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Hashtable getProperties() {\n\t\treturn _props;\n\t}", "public static Properties getProperties() {\r\n return getProperties(false);\r\n }", "Property[] getProperties();", "EProperties getProperties();", "public abstract Properties getProperties();", "public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}", "protected java.util.Map getProperties() {\n return properties;\n }", "public abstract AbstractProperties getProperties();", "java.lang.String getProperties();", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Properties getProperties()\n {\n Properties properties = null;\n List<Props.Entry> props = this.props.getEntry();\n if ( props.size() > 0 )\n {\n properties = new Properties();\n //int size = props.size();\n for ( Props.Entry entry : props )\n {\n String key = entry.getKey();\n String val = entry.getValue();\n properties.setProperty( key, val );\n }\n }\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, String> properties() {\n return this.properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "ArrayList<PropertyMetadata> getProperties();", "public Properties getProperty() {\r\n return properties;\r\n }", "public Map<String, Object> getProperties() {\n return mProperties;\n }", "public Properties getProperties() {\n\t\tif (isStale()) {\n\t\t\tlogger.info(\"getProperties: is stale (reloading\");\n\t\t\tload();\n\t\t}\n\t\treturn properties;\n\t}", "public Set<Property> getProperties() {\r\n\t\treturn properties;\r\n\t}", "public Collection<ModuleProperty> getProperties();", "public Map<String, String> getProperties() {\n\t\tif (propertiesReader == null) {\n\t\t\tpropertiesReader = new PropertyFileReader();\n\t\t}\n\t\tpropertyMap = propertiesReader.getPropertyMap();\n\t\tlog.info(\"fetched all properties\");\n\t\treturn propertyMap;\n\t}", "public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "public Map getProperties();", "CommonProperties getProperties();", "public Dictionary<String, Object> getProperties();", "public java.util.Map<String,String> getProperties() {\n \n if (properties == null) {\n properties = new java.util.HashMap<String,String>();\n }\n return properties;\n }", "public Set<Pp> getProperties() {\n return properties;\n }", "StringMap getProperties();", "Properties getProps()\n {\n return props;\n }", "public List<PropertySchema> getProperties() {\n return _properties;\n }", "private ConfigProperties getProperties() {\n return properties;\n }", "public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }", "public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }", "public Map<String, WorldStateProperty> getProperties ()\n\t{\n\t\treturn properties;\n\t}", "public Set<ProductSectionProperty> getProperties() {\n return properties;\n }", "@Override\r\n\tpublic Properties getProperties() {\n\t\treturn null;\r\n\t}", "Map<String, String> properties();", "Map<String, String> properties();", "public List<IPropertyDescriptor<T>> getProperties();", "List<? extends T> getProperties();", "public Map<String, Schema> getProperties() {\n\t\treturn properties;\n\t}", "public Iterator<String> getProperties() {\n List<String> list = Collections.emptyList();\n return list.iterator();\n }", "public Properties getProperties() {\n return this.serverProperties;\n }", "public GameProperty [] getGameProperties() {\n return this.GameProperties;\n }", "Map<String, Object> properties();", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }", "public Map<String, String> getProperties(\n ExecutionContext context,\n ExecutionScript script) throws InterruptedException, IOException {\n return properties;\n }", "public static Properties getProperties() {\n \tif (!propertiesLoaded)\n \t\tSystem.err.println(\"Warning: Default properties loaded\");\n \t\n \t\n \tif (properties == null)\n \t\tproperties = new Properties();\n \t\n \t\n \treturn properties;\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }", "public final Properties getPropertiesObject()\n {\n return fProp;\n }", "@Override\n\t\tpublic Map<String, Object> getAllProperties() {\n\t\t\treturn null;\n\t\t}", "protected List getProperties() {\n return null;\n }", "public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn properties;\r\n\t}", "public HashMap<String, String> getProperties() {\n return (HashMap<String, String>) properties.clone();\n }", "List<? extends T> getDeclaredProperties();", "public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }", "public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }", "public HasDisplayableProperties getProperties();", "public Iterator<String> getUserDefinedProperties();", "public Enumeration getPropertyNames() {\r\n return properties.keys();\r\n }", "public ArrayList<Property> getPropertyList()\r\n {\r\n return m_values;\r\n }", "@Override\n\tpublic Map<String, Object> getProperties() {\n\t\treturn null;\n\t}", "public abstract List<PropertyType> getBuiltInProperties();", "default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }", "com.google.protobuf.ByteString\n getPropertiesBytes();", "@JsonProperty(\"properties\")\n public PropertyBag getProperties() {\n return properties;\n }", "public Map getProperties()\n {\n // Lazy compute properties\n if (properties == null)\n {\n ObjectNode parent = objectNode.getParent();\n if (parent == null)\n {\n this.properties = declaredPropertyMap;\n }\n else\n {\n Map properties = new HashMap();\n properties.putAll(parent.getObject().getProperties());\n properties.putAll(declaredPropertyMap);\n this.properties = properties;\n }\n\n //\n this.unmodifiableProperties = Collections.unmodifiableMap(properties);\n }\n\n //\n return unmodifiableProperties;\n }", "@Override\n public Properties getProperties() {\n return null;\n }", "Object getProps();", "public Map getProperties() {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return new HashMap();\n }\n HashMap properties = new HashMap();\n Enumeration enuAttributes = session.getAttributeNames();\n while (enuAttributes.hasMoreElements()) {\n String nextAttribute = (String) enuAttributes.nextElement();\n Object value = session.getAttribute(nextAttribute);\n properties.put(nextAttribute, value);\n }\n return properties;\n }", "public WorkbenchProperties getProperties() {\r\n return properties;\r\n }", "public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }", "public PropertyMetaData[] getPropertyMetaData() \n {\n return METADATA;\n }", "public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}", "public java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> getPropsList() {\n return props_;\n }", "public Properties getProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"advice\", \"method interceptor\");\n properties.setProperty(\"scope\", \"per-instance\");\n return properties;\n }", "public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "public List<Property> getProperties(String spid) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tPerformer p = (Performer)listProperties(Performer.class, PERFORMERS_PROPERTIES_LIST, spid);\n\t\t\n\t\treturn p.getProperties();\n\t}", "@Schema(description = \"Details of properties for the worklog. Optional when creating or updating a worklog.\")\n public List<EntityProperty> getProperties() {\n return properties;\n }", "@ApiModelProperty(value = \"The customized properties that are present\")\n public List<PropertyDefinitionResource> getProperties() {\n return properties;\n }", "@Override\n public Map<String, String> getProperties() {\n return null;\n }" ]
[ "0.8336108", "0.8321469", "0.8316204", "0.8264495", "0.82626754", "0.8250307", "0.82410103", "0.8180038", "0.81769556", "0.81444746", "0.8135515", "0.8118921", "0.8113789", "0.80562043", "0.80550027", "0.8038452", "0.80050194", "0.8002203", "0.80017275", "0.79992497", "0.7946581", "0.7938006", "0.7928439", "0.79134524", "0.78968036", "0.78968036", "0.7887543", "0.7885877", "0.7885877", "0.7880791", "0.78420347", "0.78243214", "0.78056175", "0.7789431", "0.7780378", "0.77390325", "0.77182066", "0.7682714", "0.7682714", "0.7678017", "0.76681215", "0.76605505", "0.7641818", "0.7609521", "0.7598247", "0.75389665", "0.7528538", "0.75173026", "0.74969214", "0.746834", "0.74409795", "0.73696804", "0.73642355", "0.7352208", "0.7352208", "0.73453295", "0.73413557", "0.7333425", "0.7331098", "0.7309852", "0.7303181", "0.73007715", "0.72764933", "0.7262793", "0.7256415", "0.7247468", "0.7240224", "0.72376055", "0.7236562", "0.72228795", "0.7214917", "0.7199748", "0.71915245", "0.7172024", "0.71634084", "0.7162226", "0.7148657", "0.7111503", "0.70951235", "0.7078231", "0.7074393", "0.7059606", "0.7052322", "0.7015945", "0.70067173", "0.6996962", "0.6985128", "0.6983981", "0.69814426", "0.69715726", "0.6969293", "0.69509774", "0.6947777", "0.6938351", "0.69216317", "0.6919194", "0.68973565", "0.68819827", "0.6880235", "0.6880204" ]
0.80240726
16
Gets the properties file. This is not exposed through the interface, but can be called directly, e.g., from unit test.
public File getPropertiesFile() { if (m_file != null) return m_file; String path = PSServer.getRxDir() + "/" + PSConfigService.CONFIG_FILE_BASE + "/BeanProperties.xml"; m_file = new File(path); return m_file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "File getPropertiesFile();", "public File getPropertiesFile() {\n return propertiesFile;\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "public File getPropertyFile() { return propertyFile; }", "public String getPropertyFile()\n\t{\n\t\treturn propertyFile;\n\t}", "public abstract String getPropertyFile();", "public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }", "public org.openejb.config.sys.PropertiesFile getPropertiesFile() {\n return this._propertiesFile;\n }", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }", "public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }", "private static File getPropertiesFile()\r\n/* 57: */ throws IOException\r\n/* 58: */ {\r\n/* 59: 57 */ log.finest(\"OSHandler.getPropertiesFile\");\r\n/* 60: 58 */ ydfDirectory = getYdfDirectory();\r\n/* 61: 59 */ String fileName = ydfDirectory + \"/\" + getLocalFilePrefix() + \"cryptoloc.properties\";\r\n/* 62: 60 */ File file = new File(fileName);\r\n/* 63: 61 */ if (!file.exists()) {\r\n/* 64: 62 */ file.createNewFile();\r\n/* 65: */ }\r\n/* 66: 64 */ return file;\r\n/* 67: */ }", "public final File getUserPropertiesFile() {\n\t\treturn userPropertiesFile;\n\t}", "private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "public String getPropertyPath();", "public String getPropertyPath();", "private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }", "public static Properties getProperties(){\n\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"C:\\\\BCJMay16\\\\Developer\\\\MIddleLayer\\\\Workspace\\\\java\\\\springworkspace\\\\txuenergy\\\\ApplicationResources.properties\");\n\n\t\t\tprop.load(input);\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn prop;\n\t }", "public String getServiceAccountPropertiesFile() {\r\n return serviceAccountPropertiesFileName;\r\n }", "public static String getPropertyFilename() {\n return propfilename;\n }", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "private Properties getProperties() throws IOException {\r\n\t\tInputStream input = this.getClass().getResourceAsStream(\"/properties/application.properties\");\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(input);\r\n\t\treturn properties;\r\n\t}", "java.lang.String getProperties();", "public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract Properties getProperties();", "public static Properties getProperties() {\r\n return getProperties(false);\r\n }", "public Properties propertiesSource() {\n\t\tSystem.out.println(\"code execution is reaching propertiesSource()\");\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"name of property in property file\", environment.getRequiredProperty(\n\t\t\t\t\"name of property in property file\"));\n\t\treturn properties;\n\t}", "private static Properties getProperties() {\n Properties properties = new Properties();\n\n try {\n properties.load(new FileInputStream(\"src/main/resources/hibernate.properties\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return properties;\n }", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "private Properties getDbProperties() {\n if (dbProperties == null) {\n // like ~/Dropbox/ACM-UWR/config.properties\n File propertiesFile = getSandbox().inputFile(pathsProvider.getProgramConfigFile().toPath());\n if (propertiesFile.exists()) {\n try {\n BufferedInputStream in = new BufferedInputStream(\n new FileInputStream(propertiesFile));\n Properties props = new Properties();\n props.load(in);\n dbProperties = props;\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to load configuration file: \"\n + propertiesFile.getName(), e);\n }\n }\n }\n return dbProperties;\n }", "public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}", "private Properties readProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\t\n\t\tFileInputStream in = new FileInputStream(\"Config.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\treturn props;\n\t}", "private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}", "public final String getCredentialsFile() {\n return properties.get(CREDENTIALS_FILE_PROPERTY);\n }", "public Properties getProperties();", "public static Properties getProperties(String propFilename) {\n File propFile = new File(propFilename);\n\n if (!propFile.exists()) {\n log.error(\"ERROR: Properties file '{}' cannot be found or accessed.\", propFilename);\n System.exit(1);\n }\n\n Properties props = null;\n try {\n FileInputStream propFileIn = new FileInputStream(propFile);\n props = new Properties(System.getProperties());\n props.load(propFileIn);\n } catch (IOException ioe) {\n log.error(\"ERROR: Reading properties file '{}'\", propFilename, ioe);\n System.exit(1);\n }\n return props;\n }", "public String getPropertyFileName()\r\n\t{\r\n\t\treturn propertyFileName;\r\n\t}", "public final String getPropertyFileName() {\n return propertyFileName;\n }", "static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public Properties getTestProperties() throws TestingUtilsException {\n\t\tClassLoader loader = this.getClass().getClassLoader();\n\t\tInputStream in = loader.getResourceAsStream(\"testing.properties\");\n\t\tProperties properties = new Properties();\n\n\t\ttry {\n\t\t\tproperties.load(in);\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new TestingUtilsException(\"error loading test properties\",\n\t\t\t\t\tioe);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tin.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// ignore\n\t\t\t}\n\t\t}\n\t\treturn properties;\n\t}", "private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}", "public Properties getSystemProperties() {\r\n\t\tInputStream in = null;\r\n\t\tProperties p = new Properties();\r\n\t\ttry {\r\n\t\t\tExternalContext ext = FacesContext.getCurrentInstance().getExternalContext();\r\n\t\t\tURL resource = ext.getResource(\"/WEB-INF/classes/system.properties\");\r\n\t\t\tif (resource == null) {\r\n\t\t\t\tlogger.warn(\"No system.properties file found in classpath\");\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\t\t\tin = resource.openStream();\r\n\t\t\tp.load(in);\r\n\t\t\treturn p;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"Failed to read system properties\", ex);\r\n\t\t\treturn p;\r\n\t\t} finally {\r\n\t\t\tIOUtils.closeQuietly(in);\r\n\t\t}\r\n\t}", "public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }", "Properties getProperties();", "private void getProperties() {\n\t\tProperties menu_properties = new Properties();\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tinput = new FileInputStream(PROPERTY_FILENAME);\n\t\t\tmenu_properties.load(input);\n\t\t\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\n\t\t\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\n\t\t\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"Display file input does not exist!\");\n\t\t} catch (Exception ey) {\n\t\t\tSystem.err.println(\"The properties for the display could not be retrieved completely.\");\n \t} finally {\n \t\tif (input != null) {\n \t\t\ttry {\n \t\t\t\tinput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.err.println(\"Display file input cannot close!\");\n \t\t\t}\n \t\t}\n \t}\n }", "private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }", "public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn properties;\r\n\t}", "public static Properties getProperties(String cfgFileName) {\n\n Properties cfgProperties = new Properties();\n FileInputStream stream = null;\n\n try {\n stream = new FileInputStream(new File(cfgFileName));\n\n cfgProperties.load(stream);\n\n } catch(FileNotFoundException e) {\n LOGGER.error(\"File not found.\", e);\n } catch(IOException e) {\n LOGGER.error(\"Load stream fail.\", e);\n } finally {\n try {\n if(null != stream) {\n stream.close();\n }\n } catch(IOException e) {\n LOGGER.info(\"Close Stream Fail!\", e);\n }\n }\n\n return cfgProperties;\n\n }", "protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "public Properties getProperty() {\r\n return properties;\r\n }", "public static String getPropertyPath(){\n\t\tString path = System.getProperty(\"user.dir\") + FILE_SEP + propertyName;\r\n\t\tLOGGER.info(\"properties path: \" + path);\r\n\t\treturn path;\r\n\t}", "private static Properties readProps() {\n Path[] candidatePaths = {\n Paths.get(System.getProperty(\"user.home\"), \".sourcegraph-jetbrains.properties\"),\n Paths.get(System.getProperty(\"user.home\"), \"sourcegraph-jetbrains.properties\"),\n };\n\n for (Path path : candidatePaths) {\n try {\n return readPropsFile(path.toFile());\n } catch (IOException e) {\n // no-op\n }\n }\n // No files found/readable\n return new Properties();\n }", "public static String getPropertyFilename() {\n if (propertyFileName == null) {\n setPropertyFilename(\"\");\n }\n \n return propertyFileName;\n }", "public static ConfigFileProperties getInstance() {\n return ConfigFilePropertiesHolder.INSTANCE;\n }", "protected static Properties getProperties(String fName) throws IOException {\r\n\t\tProperties props = new Properties();\r\n\t\tFile f = new File(fName);\r\n \r\n if (!f.exists()) {\r\n \treturn props;\r\n }\r\n \r\n props.load(new FileInputStream(f)); \r\n return props;\r\n }", "public static Properties readProperties(String filePath){\n try {\n FileInputStream fileInputStream= new FileInputStream(filePath);\n properties=new Properties();\n properties.load(fileInputStream);\n fileInputStream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return properties;\n }", "public static Properties loadResource(String propertyName) throws IOException {\n Properties properties = new Properties();\n InputStream in = Configuration.class.getClassLoader().getResourceAsStream(propertyName);\n try {\n if (null == in) {\n String path = propertyName.replace('/', separatorChar);\n path = path.replace('\\\\', separatorChar);\n if (!path.startsWith(File.separator)) {\n path = separatorChar + path;\n }\n File configurationFile = new File(ConfigurationHolder.getHome() + separatorChar\n + \"properties\" + path);\n if (configurationFile.exists()) {\n in = new FileInputStream(configurationFile);\n }\n }\n if (null != in) {\n properties.load(in);\n }\n } finally {\n IOUtils.closeQuietly(in);\n }\n return properties;\n }", "public static Properties loadProperties() throws IOException {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(\"..\" + File.separator + \"commons\" + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator + \"framework.properties\"));\r\n return properties;\r\n }", "public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }", "public static Properties getPropertiesDefault() throws IOException {\n\t\treturn getProperties(\"/properties/configuration.properties\");\n\t\t\n\t}", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "private static <T> InputStream getPropertiesFile(Class<T> clazz, ULocale locale) {\r\n String localeStr = \"\";\r\n if(locale != null) {\r\n localeStr = '_' + locale.getName();\r\n }\r\n String filePath = clazz.getName().replace(DOT, SLASH) + localeStr + PROPERTIES_EXT;\r\n return clazz.getClassLoader().getResourceAsStream(filePath);\r\n }", "public static Properties getProperties() {\n \tif (!propertiesLoaded)\n \t\tSystem.err.println(\"Warning: Default properties loaded\");\n \t\n \t\n \tif (properties == null)\n \t\tproperties = new Properties();\n \t\n \t\n \treturn properties;\n }", "@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public static Properties getProperties(String locale){\n\t\tInputStream input = null;\n\t\tProperties prop = new Properties();\n\ttry {\n\n\n\t\t//input = new FileInputStream(\"../properties/messages_\"+locale+\".properties\");\n\t\tinput = AppLocaleConstant.class.getResourceAsStream(\"/properties/messages_\"+locale+\".properties\");\n\t\t// load a properties file\n\t\tprop.load(new InputStreamReader(input, Charset.forName(\"UTF-8\")));\n\n\t} catch (IOException ex) {\n\t\tex.printStackTrace();\n\t} finally {\n\t\tif (input != null) {\n\t\t\ttry {\n\t\t\t\tinput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n\treturn prop;\n\t}", "private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }", "public static Properties readPropertiesFile(String path) {\n\n\t\tProperties propFile = new Properties();\n\t\ttry {\n\t\t\tpropFile.load(new FileInputStream(path));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error Reading Properties File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn propFile;\n\t}", "private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}", "public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }", "public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }", "public Properties getProperties() { return props; }", "static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "@Override\n\tpublic String getFileProperties() {\n\t\treturn null;\n\t}", "public static Properties getInstance() throws IOException {\n if (instance == null) {\n instance = new Properties();\n FileReader in = new FileReader(PROPERTIES_DIR + PROPERTIES_FILE);\n instance.load(in);\n }\n return instance;\n }", "public File getPreferencesFile() {\n\t\treturn preferencesFile;\n\t}", "public static File getSettingsfile() {\n return settingsfile;\n }", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "public static Properties getPropsFromFile(String propsFile)\n {\n Properties props = new Properties();\n if (propsFile == null)\n {\n return props;\n }\n FileInputStream propStream = null;\n try\n {\n propStream = new FileInputStream(propsFile);\n props.load(propStream);\n }\n catch (IOException e)\n {\n System.out.println(\"Couldn't load properties from \" + propsFile);\n }\n finally\n {\n if (propStream != null)\n {\n try\n {\n propStream.close();\n propStream = null;\n }\n catch (IOException e)\n {\n\n e.printStackTrace();\n }\n }\n }\n return props;\n }", "public abstract AbstractProperties getProperties();", "public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }", "private ConfigProperties getProperties() {\n return properties;\n }", "public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }", "private static File getItestPropertiesForCurrentTestSetup() {\n return new File(\"src/itest/resources/itest-dockercompose.properties\");\n }", "public File getConfigurationFile();", "private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}", "public static String fetchMyProperties(String req) throws Exception {\n\n String val;\n\n FileReader reader = new FileReader(\"src\\\\test\\\\java\\\\resources\\\\westpac.properties\");\n Properties p = new Properties();\n p.load(reader);\n val = p.getProperty(req);\n\n return val;// returning the requested value.\n }", "public final Properties getPropertiesObject()\n {\n return fProp;\n }", "public static synchronized String getPropValue(String key, String path)\r\n/* */ {\r\n/* 21 */ if (p == null) {\r\n/* 22 */ String npath = path + \"WEB-INF/classes/config.properties\";\r\n/* 23 */ InputStream is = null;\r\n/* */ try {\r\n/* 25 */ is = new FileInputStream(npath);\r\n/* */ } catch (FileNotFoundException e1) {\r\n/* 27 */ e1.printStackTrace();\r\n/* */ }\r\n/* 29 */ p = new Properties();\r\n/* */ try {\r\n/* 31 */ p.load(is);\r\n/* */ } catch (IOException e) {\r\n/* 33 */ e.printStackTrace();\r\n/* */ }\r\n/* */ }\r\n/* 36 */ return p.getProperty(JobStandConfs.work_base_dir);\r\n/* */ }", "@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }", "public Map<String, String> getProperties() {\n\t\tif (propertiesReader == null) {\n\t\t\tpropertiesReader = new PropertyFileReader();\n\t\t}\n\t\tpropertyMap = propertiesReader.getPropertyMap();\n\t\tlog.info(\"fetched all properties\");\n\t\treturn propertyMap;\n\t}", "public Properties getProperties() {\n return properties;\n }", "public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\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\treturn properties;\n\t}", "public abstract Properties getProfileProperties();", "public Properties getProperties() {\n return properties;\n }" ]
[ "0.85232383", "0.8257259", "0.81351596", "0.80918825", "0.8069219", "0.7774387", "0.7773241", "0.77117336", "0.7627644", "0.7599165", "0.7555719", "0.74579346", "0.74059886", "0.7349626", "0.7220202", "0.72023094", "0.72023094", "0.7194898", "0.7192817", "0.7156232", "0.7124336", "0.7057586", "0.70524603", "0.70480394", "0.7045098", "0.69483453", "0.69450516", "0.6920192", "0.69021463", "0.6892357", "0.68719697", "0.68516886", "0.6840729", "0.683673", "0.68316716", "0.681321", "0.6811028", "0.6809399", "0.68054664", "0.680347", "0.67453545", "0.67414564", "0.6727374", "0.6718329", "0.66898775", "0.6660363", "0.6656777", "0.66519433", "0.6639619", "0.6639152", "0.6638401", "0.66301644", "0.6628755", "0.662682", "0.66206443", "0.6619109", "0.6613787", "0.66076016", "0.65786994", "0.6559894", "0.6542219", "0.65318835", "0.6520841", "0.6499801", "0.64938885", "0.64670944", "0.6466875", "0.6466392", "0.6454012", "0.644843", "0.64462173", "0.6444128", "0.6442709", "0.64181864", "0.6406587", "0.64009875", "0.63822514", "0.63811815", "0.63795435", "0.63749987", "0.63629156", "0.6362247", "0.6362247", "0.63607806", "0.6352387", "0.63452685", "0.6342026", "0.63387465", "0.6320111", "0.6318165", "0.6318065", "0.62708974", "0.6269053", "0.6261668", "0.6260358", "0.6251781", "0.625092", "0.6246122", "0.62460464", "0.62456644" ]
0.80033433
5
Constructor function used to initialize the SlideshowEditor JFrame Creates all necessary GUI components and enables them for use
public SlideshowEditor() { // INITIALIZING THE WINDOW try { //set theme for SlideshowEditors UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); } setTitle("Slideshow Editor"); setLayout(new BorderLayout()); // CREATING THE TIMELINE timeline = Timeline.getInstance(); add(timeline, BorderLayout.EAST); // CREATING THE MEDIA LIBRARIES libraries = new JTabbedPane(); m_ImageLibrary = ImageLibrary.getInstance(timeline, null); //initialize libraries with null since user has not selected a directory JScrollPane spImages = new JScrollPane(m_ImageLibrary); spImages.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); spImages.getVerticalScrollBar().setUnitIncrement(20); libraries.add("Images", spImages); m_AudioLibrary = AudioLibrary.getInstance(timeline, null); JScrollPane spAudio = new JScrollPane(m_AudioLibrary); spAudio.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); spAudio.getVerticalScrollBar().setUnitIncrement(20); libraries.add("Audio", spAudio); libraries.setPreferredSize(new Dimension(1000,750)); add(libraries, BorderLayout.WEST); libraries.setBorder(BorderFactory.createTitledBorder("Media")); libraries.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { timeline.setActivePane(libraries.getSelectedIndex()); //makes sure Timeline tab matches selected library } }); timeline.enablePaneMatch(libraries); // CONFIGURING THE WINDOW JMenuBar topMenu = new JMenuBar(); //create a menu bar for the window setJMenuBar(topMenu); JMenu fileMenu = new JMenu("File"); topMenu.add(fileMenu); JMenuItem newDirectory = new JMenuItem("Set Directory"); //allow user to set directory for Slideshow creation newDirectory.addActionListener(event -> changeDirectory()); newDirectory.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + O fileMenu.add(newDirectory); JMenuItem exportSlideshow = new JMenuItem("Export Slideshow"); exportSlideshow.addActionListener(event -> timeline.exportSlideshow(automated)); exportSlideshow.setAccelerator( KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK)); //add keyboard shortcut Ctrl + S fileMenu.add(exportSlideshow); JMenuItem closeProgram = new JMenuItem("Exit"); //add Exit Program button to File menu closeProgram.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.exit(0); } }); fileMenu.add(closeProgram); JMenu settingsMenu = new JMenu("Settings"); topMenu.add(settingsMenu); JMenuItem changeSettings = new JMenuItem("Change Playback Settings"); changeSettings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if (!settingsPresent) { settingsPresent = true; settingsPopup(); } else settingsFrame.toFront(); } }); settingsMenu.add(changeSettings); JMenu helpMenu = new JMenu("Help"); topMenu.add(helpMenu); JMenuItem tutorial = new JMenuItem("Tutorial"); String tutorialMsg = "<html>Creating a slideshow is easy!<br><ol><li>Open the folder containing the image and audio files you'd like to use. (File -> Set Directory)</li>" + "<li>To add image and audio files to your slideshow, just click \"Add\" under the given image/audio file.</li>" + "<li>To set your slideshow to play back automatically, open the settings window (Settings -> Change Playback Settings) and click the \"Automatic Slideshow\" checkbox. <br>From there, click the \"Submit Changes\" button to save your settings. (To set it back to manual, just do the reverse!)</li>" + "<li>To change the default slide duration of an automatic slideshow, open the settings window and change the value in the \"Default Slide Duration\" textbox. <br>From there, click the \"Submit Changes\" button to save your settings.</li>" + "<li>To change the duration of an individual slide in an automatic slideshow, uncheck the \"Use Default Slide Duration\" at the bottom of the slide item in the Timeline.<br>From there, click the \"Change Duration\" button to the right of the slide duration value and enter a new value.<br>(To set it back to the default slide duration, just recheck the \"Use Default Slide Duration\" checkbox!)</li>" + "<li>To set a transition to play at the beginning of a slide, select a transition type from the \"Transition Type\" dropdown at the top of a slide item.</li>" + "<li>To change the duration of a slide's transition, select a transition duration from the \"Transition Duration\" dropdown at the top of a slide item.<br>(This dropdown will only be enabled if a transition has been set.)</li>" + "<li>To move a slide up/down the timeline, click the \"Move Up/Down\" button at the bottom of a slide item.</li>" + "<li>To remove a slide from your slideshow, click the \"Remove\" button at the bottom on a slide item.</li>" + "<li>Audio items in the Timeline work the same as slide items, except they can't use transitions.</li>" + "<li>To export your slideshow, navigate to File -> Export Slideshow. From there, give your slideshow a name and click save!<br>Your slideshow is now stored in the same folder as your image and audio files.</li></ol>" + "NOTE: The left column of blocks in the \"Timing\" area of the screen, present when creating an automatic slideshow, represents slides. The right column represents audio clips.<br></html>"; tutorial.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(null, tutorialMsg, "Tutorial", JOptionPane.INFORMATION_MESSAGE); } }); helpMenu.add(tutorial); ImageIcon windowIcon = new ImageIcon("images\\SlideshowIcon.png"); // TODO: Uncomment below for JAR //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource("SlideshowIcon.png")); Image icon = windowIcon.getImage(); setIconImage(icon); setSize(new Dimension(1500, 750)); setResizable(false); setDefaultCloseOperation(EXIT_ON_CLOSE); pack(); setLocationRelativeTo(null); setVisible(true); String welcomeMsg = "<html><div style='text-align: center;'>Welcome to the greatest slideshow creator ever made.<br>To start creating a slideshow, " + "use the \"File\" menu in the top left corner<br>and select \"Set Directory\" and find the directory containing the images and audio you'd like to work with.<br>" + "This will also be the directory you'll save your slideshow into.<br>Go ahead. Select one. (You know you want to.)</div></html>"; JOptionPane.showMessageDialog(null, welcomeMsg, "Welcome to Slideshow Editor!", JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Editor() {\n initComponents();\n this.setTitle(\"Diario “La Otra Perspectiva”\");\n this.setLocationRelativeTo(null);\n }", "public PhotoViewerGUI() {\r\n initComponents();\r\n }", "public FrameDesign() {\n initComponents();\n }", "private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jToggleButton1 = new javax.swing.JToggleButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jProgressBar1 = new javax.swing.JProgressBar();\n jEditorPane1 = new javax.swing.JEditorPane();\n\n setLayout(new java.awt.BorderLayout());\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setLayout(new java.awt.GridLayout(4, 0, 0, 8));\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel1.text\")); // NOI18N\n jLabel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jPanel3.add(jLabel1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel3.text\")); // NOI18N\n jLabel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jPanel3.add(jLabel3);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel4.text\")); // NOI18N\n jLabel4.setToolTipText(org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel4.toolTipText\")); // NOI18N\n jLabel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jPanel3.add(jLabel4);\n\n org.openide.awt.Mnemonics.setLocalizedText(jToggleButton1, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jToggleButton1.text\")); // NOI18N\n jToggleButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jToggleButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton1ActionPerformed(evt);\n }\n });\n jPanel3.add(jToggleButton1);\n\n jPanel2.add(jPanel3, java.awt.BorderLayout.WEST);\n\n jPanel4.setLayout(new java.awt.GridLayout(4, 0, 0, 8));\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel8.text\")); // NOI18N\n jLabel8.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jPanel4.add(jLabel8);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel9.text\")); // NOI18N\n jLabel9.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jPanel4.add(jLabel9);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel10, org.openide.util.NbBundle.getMessage(GenDatasetVisualPanel3.class, \"GenDatasetVisualPanel3.jLabel10.text\")); // NOI18N\n jLabel10.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jPanel4.add(jLabel10);\n\n jProgressBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 12, 2, 8));\n jProgressBar1.setStringPainted(true);\n jPanel4.add(jProgressBar1);\n\n jPanel2.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n add(jPanel2, java.awt.BorderLayout.PAGE_START);\n\n jEditorPane1.setBackground(jPanel2.getBackground());\n jEditorPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 12, 8, 12));\n jEditorPane1.setEditable(false);\n jEditorPane1.setMaximumSize(new java.awt.Dimension(200, 200));\n add(jEditorPane1, java.awt.BorderLayout.CENTER);\n }", "public ImageEditor() {\r\n initComponents(); \r\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public PreviewPanel() {\n initComponents();\n\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 }", "public CaptureGUI() {\n initComponents();\n }", "private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public GUI()\n {\n initComponents();\n setSize(xSize, ySize);\n figures = new PFigure[numFigs];\n }", "private void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PnlInterlisSyntax\");\n\t\tsetBorder(new javax.swing.border.EtchedBorder());\n\t\tsetLayout(new java.awt.BorderLayout());\n\t\tsetSize(382, 165);\n\t\tadd(getPnlEditor(), \"Center\");\n\t\tadd(getPnlDataSelector(), \"South\");\n\t\tadd(getPnlUsage(), \"North\");\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetPnlEditor().setToolTipText(getResourceString(\"PnlEditor_toolTipText\"));\n\tsetCurrentObject(null);\n\tgetPnlDataSelector().setListener(this);\n\tgetPnlUsage().setVisible(false);\n\t// user code end\n}", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "public Mainframe() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}", "public ModuleFrame() {\n javafxPanel = new JFXPanel();\n initComponents();\n this.webViewParent.setLayout(new BorderLayout());\n this.webViewParent.add(javafxPanel, BorderLayout.CENTER);\n this.webViewParent.add(javafxPanel);\n \n this.setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public JFramePelis() {\n initComponents();\n }", "public MotionNetEditorPanel()\n {\n initComponents();\n this.keyFrameControlMap = new HashMap<KeyFrame, KeyFrameControl>();\n this.transitionControlList = new ArrayList<TransitionControl>();\n this.motionNet = null;\n firstKeyFrameRemoved = false;\n setPasteEnable(false);\n this.setBounds(0, 0, this.getWidth(), this.getHeight());\n this.jointChangeListener = new PropertyChangeListener()\n {\n public void propertyChange(PropertyChangeEvent evt)\n {\n if(evt.getPropertyName().compareTo(\"jointStateChanged\") == 0)\n {\n setPasteEnable(false);\n }\n }\n };\n\n }", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "public NslmEditorFrame(SchEditorFrame fm, Module module) {\n\n\tsuper(\"Nslm\"); // initialize the EditorFrame\n\tsetLocation(new Point(100,100));\n\t//setSize(800,1000); //not working\n\t//todo: query the screen size\n\n\tparentFrame=fm;\n okCancelPopup=new WarningDialogOkCancel(this); \n\tsetTitle(\"NSLM Editor\");\n\tif (module!=null) {\n\t boolean found=executiveFrame.windowsAndModulesOpen.contains(\"Nslm\",module);\n\t if (!found) {\n\t\tcurrModule=module;\t\t\n\t } else {//found\n\t\twarningPopup.display(\"IconEditorFrame: that module already open in an Icon Editor\");\n\t currModule=null;\n\t }\n\t} else {\n\t currModule=null;\n\t}\n\n\tif (module != null) {\n\t setTitle(\"NSLM Editor: Module \"+currModule.moduleName);\n\t} else {\n\t setTitle(\"NSLM Editor\");\n\t}\n\n\t//The setting of the background was too anoying for now - on off button /// panel did not get the get the background color.\n\t// Need seperate background color for NSLM Editor window -not black\n\t//\tNslmEditorPanel.drawBack_col = SCSUtility.returnCol(UserPref.drawBackgroundColor );\n\t//\tNslmEditorPanel.noActionTakenBack_col = SCSUtility.returnCol(UserPref.noActionTakenBackgroundColor );\n\t//\tNslmEditorPanel.currBackgroundCol=NslmEditorPanel.noActionTakenBack_col;\n\n \n // Graphics -----------------------------\n\tBorderLayout borderlayout1=new BorderLayout(); //layout of frame\n\tgetContentPane().setLayout(borderlayout1);\n\t// nslmMenuBar -----------------------------\n // File and Help\n\t// add to Center and will appear by default in a vertical manner\n\tnslmMenuBar=createNslmMenuBar();\n setJMenuBar(nslmMenuBar); \n\t//getContentPane().setMenuBar(nslmMenuBar); \n\t//add(nslmMenuBar,BorderLayout.NORTH); //add to this frame\n\t// myNslmEditorPanel -----------------------------\n\tmyNslmEditorPanel = new JPanel();\n\tcreateNslmPanel(myNslmEditorPanel);\n\n\tmyNslmPane = new JScrollPane(myNslmEditorPanel,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\tgetContentPane().add(myNslmPane,BorderLayout.CENTER); //add to this frame\n\tmyNslmEditorPanel.setVisible(false);\n\t//myStatusPanel -----------------------------\n\tmyStatusPanel = new StatusPanel();\n\tgetContentPane().add(myStatusPanel,BorderLayout.SOUTH); //add to this frame\n\n\t// myNslmEditorPanel.setBackground(NslmEditorPanel.currBackgroundCol);\n\t\n\taddWindowListener(new DWAdapter()); //from EditorFrame\n\tmessagePopup = new MessageDialog(this);\n\n //-------\n\t// Now see if there was already a module open from Sch or Icon\n\tif (currModule==null) {\n\t return;\n\t}\n\tif (currModule.myNslm==null) {\n\t //System.out.println(\"Debug:NslmEditorFrame: constructor and non null currModule\");\n\t boolean worked=executiveFrame.windowsAndModulesOpen.addInPieces(\"Nslm\",currModule);\n\t finishNew();\n\t setTitle(\"Nslm Editor: \"+currModule.moduleName);\n\t return;\n\t}\n\t//a NSLM view exists by that name\n\t//System.out.println(\"Debug:NslmEditorFrame: constructor and non null currIcon\");\n boolean worked=executiveFrame.windowsAndModulesOpen.addInPieces(\"Nslm\",currModule);\n\tfinishOpen();\n\tsetTitle(\"Nslm Editor: \"+currModule.moduleName);\n\t\n\t\n\n }", "public FrameControl() {\n initComponents();\n }", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public TestSlideFrame() {\r\n initComponents();\r\n slide = new JFrame();\r\n slide.setUndecorated(true);\r\n //slide.setAlwaysOnTop(true);\r\n panel = new JPanel();\r\n panel.setLayout(null);\r\n slide.setLayout(null);\r\n panel.setBorder(BorderFactory.createLineBorder(Color.GRAY));\r\n panel.setLocation(0, 0);\r\n panel.setSize(100, 200);\r\n slide.add(panel);\r\n\r\n slide.setSize(1, 1);\r\n slide.setVisible(true);\r\n extended = false;\r\n }", "public Gui() {\n this.baseDir = Utils.getBaseDir(Gui.this);\n try {\n UIManager.setLookAndFeel(prefs.get(\"lookAndFeel\", UIManager.getSystemLookAndFeelClassName()));\n } catch (Exception e) {\n // keep default LAF\n logger.log(Level.WARNING, e.getMessage(), e);\n }\n bundle = ResourceBundle.getBundle(\"net.sourceforge.tessboxeditor.Gui\"); // NOI18N\n initComponents();\n\n boxPages = new ArrayList<TessBoxCollection>();\n\n // DnD support\n new DropTarget(this.jSplitPaneEditor, new FileDropTargetListener(Gui.this, this.jSplitPaneEditor));\n\n this.addWindowListener(\n new WindowAdapter() {\n\n @Override\n public void windowClosing(WindowEvent e) {\n quit();\n }\n\n @Override\n public void windowOpened(WindowEvent e) {\n updateSave(false);\n setExtendedState(prefs.getInt(\"windowState\", Frame.NORMAL));\n populateMRUList();\n }\n });\n\n setSize(\n snap(prefs.getInt(\"frameWidth\", 500), 300, screen.width),\n snap(prefs.getInt(\"frameHeight\", 360), 150, screen.height));\n setLocation(\n snap(\n prefs.getInt(\"frameX\", (screen.width - getWidth()) / 2),\n screen.x, screen.x + screen.width - getWidth()),\n snap(\n prefs.getInt(\"frameY\", screen.y + (screen.height - getHeight()) / 3),\n screen.y, screen.y + screen.height - getHeight()));\n\n KeyEventDispatcher dispatcher = new KeyEventDispatcher() {\n\n @Override\n public boolean dispatchKeyEvent(KeyEvent e) {\n if (e.getID() == KeyEvent.KEY_PRESSED) {\n if (e.getKeyCode() == KeyEvent.VK_F3) {\n jButtonFind.doClick();\n }\n }\n return false;\n }\n };\n DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(dispatcher);\n }", "private void initComponents() {\n frame1 = new JFrame();\n scrollPane1 = new JScrollPane();\n editorPane1 = new JEditorPane();\n\n //======== frame1 ========\n {\n Container frame1ContentPane = frame1.getContentPane();\n frame1ContentPane.setLayout(new BorderLayout());\n\n //======== scrollPane1 ========\n {\n\n //---- editorPane1 ----\n editorPane1.setEditable(false);\n editorPane1.addHyperlinkListener(new HyperlinkListener() {\n @Override\n public void hyperlinkUpdate(HyperlinkEvent e) {\n editorPane1HyperlinkUpdate(e);\n }\n });\n scrollPane1.setViewportView(editorPane1);\n }\n frame1ContentPane.add(scrollPane1, BorderLayout.CENTER);\n frame1.pack();\n frame1.setLocationRelativeTo(frame1.getOwner());\n }\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "public QLHocSinhJFrame() {\n initComponents();\n }", "public MenuFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void initComponents() {//GEN-BEGIN:initComponents\n\n\n setClosable(true);\n\n setIconifiable(true);\n\n setPreferredSize(new java.awt.Dimension(730, 520));\n\n pack();\n\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "public EindopdrachtGUI() {\n initComponents();\n }", "private void initialize()\n\t{\n\t\tthis.setModal(true);\t\t\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(450,400);\n\t\tScreenResolution.centerComponent(this);\n\t}", "public Designer() {\n initComponents();\n }", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "public mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}", "public GUI()\n\t{\n\t\tsetSize(550,200);\n\t\tsetTitle(\"cs206sp2012 Project\");\n\t\tsetResizable(false);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tinputPanel = new JPanel (new FlowLayout());\n\t\t\n\t\taddNumberOfIterationsField();\n\t\taddNumberOfFinalSolutionsField();\n\t addNumberOfRulesPerSolutionField();\n\t\taddSampleSummaryUrlField();\n\t addMetrixFileUrlField();\n\t addRunButton();\n\t integrateComponents();\n\t}", "void initGUI(int width, int height) {\r\n setSize(width, height); // set the frame size, width: 800, height: 600\r\n setBackground(Color.white); // set the background color to white\r\n Container cp = getContentPane(); // set the container\r\n cp.setBackground(getBackground()); // set the background of the container\r\n cp.setLayout(new FlowLayout(FlowLayout.LEFT)); // set the layout\r\n\r\n createMenus(cp);\r\n\r\n addMouseListener(this); // add a mouse listener\r\n addMouseMotionListener(this); // add a mouse motion listener\r\n setVisible(true); // set the attribute visible true\r\n }", "public JFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public PaperSettingsJPanel() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public CreateGUI() throws IOException{\r\n\t\tthis.setFocusable(false);\r\n\t\tthis.setTitle(\"Dance Dance Revolution - 201B Edition\");\r\n\t\tthis.setSize(800, 600);\t\t \t\r\n\t\tthis.setLocation(100, 100); \t\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setResizable(false);\r\n\t\tcp = getContentPane();\r\n\t\tcp.setBackground(Color.black);\r\n\t\tarrowlistener = new ArrowListener();\r\n\t\tscore = new Score();\r\n\t\tcombo = new ComboImage();\r\n\t}", "private void initialize() {\n\t\tthis.setSize(293, 155);\n\t\tthis.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/abdo.jpg\")));\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"Désincription d'un étudiant\");\n\t}", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public xinxiNewJFrame() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public ColorPickerMainFrame()\n {\n initComponents();\n \n getContentPane().add(panel);\n setSize(640, 640);\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\n\t\tint width = gd.getDisplayMode().getWidth();\n\t\tint height = gd.getDisplayMode().getHeight();\n\t\tframe.setBounds(width / 3, height / 3, 461, 321);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\ttextField = new JTextField();\n\t\ttextField.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tif (text.trim().equalsIgnoreCase(\"devwindow\")) {\n\n\t\t\t\t\tDevWindow window = new DevWindow();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttextField.setBounds(10, 240, 430, 31);\n\t\tframe.getContentPane().add(textField);\n\n\t\tJLabel label = new JLabel();\n\t\tlabel.setText(\"Command Line (Dev Use Only)\");\n\t\tlabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel.setBounds(10, 220, 204, 17);\n\t\tframe.getContentPane().add(label);\n\n\t\tOptionsController oc = new OptionsController();\n\n\t\tJSlider slider = new JSlider();\n\t\tslider.setBounds(10, 113, 430, 31);\n\t\tslider.setPaintTicks(true);\n\t\tslider.setMaximum(600);\n\t\tslider.setMinimum(1);\n\t\tslider.setValue(Integer.parseInt(oc.getProp().getProperty(\"refreshRate\")));\n\t\tframe.getContentPane().add(slider);\n\n\t\tJLabel lblBackgroundRefreshRate = new JLabel();\n\t\tlblBackgroundRefreshRate.setText(\"Background Refresh Rate\");\n\t\tlblBackgroundRefreshRate.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblBackgroundRefreshRate.setBounds(10, 91, 158, 17);\n\t\tframe.getContentPane().add(lblBackgroundRefreshRate);\n\n\t\tJSlider slider_1 = new JSlider();\n\t\tslider_1.setToolTipText(\"\");\n\t\tslider_1.setBounds(10, 30, 430, 33);\n\t\tslider_1.setMaximum(300);\n\t\tslider_1.setMinimum(1);\n\t\tslider_1.setValue(Integer.parseInt(oc.getProp().getProperty(\"messageFrequency\")));\n\t\tframe.getContentPane().add(slider_1);\n\n\t\tJLabel label_2 = new JLabel();\n\t\tlabel_2.setText(\"New Message Frequency\");\n\t\tlabel_2.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_2.setBounds(10, 11, 158, 17);\n\t\tframe.getContentPane().add(label_2);\n\n\t\tJLabel lblNewLabel = new JLabel(\"New label\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblNewLabel.setBounds(317, 54, 123, 25);\n\t\tlblNewLabel.setText(oc.getProp().getProperty(\"messageFrequency\") + \" minute(s)\");\n\n\t\tlblNewLabel.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\n\t\t\t\toc.getProp().setProperty(\"messageFrequency\", lblNewLabel.getText().substring(0, 3).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\tJLabel label_3 = new JLabel(\"115 second(s) or 1.92 minute(s)\");\n\t\tlabel_3.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_3.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_3.setBounds(291, 155, 149, 25);\n\t\tframe.getContentPane().add(label_3);\n\n\t\tJLabel label_1 = new JLabel(oc.getProp().getProperty(\"refreshRate\"));\n\t\tlabel_1.setHorizontalAlignment(SwingConstants.RIGHT);\n\n\t\tlabel_1.setFont(new Font(\"Microsoft Yi Baiti\", Font.BOLD, 17));\n\t\tlabel_1.setBounds(291, 135, 149, 25);\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tlabel_1.setText(oc.getProp().getProperty(\"refreshRate\") + \" second(s)\");\n\t\tlabel_3.setText(\n\t\t\t\tdf.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0) + \" minute(s)\");\n\n\t\tlabel_1.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\n\t\t\t\toc.getProp().setProperty(\"refreshRate\", label_1.getText().substring(0, 4).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(label_1);\n\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Start On Start Up\");\n\t\tchckbxNewCheckBox.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tboolean selected = chckbxNewCheckBox.isSelected();\n\n\t\t\t\toc.getProp().setProperty(\"startOnStartUp\", Boolean.toString(selected));\n\t\t\t\toc.saveProperties();\n\n\t\t\t\tif (selected) {\n\n\t\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\t\tStartUp.create();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\tStartUp.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxNewCheckBox.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tchckbxNewCheckBox.setBounds(317, 186, 123, 23);\n\t\tchckbxNewCheckBox.setSelected(Boolean.valueOf(oc.getProp().getProperty(\"startOnStartUp\")));\n\t\tframe.getContentPane().add(chckbxNewCheckBox);\n\n\t\tJButton btnNewButton = new JButton(\"Exit Without Refresh\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbtnNewButton.setBounds(10, 156, 143, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"Help\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tInstructionWindow iWindow = new InstructionWindow();\n\t\t\t\tiWindow.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(201, 186, 65, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\n\t\tJButton button = new JButton(\"Refresh Offline MBank\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tConnection conn = null;\n\t\t\t\tDatabaseController dbc = DatabaseController.getDBController();\n\t\t\t\tString connectString = dbc.buildConnectionString();\n\n\t\t\t\ttry {\n\t\t\t\t\tconn = DriverManager.getConnection(connectString);\n\t\t\t\t\toc.getProp().setProperty(\"offlineMode\", \"false\");\n\t\t\t\t\toc.saveProperties();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\t\tbuf.append(\"There was a problem with the following connection string: \");\n\t\t\t\t\tbuf.append(connectString);\n\t\t\t\t\tbuf.append(\"\\n\\nHere is the exceptio:\\n\");\n\t\t\t\t\tbuf.append(e.toString());\n\t\t\t\t\tSystem.out.println(buf.toString());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime()\n\t\t\t\t\t\t\t\t.exec(\"javaw -jar \\\"\" + System.getProperty(\"user.home\") + File.separator + \"Documents\"\n\t\t\t\t\t\t\t\t\t\t+ File.separator + \"SevMessageConfig\" + File.separator\n\t\t\t\t\t\t\t\t\t\t+ \"NowOfflineWindow.jar\\\"\");\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep((long) 3000.0);\n\t\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tFile file = new File(System.getProperty(\"user.home\") + File.separator + \"Documents\" + File.separator\n\t\t\t\t\t\t+ \"SevMessageConfig\" + File.separator + \"offlineMessageBank.txt\");\n\t\t\t\tfile.delete();\n\n\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\tStartUp.create();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tbutton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbutton.setBounds(10, 186, 165, 23);\n\t\tframe.getContentPane().add(button);\n\n\t\tslider_1.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\n\t\t\t\tlblNewLabel.setText(Integer.toString(slider_1.getValue()) + \" minute(s)\");\n\t\t\t}\n\t\t});\n\n\t\tslider.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\t\tlabel_1.setText(Integer.toString(slider.getValue()) + \" second(s)\");\n\t\t\t\tlabel_3.setText(df.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0)\n\t\t\t\t\t\t+ \" minute(s)\");\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public MainWindow()\n {\n initComponents();\n\n // Asignamos los eventos de los controles propios\n this.setCustomControlEvents();\n // Desactivamos por defecto todos los elementos de las barras de imagen\n this.setImageWindowDeactivated();\n \n this.jSplitPane1.setDividerLocation(0.9);\n }", "private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}", "public GUI() {\n\t\tinitComponents();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new CardLayout(0, 0));\n\n\t\t//panels\n\t\tfinal JPanel panelMenu = new JPanel();\n\t\tframe.getContentPane().add(panelMenu, \"name_25757788791192\");\n\t\tpanelMenu.setLayout(null);\n\t\tpanelMenu.setVisible(true);\n\n\n\t\t/*** Equivalence matching ***/\n\t\tfinal JPanel panelEquivalenceMatching = new JPanel();\n\t\tpanelEquivalenceMatching.setBackground(Color.WHITE);\n\t\tframe.getContentPane().add(panelEquivalenceMatching, \"name_25766809915035\");\n\t\tpanelEquivalenceMatching.setLayout(null);\n\t\t\n\t\tfinal JPanel EQgraphJPanel = new JPanel();\n\t\tEQgraphJPanel.setBorder(null);\n\t\tEQgraphJPanel.setBackground(Color.WHITE);\n\t\tEQgraphJPanel.setBounds(456, 215, 491, 315);\n\t\tpanelEquivalenceMatching.add(EQgraphJPanel);\n\t\t\n\t\t\n\t\t\n\t\tfinal JEditorPane EQmatchingResultsPane = new JEditorPane();\n\t\tEQmatchingResultsPane.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 8));\n\t\tEQmatchingResultsPane.setForeground(Color.WHITE);\n\t\tEQmatchingResultsPane.setBackground(Color.WHITE);\n\t\tEQmatchingResultsPane.setBounds(595, 538, 352, 114);\n\t\tpanelEquivalenceMatching.add(EQmatchingResultsPane);\n\n\t\tJLabel lblUploadFiles_1 = new JLabel(\"Upload files\");\n\t\tlblUploadFiles_1.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tlblUploadFiles_1.setForeground(new Color(0, 102, 153));\n\t\tlblUploadFiles_1.setBounds(31, 36, 105, 16);\n\t\tpanelEquivalenceMatching.add(lblUploadFiles_1);\n\n\t\tJLabel lblSelectMatchers = new JLabel(\"Select matchers\");\n\t\tlblSelectMatchers.setForeground(new Color(0, 102, 153));\n\t\tlblSelectMatchers.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tlblSelectMatchers.setBounds(31, 172, 157, 16);\n\t\tpanelEquivalenceMatching.add(lblSelectMatchers);\n\n\t\tJLabel lblChooseConfidenceThreshold = new JLabel(\"Choose confidence threshold\");\n\t\tlblChooseConfidenceThreshold.setForeground(new Color(0, 102, 153));\n\t\tlblChooseConfidenceThreshold.setFont(new Font(\"Lucida Grande\", Font.BOLD, 10));\n\t\tlblChooseConfidenceThreshold.setBounds(201, 172, 157, 16);\n\t\tpanelEquivalenceMatching.add(lblChooseConfidenceThreshold);\n\n\t\tfinal JCheckBox checkBoxEdit = new JCheckBox(\"Edit \");\n\t\tcheckBoxEdit.setBounds(41, 207, 128, 23);\n\t\tpanelEquivalenceMatching.add(checkBoxEdit);\n\n\t\tfinal JCheckBox checkBoxSmoa = new JCheckBox(\"Smoa\");\n\t\tcheckBoxSmoa.setBounds(41, 254, 128, 23);\n\t\tpanelEquivalenceMatching.add(checkBoxSmoa);\n\n\t\tfinal JCheckBox checkBoxIsub = new JCheckBox(\"ISub\");\n\t\tcheckBoxIsub.setBounds(41, 296, 128, 23);\n\t\tpanelEquivalenceMatching.add(checkBoxIsub);\n\n\t\tfinal JCheckBox checkBoxTrigram = new JCheckBox(\"Trigram\");\n\t\tcheckBoxTrigram.setBounds(41, 353, 128, 23);\n\t\tpanelEquivalenceMatching.add(checkBoxTrigram);\n\n\t\tfinal JCheckBox checkBoxWordnet = new JCheckBox(\"WordNet\");\n\t\tcheckBoxWordnet.setBounds(41, 407, 128, 23);\n\t\tpanelEquivalenceMatching.add(checkBoxWordnet);\n\n\t\tfinal JCheckBox checkBoxStructure = new JCheckBox(\"Structure\");\n\t\tcheckBoxStructure.setBounds(41, 460, 128, 23);\n\t\tpanelEquivalenceMatching.add(checkBoxStructure);\n\t\t\n\t\tfinal DefaultCategoryDataset EQdataset = \n\t\t\t\tnew DefaultCategoryDataset( ); \n\t\t\n\t\tfinal JFreeChart EQchart = ChartFactory.createBarChart(\"\", \"\", \"\", EQdataset, PlotOrientation.VERTICAL, true, false, false);\n\t\t\n\t\tfinal ChartPanel EQmatchingResultsChartPanel = new ChartPanel((JFreeChart) EQchart);\n\n\t\t//labels\n\t\tfinal JLabel EQlblOntology1 = new JLabel(\"\");\n\t\tEQlblOntology1.setEnabled(false);\n\t\tEQlblOntology1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tEQlblOntology1.setBounds(191, 62, 133, 16);\n\t\tpanelEquivalenceMatching.add(EQlblOntology1);\n\t\t\n\t\tfinal JLabel EQlblOntology2 = new JLabel(\"\");\n\t\tEQlblOntology2.setEnabled(false);\n\t\tEQlblOntology2.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tEQlblOntology2.setBounds(191, 93, 133, 16);\n\t\tpanelEquivalenceMatching.add(EQlblOntology2);\n\t\t\n\t\tfinal JLabel EQlblRefAlign = new JLabel(\"\");\n\t\tEQlblRefAlign.setEnabled(false);\n\t\tEQlblRefAlign.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tEQlblRefAlign.setBounds(191, 122, 133, 16);\n\t\tpanelEquivalenceMatching.add(EQlblRefAlign);\n\n\t\t//Upload ontology files for equivalence matching\n\t\tJButton btnEQUploadOntology1 = new JButton(\"Upload ontology 1\");\n\t\tbtnEQUploadOntology1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenFile of1 = new OpenFile();\n\n\t\t\t\ttry {\n\t\t\t\t\tontoFile1 = of1.getOntoFile1();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tEQlblOntology1.setText(StringUtilities.stripPath(ontoFile1.toString()));\n\t\t\t}\n\t\t});\n\t\tbtnEQUploadOntology1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnEQUploadOntology1.setBounds(19, 58, 169, 29);\n\t\tpanelEquivalenceMatching.add(btnEQUploadOntology1);\n\n\t\tJButton btnEQUploadOntology2 = new JButton(\"Upload ontology 2\");\n\t\tbtnEQUploadOntology2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenFile of2 = new OpenFile();\n\n\t\t\t\ttry {\n\t\t\t\t\tontoFile2 = of2.getOntoFile1();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tEQlblOntology2.setText(StringUtilities.stripPath(ontoFile2.toString()));\n\t\t\t}\n\t\t});\n\t\tbtnEQUploadOntology2.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnEQUploadOntology2.setBounds(19, 90, 169, 29);\n\t\tpanelEquivalenceMatching.add(btnEQUploadOntology2);\n\n\t\t//Upload reference alignment for equivalence matching\n\t\tJButton btnUploadReferenceAlignment_1 = new JButton(\"Upload Reference Alignment\");\n\t\tbtnUploadReferenceAlignment_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tOpenFile of3 = new OpenFile();\n\n\t\t\t\ttry {\n\t\t\t\t\trefAlignFile = of3.getFile();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t\tEQlblRefAlign.setText(StringUtilities.stripPath(refAlignFile.toString()));\n\t\t\t}\n\t\t});\n\t\tbtnUploadReferenceAlignment_1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnUploadReferenceAlignment_1.setBounds(19, 119, 169, 29);\n\t\tpanelEquivalenceMatching.add(btnUploadReferenceAlignment_1);\n\n\t\tfinal JCheckBox chckbxEnforceSameDomain = new JCheckBox(\"Enforce same domain constraint\");\n\t\tchckbxEnforceSameDomain.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tchckbxEnforceSameDomain.setBounds(41, 508, 207, 23);\n\t\tpanelEquivalenceMatching.add(chckbxEnforceSameDomain);\n\n\t\tfinal JSlider sliderEQEdit = new JSlider();\n\t\tsliderEQEdit.setBounds(181, 198, 207, 41);\n\t\tsliderEQEdit.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderEQEdit.setMinorTickSpacing(2);\n\t\tsliderEQEdit.setMajorTickSpacing(10);\n\t\tsliderEQEdit.setPaintLabels(true);\n\t\tpanelEquivalenceMatching.add(sliderEQEdit);\n\n\t\tfinal JSlider sliderEQSmoa = new JSlider();\n\t\tsliderEQSmoa.setPaintLabels(true);\n\t\tsliderEQSmoa.setMinorTickSpacing(2);\n\t\tsliderEQSmoa.setMajorTickSpacing(10);\n\t\tsliderEQSmoa.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderEQSmoa.setBounds(181, 243, 207, 41);\n\t\tpanelEquivalenceMatching.add(sliderEQSmoa);\n\n\t\tfinal JSlider sliderEQISub = new JSlider();\n\t\tsliderEQISub.setPaintLabels(true);\n\t\tsliderEQISub.setMinorTickSpacing(2);\n\t\tsliderEQISub.setMajorTickSpacing(10);\n\t\tsliderEQISub.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderEQISub.setBounds(181, 296, 207, 41);\n\t\tpanelEquivalenceMatching.add(sliderEQISub);\n\n\t\tfinal JSlider sliderEQTrigram = new JSlider();\n\t\tsliderEQTrigram.setPaintLabels(true);\n\t\tsliderEQTrigram.setMinorTickSpacing(2);\n\t\tsliderEQTrigram.setMajorTickSpacing(10);\n\t\tsliderEQTrigram.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderEQTrigram.setBounds(181, 349, 207, 41);\n\t\tpanelEquivalenceMatching.add(sliderEQTrigram);\n\n\t\tfinal JSlider sliderEQWordNet = new JSlider();\n\t\tsliderEQWordNet.setPaintLabels(true);\n\t\tsliderEQWordNet.setMinorTickSpacing(2);\n\t\tsliderEQWordNet.setMajorTickSpacing(10);\n\t\tsliderEQWordNet.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderEQWordNet.setBounds(181, 402, 207, 41);\n\t\tpanelEquivalenceMatching.add(sliderEQWordNet);\n\n\t\tfinal JSlider sliderEQStructure = new JSlider();\n\t\tsliderEQStructure.setPaintLabels(true);\n\t\tsliderEQStructure.setMinorTickSpacing(2);\n\t\tsliderEQStructure.setMajorTickSpacing(10);\n\t\tsliderEQStructure.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderEQStructure.setBounds(181, 455, 207, 41);\n\t\tpanelEquivalenceMatching.add(sliderEQStructure);\n\n\t\tJButton btnEQEvaluate = new JButton(\"Evaluate\");\n\t\t\n\t\tbtnEQEvaluate.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\t//compound matcher\n\t\t\t\t\tif (checkBoxEdit.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new EditMatcher_remove();\n\t\t\t\t\t\tthreshold = (double)sliderEQEdit.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\teditAlignmentFileName = \"./files/GUITest/alignments/Edit.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(editAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(editAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(editAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+editAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble editFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble editPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble editRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\t\tEQdataset.addValue( editPrecisionValue , \"Edit\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( editRecallValue , \"Edit\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( editFMeasureValue , \"Edit\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Edit:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + editFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + editRecallValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + editRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//smoa matcher\n\t\t\t\t\tif (checkBoxSmoa.isSelected()) {\n\t\t\t\t\t\tAlignment a = new SmoaMatcher_remove();\n\t\t\t\t\tthreshold = (double)sliderEQSmoa.getValue()/100;\n\t\t\t\t\t\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tparams = new Properties();\n\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\t\n\n\n\t\t\t\t\tsmoaAlignmentFileName = \"./files/GUITest/alignments/Smoa.rdf\";\n\n\t\t\t\t\toutputAlignment = new File(smoaAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\t\t\t\t\t//check domain constraint\n\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\tFile computedAlignment = new File(smoaAlignmentFileName);\n\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(smoaAlignmentFileName)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluate\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+smoaAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble smoaFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble smoaPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble smoaRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\tEQdataset.addValue( smoaPrecisionValue , \"Smoa\" , precision ); \n\t\t\t\t\tEQdataset.addValue( smoaRecallValue , \"Smoa\" , recall ); \n\t\t\t\t\tEQdataset.addValue( smoaFMeasureValue , \"Smoa\" , fMeasure ); \n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Smoa:\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + smoaFMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + smoaPrecisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + smoaRecallValue);\n\n\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\n\t\t\t\t\t}\n\t\t\t\t\tif (checkBoxIsub.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new StringEquivalenceMatcher();\n\t\t\t\t\t\tthreshold = (double)sliderEQISub.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\tiSubAlignmentFileName = \"./files/GUITest/alignments/ISub.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(iSubAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(iSubAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(iSubAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+iSubAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble iSubFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble iSubPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble iSubRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\t\tEQdataset.addValue( iSubPrecisionValue , \"ISub\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( iSubRecallValue , \"ISub\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( iSubFMeasureValue , \"ISub\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"ISub:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + iSubFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + iSubPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + iSubRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\t\t\t\t\tif (checkBoxTrigram.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new TrigramMatcher();\n\t\t\t\t\t\tthreshold = (double)sliderEQTrigram.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\ttrigramAlignmentFileName = \"./files/GUITest/alignments/Trigram.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(trigramAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(trigramAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(trigramAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+trigramAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble trigramFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble trigramPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble trigramRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\n\t\t\t\t\t\tEQdataset.addValue( trigramPrecisionValue , \"Trigram\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( trigramRecallValue , \"Trigram\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( trigramFMeasureValue , \"Trigram\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Trigram:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + trigramFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + trigramPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + trigramRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxWordnet.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new WNRiWordNetDistance();\n\t\t\t\t\t\tthreshold = (double)sliderEQWordNet.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\twordNetAlignmentFileName = \"./files/GUITest/alignments/WordNetEQ.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(wordNetAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(wordNetAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(wordNetAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+wordNetAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble wordNetFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble wordNetPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble wordNetRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\t\n\n\t\t\t\t\t\tEQdataset.addValue( wordNetPrecisionValue , \"WordNet\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( wordNetRecallValue , \"WordNet\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( wordNetFMeasureValue , \"WordNet\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"WordNet:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + wordNetFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + wordNetPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + wordNetRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\n\t\t\t\t\t/*if (checkBoxStructure.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new StructureEQMatcher();\n\t\t\t\t\t\tthreshold = (double)sliderEQStructure.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\tstructureAlignmentFileName = \"./files/GUITest/alignments/StructureEQ.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(structureAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(structureAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(structureAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+structureAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble compoundFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble compoundPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble compoundRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal DefaultCategoryDataset EQdataset = \n\t\t\t\t\t\t\t\tnew DefaultCategoryDataset( ); \n\n\t\t\t\t\t\tEQdataset.addValue( compoundPrecisionValue , \"Structure\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( compoundRecallValue , \"Structure\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( compoundFMeasureValue , \"Structure\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Structure:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + compoundFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + compoundPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + compoundRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}*/\n\n\t\t\t\t\t//add chart\n\t\t\t\t\t\n\t\t\t\t\tEQchart.setBorderVisible(true);\n\t\t\t\t\tCategoryPlot EQcp = EQchart.getCategoryPlot();\n\t\t\t\t\tEQcp.setBackgroundPaint(Color.white);\n\n\t\t\t\t\t\n\t\t\t\t\tEQmatchingResultsChartPanel.setBorder(null);\n\t\t\t\t\tDimension matchingResultsDimension = new Dimension();\n\t\t\t\t\tmatchingResultsDimension.setSize(490, 315);\n\t\t\t\t\t//EQgraphJPanel.setBounds(456, 215, 491, 315);\n\t\t\t\t\tEQmatchingResultsChartPanel.setPreferredSize(matchingResultsDimension);\n\t\t\t\t\tEQgraphJPanel.add(EQmatchingResultsChartPanel);\n\t\t\t\t\tEQgraphJPanel.setVisible(true); \n\n\t\t\t\t\n\t\t\t}\n\t\n\t\t});\n\t\tbtnEQEvaluate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnEQEvaluate.setBounds(369, 619, 117, 29);\n\t\tpanelEquivalenceMatching.add(btnEQEvaluate);\n\n\t\tJButton btnEQMainMenu = new JButton(\"Main Menu\");\n\t\tbtnEQMainMenu.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tcheckBoxEdit.setSelected(false);\n\t\t\t\tcheckBoxSmoa.setSelected(false);\n\t\t\t\tcheckBoxIsub.setSelected(false);\n\t\t\t\tcheckBoxTrigram.setSelected(false);\n\t\t\t\tcheckBoxWordnet.setSelected(false);\n\t\t\t\tcheckBoxStructure.setSelected(false);\n\t\t\t\tEQmatchingResultsChartPanel.repaint();\n\t\t\t\tEQgraphJPanel.repaint();\n\t\t\t\tEQdataset.clear();\n\t\t\t\t//EQchart.\n\t\t\t\tpanelEquivalenceMatching.setVisible(false);\n\t\t\t\tpanelMenu.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t\tbtnEQMainMenu.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnEQMainMenu.setBounds(482, 619, 117, 29);\n\t\tpanelEquivalenceMatching.add(btnEQMainMenu);\n\t\tpanelEquivalenceMatching.setVisible(false);\n\n\t\tJLabel lblEQEvaluationResults = new JLabel(\"Evaluation Results\");\n\t\tlblEQEvaluationResults.setForeground(new Color(0, 102, 153));\n\t\tlblEQEvaluationResults.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tlblEQEvaluationResults.setBounds(618, 172, 157, 16);\n\t\tpanelEquivalenceMatching.add(lblEQEvaluationResults);\n\t\t\n//\t\t//Upload ontology files for equivalence matching\n//\t\t\t\tJButton btnEQUploadOntology1 = new JButton(\"Upload ontology 1\");\n//\t\t\t\tbtnEQUploadOntology1.addActionListener(new ActionListener() {\n//\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n//\t\t\t\t\t\tOpenFile of1 = new OpenFile();\n//\n//\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\tontoFile1 = of1.getOntoFile1();\n//\t\t\t\t\t\t} catch (Exception ex) {\n//\t\t\t\t\t\t\tex.printStackTrace();\n//\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\tEQlblOntology1.setText(StringUtils.stripPath(ontoFile1.toString()));\n//\t\t\t\t\t}\n//\t\t\t\t});\n\t\t\n\t\tJButton btnCompute = new JButton(\"Compute alignment\");\n\t\t\n\t\t//set to hold all alignments\n\t\tfinal Set<Alignment> equivalenceAlignmentSet = new HashSet<Alignment>();\n\t\t\n\t\tbtnCompute.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\n\t\t\t\t\t//compound matcher\n\t\t\t\t\tif (checkBoxEdit.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new EditMatcher_remove();\n\t\t\t\t\t\tthreshold = (double)sliderEQEdit.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\teditAlignmentFileName = \"./files/GUITest/alignments/Edit.rdf\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tequivalenceAlignmentSet.add(a);\n\n\t\t\t\t\t\toutputAlignment = new File(editAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(editAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(editAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedEditAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedEditAlignment = aparser.parse(new URI(\"file:\"+editAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedEditAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tequivalenceAlignmentSet.add(evaluatedEditAlignment); \n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble editFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble editPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble editRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\t\tEQdataset.addValue( editPrecisionValue , \"Edit\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( editRecallValue , \"Edit\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( editFMeasureValue , \"Edit\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Edit:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + editFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + editRecallValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + editRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//smoa matcher\n\t\t\t\t\tif (checkBoxSmoa.isSelected()) {\n\t\t\t\t\t\tAlignment a = new SmoaMatcher_remove();\n\t\t\t\t\tthreshold = (double)sliderEQSmoa.getValue()/100;\n\t\t\t\t\t\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tparams = new Properties();\n\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\t\n\n\n\t\t\t\t\tsmoaAlignmentFileName = \"./files/GUITest/alignments/Smoa.rdf\";\n\n\t\t\t\t\toutputAlignment = new File(smoaAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment smoaAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsmoaAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsmoaAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\t\t\t\t\t//check domain constraint\n\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\tFile computedAlignment = new File(smoaAlignmentFileName);\n\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(smoaAlignmentFileName)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluate\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedSmoaAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedSmoaAlignment = aparser.parse(new URI(\"file:\"+smoaAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedSmoaAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\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\tequivalenceAlignmentSet.add(evaluatedSmoaAlignment);\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble smoaFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble smoaPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble smoaRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\tEQdataset.addValue( smoaPrecisionValue , \"Smoa\" , precision ); \n\t\t\t\t\tEQdataset.addValue( smoaRecallValue , \"Smoa\" , recall ); \n\t\t\t\t\tEQdataset.addValue( smoaFMeasureValue , \"Smoa\" , fMeasure ); \n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Smoa:\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + smoaFMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + smoaPrecisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + smoaRecallValue);\n\n\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\n\t\t\t\t\t}\n\t\t\t\t\tif (checkBoxIsub.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new StringEquivalenceMatcher();\n\t\t\t\t\t\tthreshold = (double)sliderEQISub.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\tiSubAlignmentFileName = \"./files/GUITest/alignments/ISub.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(iSubAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment iSubAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tiSubAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tiSubAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(iSubAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(iSubAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedISubAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedISubAlignment = aparser.parse(new URI(\"file:\"+iSubAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedISubAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tequivalenceAlignmentSet.add(evaluatedISubAlignment);\n\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble iSubFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble iSubPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble iSubRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\t\tEQdataset.addValue( iSubPrecisionValue , \"ISub\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( iSubRecallValue , \"ISub\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( iSubFMeasureValue , \"ISub\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"ISub:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + iSubFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + iSubPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + iSubRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\t\t\t\t\tif (checkBoxTrigram.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new TrigramMatcher();\n\t\t\t\t\t\tthreshold = (double)sliderEQTrigram.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\ttrigramAlignmentFileName = \"./files/GUITest/alignments/Trigram.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(trigramAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment editTrigramAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditTrigramAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teditTrigramAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(trigramAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(trigramAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedTrigramAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedTrigramAlignment = aparser.parse(new URI(\"file:\"+trigramAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedTrigramAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tequivalenceAlignmentSet.add(evaluatedTrigramAlignment);\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble trigramFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble trigramPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble trigramRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\n\t\t\t\t\t\tEQdataset.addValue( trigramPrecisionValue , \"Trigram\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( trigramRecallValue , \"Trigram\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( trigramFMeasureValue , \"Trigram\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Trigram:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + trigramFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + trigramPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + trigramRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxWordnet.isSelected()) {\n\n\t\t\t\t\t\tAlignment a = new WNRiWordNetDistance();\n\t\t\t\t\t\tthreshold = (double)sliderEQWordNet.getValue()/100;\n\t\t\t\t\t\t\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparams = new Properties();\n\t\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\t\n\n\n\t\t\t\t\t\twordNetAlignmentFileName = \"./files/GUITest/alignments/WordNetEQ.rdf\";\n\n\t\t\t\t\t\toutputAlignment = new File(wordNetAlignmentFileName);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\tBasicAlignment wordNetAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twordNetAlignment.cut(threshold);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twordNetAlignment.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t//check domain constraint\n\t\t\t\t\t\tif (chckbxEnforceSameDomain.isSelected()) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\t\tFile computedAlignment = new File(wordNetAlignmentFileName);\n\t\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(wordNetAlignmentFileName)), true);\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//evaluate\n\t\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tAlignment evaluatedWordNetAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tevaluatedWordNetAlignment = aparser.parse(new URI(\"file:\"+wordNetAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedWordNetAlignment);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tequivalenceAlignmentSet.add(evaluatedWordNetAlignment);\n\t\t\t\t\t\t\n\t\t\t\t\t\tAlignment intersectedAlignment = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tintersectedAlignment = ParallelCombination.intersectRelaxed(equivalenceAlignmentSet);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\t// FIXME 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\t\n\t\t\t\t\t\t/* NOTE 16.01.2018: Not working\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * DownloadFile df = new DownloadFile();\n\t\t\t\t\t\t\n\t\t\t\t\t\tFile alignmentFile = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentFile = df.storeFile();\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// FIXME 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\t\n\t\t\t\t\t\t//evaluation\n\t\t\t\t\t\tdouble wordNetFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\t\tdouble wordNetPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\t\tdouble wordNetRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\t\n\n\t\t\t\t\t\tEQdataset.addValue( wordNetPrecisionValue , \"WordNet\" , precision ); \n\t\t\t\t\t\tEQdataset.addValue( wordNetRecallValue , \"WordNet\" , recall ); \n\t\t\t\t\t\tEQdataset.addValue( wordNetFMeasureValue , \"WordNet\" , fMeasure ); \n\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"WordNet:\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + wordNetFMeasureValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + wordNetPrecisionValue);\n\t\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + wordNetRecallValue);\n\n\t\t\t\t\t\tEQmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t\t\t//add chart\n\t\t\t\t\t\n\t\t\t\t\tEQchart.setBorderVisible(true);\n\t\t\t\t\tCategoryPlot EQcp = EQchart.getCategoryPlot();\n\t\t\t\t\tEQcp.setBackgroundPaint(Color.white);\n\n\t\t\t\t\t\n\t\t\t\t\tEQmatchingResultsChartPanel.setBorder(null);\n\t\t\t\t\tDimension matchingResultsDimension = new Dimension();\n\t\t\t\t\tmatchingResultsDimension.setSize(490, 315);\n\t\t\t\t\t//EQgraphJPanel.setBounds(456, 215, 491, 315);\n\t\t\t\t\tEQmatchingResultsChartPanel.setPreferredSize(matchingResultsDimension);\n\t\t\t\t\tEQgraphJPanel.add(EQmatchingResultsChartPanel);\n\t\t\t\t\tEQgraphJPanel.setVisible(true); \n\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\n\t\t);\n\t\tbtnCompute.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnCompute.setBounds(229, 619, 140, 29);\n\t\tpanelEquivalenceMatching.add(btnCompute);\n\t\t\n\t\tJLabel lblNoteThatIf = new JLabel(\"Note that if more than one matcher is selected alignments are combined using intersection (simple)\");\n\t\tlblNoteThatIf.setForeground(Color.RED);\n\t\tlblNoteThatIf.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblNoteThatIf.setBounds(51, 549, 523, 41);\n\t\tpanelEquivalenceMatching.add(lblNoteThatIf);\n\n\n\t\t/*** Subsumption Matching ***/\n\t\tfinal JPanel panelsubsumptionMatching = new JPanel();\n\t\tpanelsubsumptionMatching.setBackground(Color.WHITE);\n\t\tframe.getContentPane().add(panelsubsumptionMatching, \"name_25771746383092\");\n\t\tpanelsubsumptionMatching.setLayout(null);\n\t\tpanelsubsumptionMatching.setVisible(false);\n\n\t\tfinal JPanel graphJPanel = new JPanel();\n\t\tgraphJPanel.setBorder(null);\n\t\tgraphJPanel.setBackground(Color.WHITE);\n\t\tgraphJPanel.setBounds(616, 405, 362, 234);\n\t\tpanelsubsumptionMatching.add(graphJPanel);\n\n\t\tfinal JEditorPane matchingResultsPane = new JEditorPane();\n\t\tmatchingResultsPane.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 6));\n\t\tmatchingResultsPane.setForeground(Color.GRAY);\n\t\tmatchingResultsPane.setBackground(Color.WHITE);\n\t\tmatchingResultsPane.setBounds(489, 377, 86, 275);\n\t\tpanelsubsumptionMatching.add(matchingResultsPane);\n\n\t\tfinal JPanel combinedProfilespanel = new JPanel();\n\t\tcombinedProfilespanel.setBounds(616, 35, 362, 313);\n\t\tpanelsubsumptionMatching.add(combinedProfilespanel);\n\t\tcombinedProfilespanel.setBorder(null);\n\t\tcombinedProfilespanel.setBackground(Color.WHITE);\n\n\t\t//labels\n\t\tfinal JLabel lblOntology1 = new JLabel(\"\");\n\t\tlblOntology1.setEnabled(false);\n\t\tlblOntology1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblOntology1.setBounds(175, 40, 133, 16);\n\t\tpanelsubsumptionMatching.add(lblOntology1);\n\n\t\tfinal JLabel lblOntology2 = new JLabel(\"\");\n\t\tlblOntology2.setEnabled(false);\n\t\tlblOntology2.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblOntology2.setBounds(175, 70, 133, 16);\n\t\tpanelsubsumptionMatching.add(lblOntology2);\n\n\t\tfinal JLabel lblRefAlignment = new JLabel(\"\");\n\t\tlblRefAlignment.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblRefAlignment.setEnabled(false);\n\t\tlblRefAlignment.setBounds(175, 102, 218, 16);\n\t\tpanelsubsumptionMatching.add(lblRefAlignment);\n\n\t\tfinal JSlider sliderCompoundMatcher = new JSlider();\n\t\tsliderCompoundMatcher.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderCompoundMatcher.setBounds(185, 165, 249, 46);\n\t\tsliderCompoundMatcher.setMinorTickSpacing(2);\n\t\tsliderCompoundMatcher.setMajorTickSpacing(10);\n\t\tsliderCompoundMatcher.setPaintLabels(true);\n\t\tpanelsubsumptionMatching.add(sliderCompoundMatcher);\n\n\t\tfinal JSlider sliderParentMatcher = new JSlider();\n\t\tsliderParentMatcher.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderParentMatcher.setPaintLabels(true);\n\t\tsliderParentMatcher.setMinorTickSpacing(2);\n\t\tsliderParentMatcher.setMajorTickSpacing(10);\n\t\tsliderParentMatcher.setBounds(185, 209, 249, 46);\n\t\tpanelsubsumptionMatching.add(sliderParentMatcher);\n\n\t\tfinal JSlider sliderAncestorMatcher = new JSlider();\n\t\tsliderAncestorMatcher.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderAncestorMatcher.setPaintLabels(true);\n\t\tsliderAncestorMatcher.setMinorTickSpacing(2);\n\t\tsliderAncestorMatcher.setMajorTickSpacing(10);\n\t\tsliderAncestorMatcher.setBounds(185, 260, 249, 46);\n\t\tpanelsubsumptionMatching.add(sliderAncestorMatcher);\n\n\t\tfinal JSlider sliderWNMatcher = new JSlider();\n\t\tsliderWNMatcher.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 9));\n\t\tsliderWNMatcher.setPaintLabels(true);\n\t\tsliderWNMatcher.setMinorTickSpacing(2);\n\t\tsliderWNMatcher.setMajorTickSpacing(10);\n\t\tsliderWNMatcher.setBounds(185, 310, 249, 46);\n\t\tpanelsubsumptionMatching.add(sliderWNMatcher);\n\n\t\tfinal JCheckBox checkBoxSameDomainConstraintMatcher = new JCheckBox(\"\");\n\t\tcheckBoxSameDomainConstraintMatcher.setBounds(6, 371, 37, 23);\n\t\tpanelsubsumptionMatching.add(checkBoxSameDomainConstraintMatcher);\n\n\t\t//checkboxes\n\t\tfinal JCheckBox chckbxWeightedSequentialComposition = new JCheckBox(\"Weighted Sequential Composition\");\n\t\tchckbxWeightedSequentialComposition.setBounds(6, 468, 257, 23);\n\t\tpanelsubsumptionMatching.add(chckbxWeightedSequentialComposition);\n\n\t\tfinal JCheckBox chckbxParallelSimpleVote = new JCheckBox(\"Parallel Simple Vote Composition\");\n\t\tchckbxParallelSimpleVote.setBounds(6, 500, 257, 23);\n\t\tpanelsubsumptionMatching.add(chckbxParallelSimpleVote);\n\n\t\tfinal JCheckBox chckbxParallelPrioritised = new JCheckBox(\"Parallel Prioritised Composition\");\n\t\tchckbxParallelPrioritised.setBounds(6, 533, 257, 23);\n\t\tpanelsubsumptionMatching.add(chckbxParallelPrioritised);\n\n\t\tfinal JCheckBox chckbxHybridComposition = new JCheckBox(\"Hybrid Composition\");\n\t\tchckbxHybridComposition.setBounds(6, 568, 257, 23);\n\t\tpanelsubsumptionMatching.add(chckbxHybridComposition);\n\n\t\t//text areas\t\t\n\t\tfinal JTextArea textAreaOntology1Profile = new JTextArea();\n\t\ttextAreaOntology1Profile.setBackground(Color.WHITE);\n\t\ttextAreaOntology1Profile.setFont(new Font(\"Times New Roman\", Font.PLAIN, 10));\n\t\ttextAreaOntology1Profile.setEditable(false);\n\t\ttextAreaOntology1Profile.setBounds(510, 17, 37, 51);\n\t\tpanelsubsumptionMatching.add(textAreaOntology1Profile);\n\n\t\tfinal JTextArea textAreaOntology2Profile = new JTextArea();\n\t\ttextAreaOntology2Profile.setBackground(Color.WHITE);\n\t\ttextAreaOntology2Profile.setFont(new Font(\"Times New Roman\", Font.PLAIN, 10));\n\t\ttextAreaOntology2Profile.setEditable(false);\n\t\ttextAreaOntology2Profile.setBounds(559, 17, 45, 49);\n\t\tpanelsubsumptionMatching.add(textAreaOntology2Profile);\n\n\t\t//textfields\n\t\ttextFieldCompoundMatcherPriority = new JTextField();\n\t\ttextFieldCompoundMatcherPriority.setBounds(449, 168, 45, 26);\n\t\tpanelsubsumptionMatching.add(textFieldCompoundMatcherPriority);\n\t\ttextFieldCompoundMatcherPriority.setColumns(10);\n\n\t\ttextFieldParentMatcherPriority = new JTextField();\n\t\ttextFieldParentMatcherPriority.setColumns(10);\n\t\ttextFieldParentMatcherPriority.setBounds(449, 217, 45, 26);\n\t\tpanelsubsumptionMatching.add(textFieldParentMatcherPriority);\n\n\t\ttextFieldAncestorMatcherPriority = new JTextField();\n\t\ttextFieldAncestorMatcherPriority.setColumns(10);\n\t\ttextFieldAncestorMatcherPriority.setBounds(449, 267, 45, 26);\n\t\tpanelsubsumptionMatching.add(textFieldAncestorMatcherPriority);\n\n\t\ttextFieldWordNetMatcherPriority = new JTextField();\n\t\ttextFieldWordNetMatcherPriority.setColumns(10);\n\t\ttextFieldWordNetMatcherPriority.setBounds(449, 317, 45, 26);\n\t\tpanelsubsumptionMatching.add(textFieldWordNetMatcherPriority);\n\n\t\t//dataset for charts\n\t\tfinal DefaultCategoryDataset dataset = \n\t\t\t\tnew DefaultCategoryDataset( ); \n\n\t\t//buttons\n\n\t\tfinal JButton btnDownloadAlignment = new JButton(\"Download alignment\");\n\n\t\tbtnDownloadAlignment.setToolTipText(\"\");\n\t\tbtnDownloadAlignment.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnDownloadAlignment.setBounds(175, 622, 153, 29);\n\t\tpanelsubsumptionMatching.add(btnDownloadAlignment);\n\n\t\tJButton btnsubsumptionMatching = new JButton(\"Subsumption Matching\");\n\t\tbtnsubsumptionMatching.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanelsubsumptionMatching.setVisible(true);\n\t\t\t\tpanelMenu.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnsubsumptionMatching.setBounds(193, 383, 175, 49);\n\t\tpanelMenu.add(btnsubsumptionMatching);\n\n\t\tJButton btnAdvancedMatching = new JButton(\"Equivalence Matching\");\n\t\tbtnAdvancedMatching.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanelEquivalenceMatching.setVisible(true);\n\t\t\t\tpanelMenu.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnAdvancedMatching.setBounds(193, 444, 180, 49);\n\t\tpanelMenu.add(btnAdvancedMatching);\n\t\t\n\t\tJLabel lblOntologyMatching = new JLabel(\"COMPOSE Ontology Matching Framework\");\n\t\tlblOntologyMatching.setFont(new Font(\"Lucida Grande\", Font.BOLD, 16));\n\t\tlblOntologyMatching.setBounds(193, 43, 430, 16);\n\t\tpanelMenu.add(lblOntologyMatching);\n\t\t\n\t\tJLabel lblTheComposeOntology = new JLabel(\"The COMPOSE Ontology Matching Framework... \");\n\t\tlblTheComposeOntology.setBounds(193, 83, 532, 16);\n\t\tpanelMenu.add(lblTheComposeOntology);\n\t\t\n\t\tJLabel lblMenu = new JLabel(\"Matching\");\n\t\tlblMenu.setBounds(193, 161, 128, 16);\n\t\tpanelMenu.add(lblMenu);\n\t\t\n\t\tJLabel lblEvaluation = new JLabel(\"Evaluation\");\n\t\tlblEvaluation.setBounds(193, 346, 175, 16);\n\t\tpanelMenu.add(lblEvaluation);\n\n\t\tJButton btnCancel = new JButton(\"Main menu\");\n\t\tbtnCancel.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanelsubsumptionMatching.setVisible(false);\n\t\t\t\tpanelMenu.setVisible(true);\n\t\t\t}\n\t\t});\n\n\t\tbtnCancel.setBounds(344, 622, 133, 29);\n\t\tpanelsubsumptionMatching.add(btnCancel);\n\n\t\tJButton btnUploadOntology1 = new JButton(\"Upload ontology 1\");\n\t\tbtnUploadOntology1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnUploadOntology1.setBackground(Color.LIGHT_GRAY);\n\t\tbtnUploadOntology1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tOpenFile of1 = new OpenFile();\n\n\t\t\t\ttry {\n\t\t\t\t\tontoFile1 = of1.getOntoFile1();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tlblOntology1.setText(StringUtilities.stripPath(ontoFile1.toString()));\n\n\t\t\t}\n\t\t});\n\t\tbtnUploadOntology1.setBounds(6, 34, 169, 29);\n\t\tpanelsubsumptionMatching.add(btnUploadOntology1);\n\n\t\tJButton btnUploadOntology2 = new JButton(\"Upload ontology 2\");\n\t\tbtnUploadOntology2.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnUploadOntology2.setBackground(Color.LIGHT_GRAY);\n\t\tbtnUploadOntology2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenFile of2 = new OpenFile();\n\n\t\t\t\ttry {\n\t\t\t\t\tontoFile2 = of2.getOntoFile1();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tlblOntology2.setText(StringUtilities.stripPath(ontoFile2.toString()));\n\n\t\t\t}\n\t\t});\n\t\tbtnUploadOntology2.setBounds(6, 66, 169, 29);\n\t\tpanelsubsumptionMatching.add(btnUploadOntology2);\n\n\t\tJButton btnUploadReferenceAlignment = new JButton(\"Upload reference alignment\");\n\t\tbtnUploadReferenceAlignment.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnUploadOntology2.setBackground(Color.LIGHT_GRAY);\n\t\tbtnUploadReferenceAlignment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenFile of3 = new OpenFile();\n\n\t\t\t\ttry {\n\t\t\t\t\trefAlignFile = of3.getFile();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t\tlblRefAlignment.setText(StringUtilities.stripPath(refAlignFile.toString()));\n\n\t\t\t}\n\t\t});\n\t\tbtnUploadReferenceAlignment.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnUploadReferenceAlignment.setBackground(Color.LIGHT_GRAY);\n\t\tbtnUploadReferenceAlignment.setBounds(6, 98, 169, 29);\n\t\tpanelsubsumptionMatching.add(btnUploadReferenceAlignment);\n\n\t\tJButton btnComputeProfiles = new JButton(\"Compute ontology profiles\");\n\t\tbtnComputeProfiles.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnComputeProfiles.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t//compute profile metrics for ontology 1\n\n\t\t\t\t//Compound Ratio\n\t\t\t\tdouble cr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tcr1 = round(utilities.OntologyOperations.getNumClassCompounds(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\n\t\t\t\t//Inheritance Richness\n\t\t\t\tdouble ir1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tir1 = round(OntologyProfiler.computeInheritanceRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Relationship Richness\n\t\t\t\tdouble rr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\trr1 = round(OntologyProfiler.computeRelationshipRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//WordNet Coverage\n\t\t\t\tdouble wc1 = 0;\n\t\t\t\ttry {\n\t\t\t\t\twc1 = round(OntologyProfiler.computeWordNetCoverageComp(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//Synonym Richness\n\t\t\t\tdouble sr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tsr1 = round(utilities.OntologyOperations.getSynonymRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Hyponym Richness\n\t\t\t\tdouble hr1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\thr1 = round(utilities.OntologyOperations.getHyponymRichness(ontoFile1), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Domain Diversity\n\t\t\t\tdouble dd1 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdd1 = round(utilities.OntologyOperations.domainDiversity(ontoFile1), 2);\n\t\t\t\t\t} catch (FileNotFoundException | JWNLException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\tString ontology1Name = StringUtilities.stripPath(ontoFile1.toString());\n\t\t\t\tsbOntologyProfile1.append(\"- \" + ontology1Name + \" -\");\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Compound Ratio: \" + String.valueOf(cr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Inheritance Richness: \" + String.valueOf(ir1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Relationship Richness: \" + String.valueOf(rr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"WordNet Coverage: \" + String.valueOf(wc1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Synonym Richness: \" + String.valueOf(sr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Hyponym Richness: \" + String.valueOf(hr1));\n\t\t\t\tsbOntologyProfile1.append(\"\\n\");\n\t\t\t\tsbOntologyProfile1.append(\"Domain Diversity: \" + String.valueOf(dd1));\n\n\n\t\t\t\ttextAreaOntology1Profile.setText(sbOntologyProfile1.toString());\n\n\t\t\t\t//compute profile metrics for ontology 2\n\n\t\t\t\t//Compound Ratio\n\t\t\t\tdouble cr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tcr2 = round(utilities.OntologyOperations.getNumClassCompounds(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\n\t\t\t\t//Inheritance Richness\n\t\t\t\tdouble ir2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tir2 = round(OntologyProfiler.computeInheritanceRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Relationship Richness\n\t\t\t\tdouble rr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\trr2 = round(OntologyProfiler.computeRelationshipRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//WordNet Coverage\n\t\t\t\tdouble wc2 = 0;\n\t\t\t\ttry {\n\t\t\t\t\twc2 = round(OntologyProfiler.computeWordNetCoverageComp(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//Synonym Richness\n\t\t\t\tdouble sr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\tsr2 = round(utilities.OntologyOperations.getSynonymRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Hyponym Richness\n\t\t\t\tdouble hr2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\thr2 = round(utilities.OntologyOperations.getHyponymRichness(ontoFile2), 2);\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\t//Domain Diversity\n\t\t\t\tdouble dd2 = 0;\n\n\t\t\t\ttry {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdd2 = round(utilities.OntologyOperations.domainDiversity(ontoFile2), 2);\n\t\t\t\t\t} catch (FileNotFoundException | JWNLException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (OWLOntologyCreationException e2) {\n\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t\tString ontology2Name = StringUtilities.stripPath(ontoFile2.toString());\n\t\t\t\tsbOntologyProfile2.append(\"- \" + ontology2Name + \" -\");\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Compound Ratio: \" + String.valueOf(cr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Inheritance Richness: \" + String.valueOf(ir2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Relationship Richness: \" + String.valueOf(rr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"WordNet Coverage: \" + String.valueOf(wc2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Synonym Richness: \" + String.valueOf(sr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Hyponym Richness: \" + String.valueOf(hr2));\n\t\t\t\tsbOntologyProfile2.append(\"\\n\");\n\t\t\t\tsbOntologyProfile2.append(\"Domain Diversity: \" + String.valueOf(dd2));\n\n\n\t\t\t\ttextAreaOntology2Profile.setText(sbOntologyProfile2.toString());\n\n\t\t\t\t//add combined values to the graph for CR, IR, RR, WC and create series for Terminological Profile, Structural Profile and Lexical Profile\n\t\t\t\tdouble combinedCR = (cr1 + cr2) / 2;\n\n\t\t\t\t//must normalize IR somehow...\n\t\t\t\t//double combinedIR = (ir1 + ir2) / 2;\n\t\t\t\tdouble combinedRR = (rr1 + rr2) / 2;\n\t\t\t\tdouble combinedIRAndRR = (0.45 + combinedRR) / 2;\n\t\t\t\tdouble combinedWC = (wc1 + wc2) / 2;\n\n\t\t\t\tfinal DefaultCategoryDataset combinedProfileDataset =\n\t\t\t\t\t\tnew DefaultCategoryDataset();\n\n\t\t\t\tcombinedProfileDataset.addValue(combinedCR, \"Terminological Profile\", \"CR\");\n\t\t\t\tcombinedProfileDataset.addValue(combinedIRAndRR, \"Structural Profile\", \"IR\");\n\t\t\t\t//combinedProfileDataset.addValue(combinedRR, \"Structural Profile\", \"RR\");\n\t\t\t\tcombinedProfileDataset.addValue(combinedWC, \"Lexical Profile\", \"WC\");\n\n\t\t\t\tJFreeChart combinedProfileChart = ChartFactory.createBarChart(\"\", \"\", \"\", combinedProfileDataset, PlotOrientation.VERTICAL, true, false, false);\n\t\t\t\tcombinedProfileChart.setBorderVisible(false);\n\t\t\t\tcombinedProfileChart.getLegend().setFrame(BlockBorder.NONE);\n\t\t\t\tCategoryPlot combinedProfilePlot = combinedProfileChart.getCategoryPlot();\n\t\t\t\tcombinedProfilePlot.setBackgroundPaint(Color.white);\n\n\t\t\t\tCategoryAxis combinedProfileAxis = combinedProfilePlot.getDomainAxis();\n\t\t\t\tcombinedProfileAxis.setLowerMargin(0.1);\n\t\t\t\tcombinedProfileAxis.setUpperMargin(0.1);\n\t\t\t\tcombinedProfileAxis.setCategoryMargin(0.1);\n\n\n\t\t\t\tChartPanel chartPanelCombinedOntologyProfiles = new ChartPanel((JFreeChart) combinedProfileChart);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setBorder(null);\n\n\t\t\t\tchartPanelCombinedOntologyProfiles.setBackground(Color.WHITE);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setMaximumDrawHeight(224);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setMaximumDrawWidth(346);\n\t\t\t\tcombinedProfilespanel.add(chartPanelCombinedOntologyProfiles);\n\t\t\t\tDimension dim = new Dimension();\n\t\t\t\tdim.setSize(346, 224);\n\t\t\t\tchartPanelCombinedOntologyProfiles.setPreferredSize(dim);\n\t\t\t\tcombinedProfilespanel.setVisible(true);\n\n\n\t\t\t}\n\t\t});\n\t\tbtnComputeProfiles.setBounds(310, 34, 194, 29);\n\t\tpanelsubsumptionMatching.add(btnComputeProfiles);\n\n\n\n\t\t//checkboxes\n\t\tfinal JCheckBox checkBoxCompoundMatcher = new JCheckBox(\"Compound Matcher\");\n\t\tcheckBoxCompoundMatcher.setBounds(6, 171, 257, 23);\n\t\tpanelsubsumptionMatching.add(checkBoxCompoundMatcher);\n\n\t\tfinal JCheckBox checkBoxParentMatcher = new JCheckBox(\"Parent Matcher\");\n\t\tcheckBoxParentMatcher.setBounds(6, 218, 218, 23);\n\t\tpanelsubsumptionMatching.add(checkBoxParentMatcher);\n\n\t\tfinal JCheckBox checkBoxAncestorMatcher = new JCheckBox(\"Ancestor Matcher\");\n\t\tcheckBoxAncestorMatcher.setBounds(6, 268, 176, 23);\n\t\tpanelsubsumptionMatching.add(checkBoxAncestorMatcher);\n\n\t\tfinal JCheckBox checkBoxWordNetMatcher = new JCheckBox(\"WordNet Matcher\");\n\t\tcheckBoxWordNetMatcher.setBounds(6, 318, 196, 23);\n\t\tpanelsubsumptionMatching.add(checkBoxWordNetMatcher);\n\n\n\n\t\tJButton btnEvaluate = new JButton(\"Evaluate\");\n\t\tbtnEvaluate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tbtnEvaluate.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t//compound matcher\n\t\t\t\tif (checkBoxCompoundMatcher.isSelected()) {\n\n\t\t\t\t\tAlignment a = new CompoundMatcher();\n\t\t\t\t\tthreshold = (double)sliderCompoundMatcher.getValue()/100;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tparams = new Properties();\n\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\t((AlignmentProcess) a).align((Alignment)null, params);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\t\n\n\n\t\t\t\t\tcompoundAlignmentFileName = \"./files/GUITest/alignments/Compound.rdf\";\n\n\t\t\t\t\toutputAlignment = new File(compoundAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment compounddAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcompounddAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcompounddAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\t\t\t\t\t//check domain constraint\n\t\t\t\t\tif (checkBoxSameDomainConstraintMatcher.isSelected()) {\n\n\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\tFile computedAlignment = new File(compoundAlignmentFileName);\n\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//store the new alignment\n\t\t\t\t\t\t//File outputAlignment = new File(\"./files/experiment_eswc17/alignments/biblio-bibo/web-intelligence-17-weightedSequentialCombination/structure-lexical-string.rdf\");\n\n\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(compoundAlignmentFileName)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\t\t\t\t\t\t/*\t\t\t\t\t\tbtnDownloadAlignment.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t\t// Download file\n\t\t\t\t\t\t URL url = null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\turl = new URL(\"http://pc.stiga.com/CNWS/IDB/Assets/Streamer.aspx?authenticationToken=AUTH21B9C67F25154B98BE13489CE6B28E6720150120105740&workgroupGUID=16B3494E-0D80-458E-AF56-9A6C3CC4A2EF&assetGUID=BCF79526-D7FD-4685-8576-4CC37B10E7E3\");\n\t\t\t\t\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t File f = new File(\"\");\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\torg.apache.commons.io.FileUtils.copyURLToFile(url, f);\n\t\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});*/\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluate\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+compoundAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble compoundFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble compoundPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble compoundRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tfinal String precision = \"Precision\"; \n\t\t\t\t\tfinal String recall = \"Recall\"; \n\t\t\t\t\tfinal String fMeasure = \"F-Measure\";\n\n\t\t\t\t\tdataset.addValue( compoundPrecisionValue , \"Compound\" , precision ); \n\t\t\t\t\tdataset.addValue( compoundRecallValue , \"Compound\" , recall ); \n\t\t\t\t\tdataset.addValue( compoundFMeasureValue , \"Compound\" , fMeasure ); \n\n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Compound:\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + compoundFMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + compoundPrecisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + compoundRecallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t}\n\n\t\t\t\t//parent matcher (using Neo4J)\n\t\t\t\tif (checkBoxParentMatcher.isSelected()) {\n\t\t\t\t\t//run parent matcher with the two uploaded ontologies\n\t\t\t\t\t//create a new Neo4J database for each matching using a timestamp\n\t\t\t\t\t//return number of milliseconds since January 1, 1970, 00:00:00 GMT\n\t\t\t\t\tTimestamp timestamp = new Timestamp(System.currentTimeMillis());\n\t\t\t\t\tString dbName = String.valueOf(timestamp.getTime());\n\n\t\t\t\t\t//TO-DO: SHould let the user select folder using an upload button\n\t\t\t\t\tFile dbFile = new File(\"/Users/audunvennesland/Documents/PhD/Development/Neo4J/\" + dbName);\n\n\t\t\t\t\tGraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase(dbFile);\n\t\t\t\t\tregisterShutdownHook(db);\n\n\n\t\t\t\t\tString ontologyParameter1 = StringUtilities.stripPath(ontoFile1.toString());\n\t\t\t\t\tString ontologyParameter2 = StringUtilities.stripPath(ontoFile2.toString());\t\t\t\t\t\n\n\t\t\t\t\t//create new graphs\n\t\t\t\t\tmanager = OWLManager.createOWLOntologyManager();\n\t\t\t\t\ttry {\n\t\t\t\t\t\to1 = manager.loadOntologyFromOntologyDocument(ontoFile1);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\to2 = manager.loadOntologyFromOntologyDocument(ontoFile2);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlabelO1 = DynamicLabel.label( ontologyParameter1 );\n\t\t\t\t\tlabelO2 = DynamicLabel.label( ontologyParameter2 );\n\n\t\t\t\t\tcreator = new Graph(db);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcreator.createOntologyGraph(o1, labelO1);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\t\t// FIXME Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcreator.createOntologyGraph(o2, labelO2);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\t\t// FIXME Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//perform the matching\n\t\t\t\t\ta = new ParentMatcher(ontologyParameter1,ontologyParameter2, db);\n\t\t\t\t\tthreshold = (double)sliderParentMatcher.getValue()/100;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tparams = new Properties();\n\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.align((Alignment)null, params);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\t\n\n\t\t\t\t\tparentMatcherAlignmentFileName = \"./files/GUITest/alignments/ParentMatcher.rdf\";\n\n\t\t\t\t\toutputAlignment = new File(parentMatcherAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment parentMatcherAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparentMatcherAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparentMatcherAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\t\t\t\t\t//check domain constraint\n\t\t\t\t\tif (checkBoxSameDomainConstraintMatcher.isSelected()) {\n\n\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\tFile computedAlignment = new File(parentMatcherAlignmentFileName);\n\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(parentMatcherAlignmentFileName)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluate\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+parentMatcherAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble parentMatcherFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble parentMatcherPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble parentMatcherRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tString precision = \"Precision\"; \n\t\t\t\t\tString recall = \"Recall\"; \n\t\t\t\t\tString fMeasure = \"F-Measure\";\n\n\t\t\t\t\tdataset.addValue( parentMatcherPrecisionValue , \"Parent Matcher\" , precision ); \n\t\t\t\t\tdataset.addValue( parentMatcherRecallValue , \"Parent Matcher\" , recall ); \n\t\t\t\t\tdataset.addValue( parentMatcherFMeasureValue , \"Parent Matcher\" , fMeasure ); \n\n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Parent Matcher: \\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + parentMatcherFMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + parentMatcherPrecisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + parentMatcherRecallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\n\t\t\t\t}\n\t\t\t\tif (checkBoxAncestorMatcher.isSelected()) {\n\n\t\t\t\t\t//create a new Neo4J database for each matching using a timestamp\n\t\t\t\t\t//return number of milliseconds since January 1, 1970, 00:00:00 GMT\n\t\t\t\t\tTimestamp timestamp = new Timestamp(System.currentTimeMillis());\n\t\t\t\t\tString dbName = String.valueOf(timestamp.getTime());\n\n\t\t\t\t\t//TO-DO: should let the user select folder using an upload button\n\t\t\t\t\tFile dbFile = new File(\"/Users/audunvennesland/Documents/PhD/Development/Neo4J/\" + dbName);\n\n\t\t\t\t\tGraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase(dbFile);\n\t\t\t\t\tregisterShutdownHook(db);\n\n\t\t\t\t\tString ontologyParameter1 = StringUtilities.stripPath(ontoFile1.toString());\n\t\t\t\t\tString ontologyParameter2 = StringUtilities.stripPath(ontoFile2.toString());\n\n\t\t\t\t\t//create new graphs\n\t\t\t\t\tmanager = OWLManager.createOWLOntologyManager();\n\t\t\t\t\ttry {\n\t\t\t\t\t\to1 = manager.loadOntologyFromOntologyDocument(ontoFile1);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\to2 = manager.loadOntologyFromOntologyDocument(ontoFile2);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlabelO1 = DynamicLabel.label( ontologyParameter1 );\n\t\t\t\t\tlabelO2 = DynamicLabel.label( ontologyParameter2 );\n\n\t\t\t\t\tcreator = new Graph(db);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcreator.createOntologyGraph(o1, labelO1);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcreator.createOntologyGraph(o2, labelO2);\n\t\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//perform the matching\n\t\t\t\t\ta = new AncestorMatcher(ontologyParameter1,ontologyParameter2, db);\n\t\t\t\t\tthreshold = (double)sliderAncestorMatcher.getValue()/100;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tparams = new Properties();\n\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.align((Alignment)null, params);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\t\n\n\t\t\t\t\tancestorMatcherAlignmentFileName = \"./files/GUITest/alignments/AncestorMatcher.rdf\";\n\n\t\t\t\t\toutputAlignment = new File(ancestorMatcherAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment ancestorMatcherAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tancestorMatcherAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tancestorMatcherAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\t\t\t\t\t//check domain constraint\n\t\t\t\t\tif (checkBoxSameDomainConstraintMatcher.isSelected()) {\n\n\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\tFile computedAlignment = new File(ancestorMatcherAlignmentFileName);\n\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(ancestorMatcherAlignmentFileName)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluate\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+ancestorMatcherAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble ancestorMatcherFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble ancestorMatcherPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble ancestorMatcherRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tString precision = \"Precision\"; \n\t\t\t\t\tString recall = \"Recall\"; \n\t\t\t\t\tString fMeasure = \"F-Measure\";\n\n\t\t\t\t\tfinal DefaultCategoryDataset dataset = \n\t\t\t\t\t\t\tnew DefaultCategoryDataset( ); \n\n\t\t\t\t\tdataset.addValue( ancestorMatcherPrecisionValue , \"Ancestor Matcher\" , precision ); \n\t\t\t\t\tdataset.addValue( ancestorMatcherRecallValue , \"Ancestor Matcher\" , recall ); \n\t\t\t\t\tdataset.addValue( ancestorMatcherFMeasureValue , \"Ancestor Matcher\" , fMeasure ); \n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Ancestor Matcher: \\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + ancestorMatcherFMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + ancestorMatcherPrecisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + ancestorMatcherRecallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t}\n\t\t\t\tif (checkBoxWordNetMatcher.isSelected()) {\n\n\t\t\t\t\t//perform the matching\n\t\t\t\t\ta = new LexicalSubsumptionMatcher();\n\t\t\t\t\tthreshold = (double)sliderWNMatcher.getValue()/100;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.init(ontoFile1.toURI(), ontoFile2.toURI());\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tparams = new Properties();\n\t\t\t\t\tparams.setProperty(\"\", \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.align((Alignment)null, params);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\t\n\n\t\t\t\t\twordNetMatcherAlignmentFileName = \"./files/GUITest/alignments/WordNetMatcher.rdf\";\n\n\t\t\t\t\toutputAlignment = new File(wordNetMatcherAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment wordNetMatcherAlignment = (BasicAlignment)(a.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twordNetMatcherAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twordNetMatcherAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\t\t\t\t\t//check domain constraint\n\t\t\t\t\tif (checkBoxSameDomainConstraintMatcher.isSelected()) {\n\n\t\t\t\t\t\t//get the alignment\n\t\t\t\t\t\tFile computedAlignment = new File(wordNetMatcherAlignmentFileName);\n\t\t\t\t\t\tAlignmentParser parser = new AlignmentParser();\n\t\t\t\t\t\tBasicAlignment alignmentDomainConstraint = null;\n\n\t\t\t\t\t\tString concept1 = null;\n\t\t\t\t\t\tString concept2 = null;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint = (BasicAlignment)parser.parse(computedAlignment.toURI().toString());\n\n\t\t\t\t\t\t\tfor (Cell c : alignmentDomainConstraint) {\n\t\t\t\t\t\t\t\tconcept1 = c.getObject1AsURI().getFragment();\n\t\t\t\t\t\t\t\tconcept2 = c.getObject2AsURI().getFragment();\n\t\t\t\t\t\t\t\tif (WNDomain.sameDomain(concept1, concept2)) {\n\t\t\t\t\t\t\t\t\t//increase by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.increaseCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t//reduce by 10 percent\n\t\t\t\t\t\t\t\t\tc.setStrength(AlignmentOperations.reduceCellStrength(c.getStrength(), 10.0));\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException | FileNotFoundException | JWNLException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tPrintWriter writer = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\t\tnew FileWriter(wordNetMatcherAlignmentFileName)), true);\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tAlignmentVisitor renderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\talignmentDomainConstraint.render(renderer);\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\twriter.flush();\n\t\t\t\t\t\twriter.close();\n\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluate\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+wordNetMatcherAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble wordNetMatcherFMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble wordNetMatcherPrecisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble wordNetMatcherRecallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tString precision = \"Precision\"; \n\t\t\t\t\tString recall = \"Recall\"; \n\t\t\t\t\tString fMeasure = \"F-Measure\";\n\n\n\t\t\t\t\tdataset.addValue( wordNetMatcherPrecisionValue , \"WordNet\" , precision ); \n\t\t\t\t\tdataset.addValue( wordNetMatcherRecallValue , \"WordNet\" , recall ); \n\t\t\t\t\tdataset.addValue( wordNetMatcherFMeasureValue , \"WordNet\" , fMeasure ); \n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"WordNet Matcher: \\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + wordNetMatcherFMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + wordNetMatcherPrecisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + wordNetMatcherRecallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//ALIGNMENT COMBINATION METHODS\n\n\t\t\t\tif (chckbxWeightedSequentialComposition.isSelected()) {\n\n\t\t\t\t\tAlignment computedAlignment = null;\n\t\t\t\t\tString weightedSequentialCompositionAlignmentFileName = \"./files/GUITest/alignments/WeightedSequentialComposition.rdf\";\n\t\t\t\t\t\n\t\t\t\t\tArrayList<Alignment> alignments = new ArrayList<Alignment>();\n\n\t\t\t\t\t//get the alignment files involved\n\t\t\t\t\tif (checkBoxCompoundMatcher.isSelected()) {\t\n\t\t\t\t\t\tAlignment cAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcAlignment = aparser.parse(new URI(\"file:\"+compoundAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(cAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxParentMatcher.isSelected()) {\n\t\t\t\t\t\tAlignment parAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tparAlignment = aparser.parse(new URI(\"file:\"+parentMatcherAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(parAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxAncestorMatcher.isSelected()) {\n\t\t\t\t\t\tAlignment ancAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tancAlignment = aparser.parse(new URI(\"file:\"+ancestorMatcherAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(ancAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxWordNetMatcher.isSelected()) {\n\t\t\t\t\t\tAlignment wnAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twnAlignment = aparser.parse(new URI(\"file:\"+wordNetMatcherAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(wnAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcomputedAlignment = ParallelCombination.simpleVote(alignments);\n\t\t\t\t\t} catch (AlignmentException e2) {\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\n\n\t\t\t\t\toutputAlignment = new File(weightedSequentialCompositionAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment wscAlignment = (BasicAlignment)(computedAlignment.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twscAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twscAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\n\n\n\t\t\t\t\t//evaluate computed alignment\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+weightedSequentialCompositionAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble fMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble precisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble recallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tString precision = \"Precision\"; \n\t\t\t\t\tString recall = \"Recall\"; \n\t\t\t\t\tString fMeasure = \"F-Measure\";\n\n\t\t\t\t\tdataset.addValue( precisionValue , \"WSC\" , precision ); \n\t\t\t\t\tdataset.addValue( recallValue , \"WSC\" , recall ); \n\t\t\t\t\tdataset.addValue( fMeasureValue , \"WSC\" , fMeasure ); \n\n\t\t\t\t\t/*\t\t\t\t\t//add chart\n\t\t\t\t\tJFreeChart chart = ChartFactory.createBarChart(\"\", \"\", \"\", dataset, PlotOrientation.VERTICAL, true, false, false);\n\t\t\t\t\tchart.setBorderVisible(true);\n\t\t\t\t\tCategoryPlot cp = chart.getCategoryPlot();\n\t\t\t\t\tcp.setBackgroundPaint(Color.white);\n\n\t\t\t\t\tChartPanel matchingResultsChartPanel = new ChartPanel((JFreeChart) chart);\n\t\t\t\t\tmatchingResultsChartPanel.setBorder(null);\n\t\t\t\t\tDimension matchingResultsDimension = new Dimension();\n\t\t\t\t\tmatchingResultsDimension.setSize(362, 224);\n\t\t\t\t\tmatchingResultsChartPanel.setPreferredSize(matchingResultsDimension);\n\t\t\t\t\tgraphJPanel.add(matchingResultsChartPanel);\n\t\t\t\t\tgraphJPanel.setVisible(true); */\n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Weighted Sequential: \\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + fMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + precisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + recallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t}\n\n\t\t\t\tif (chckbxParallelSimpleVote.isSelected()) {\n\n\t\t\t\t\tAlignment computedAlignment = null;\n\t\t\t\t\tString simpleVoteCompositionAlignmentFileName = \"./files/GUITest/alignments/SimpleVoteComposition.rdf\";\n\t\t\t\t\t//Set<Alignment> alignments = new HashSet<Alignment>();\n\t\t\t\t\tArrayList<Alignment> alignments = new ArrayList<Alignment>();\n\n\n\t\t\t\t\t//get the alignment files involved\n\t\t\t\t\tif (checkBoxCompoundMatcher.isSelected()) {\t\n\t\t\t\t\t\tAlignment cAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcAlignment = aparser.parse(new URI(\"file:\"+compoundAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(cAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxParentMatcher.isSelected()) {\n\t\t\t\t\t\tAlignment parAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tparAlignment = aparser.parse(new URI(\"file:\"+parentMatcherAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(parAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxAncestorMatcher.isSelected()) {\n\t\t\t\t\t\tAlignment ancAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tancAlignment = aparser.parse(new URI(\"file:\"+ancestorMatcherAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(ancAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxWordNetMatcher.isSelected()) {\n\t\t\t\t\t\tAlignment wnAlignment = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twnAlignment = aparser.parse(new URI(\"file:\"+wordNetMatcherAlignmentFileName));\n\t\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\talignments.add(wnAlignment);\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcomputedAlignment = ParallelCombination.simpleVote(alignments);\n\t\t\t\t\t} catch (AlignmentException e2) {\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\n\n\t\t\t\t\toutputAlignment = new File(simpleVoteCompositionAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment svAlignment = (BasicAlignment)(computedAlignment.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsvAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsvAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\n\n\n\t\t\t\t\t//evaluate computed alignment\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+simpleVoteCompositionAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble fMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble precisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble recallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tString precision = \"Precision\"; \n\t\t\t\t\tString recall = \"Recall\"; \n\t\t\t\t\tString fMeasure = \"F-Measure\";\n\n\t\t\t\t\tdataset.addValue( precisionValue , \"Simple Vote\" , precision ); \n\t\t\t\t\tdataset.addValue( recallValue , \"Simple Vote\" , recall ); \n\t\t\t\t\tdataset.addValue( fMeasureValue , \"Simple Vote\" , fMeasure ); \n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Simple Vote: \\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + fMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + precisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + recallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\t\t\t\t}\n\n\t\t\t\tif (chckbxParallelPrioritised.isSelected()) {\n\n\t\t\t\t\t//get the priorities\n\t\t\t\t\tint compoundPriority = Integer.parseInt(textFieldCompoundMatcherPriority.getText());\n\t\t\t\t\tint parentMatcherPriority = Integer.parseInt(textFieldParentMatcherPriority.getText());\n\t\t\t\t\tint ancestorMatcherPriority = Integer.parseInt(textFieldAncestorMatcherPriority.getText());\n\t\t\t\t\tint wordNetMatcherPriority = Integer.parseInt(textFieldWordNetMatcherPriority.getText());\n\n\t\t\t\t\tAlignment computedAlignment = null;\n\t\t\t\t\tString parallelPrioritisedCompositionAlignmentFileName = \"./files/GUITest/alignments/ParallelPriorityComposition.rdf\";\n\n\t\t\t\t\tArrayList<File> alignmentFiles = new ArrayList<File>();\n\n\t\t\t\t\t//get the alignment files involved\n\t\t\t\t\tif (checkBoxCompoundMatcher.isSelected()) {\n\t\t\t\t\t\tFile f = new File(compoundAlignmentFileName);\n\t\t\t\t\t\talignmentFiles.add(f);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxParentMatcher.isSelected()) {\n\t\t\t\t\t\tFile f = new File(parentMatcherAlignmentFileName);\n\t\t\t\t\t\talignmentFiles.add(f);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxAncestorMatcher.isSelected()) {\n\t\t\t\t\t\tFile f = new File(ancestorMatcherAlignmentFileName);\n\t\t\t\t\t\talignmentFiles.add(f);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (checkBoxWordNetMatcher.isSelected()) {\n\t\t\t\t\t\tFile f = new File(wordNetMatcherAlignmentFileName);\n\t\t\t\t\t\talignmentFiles.add(f);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (alignmentFiles.size() == 3) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (compoundPriority == 1) {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority3(alignmentFiles.get(0), alignmentFiles.get(1), alignmentFiles.get(2));\n\t\t\t\t\t\t\t} else if (parentMatcherPriority == 1) {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority3(alignmentFiles.get(1), alignmentFiles.get(0), alignmentFiles.get(2));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority3(alignmentFiles.get(2), alignmentFiles.get(0), alignmentFiles.get(1));\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (compoundPriority == 1) {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority4(alignmentFiles.get(0), alignmentFiles.get(1), alignmentFiles.get(2), alignmentFiles.get(3));\n\t\t\t\t\t\t\t} else if (parentMatcherPriority == 1) {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority4(alignmentFiles.get(1), alignmentFiles.get(0), alignmentFiles.get(2), alignmentFiles.get(3));\n\t\t\t\t\t\t\t} else if (ancestorMatcherPriority == 1) {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority4(alignmentFiles.get(2), alignmentFiles.get(0), alignmentFiles.get(1), alignmentFiles.get(3));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcomputedAlignment = ParallelCombination.completeMatchWithPriority4(alignmentFiles.get(3), alignmentFiles.get(0), alignmentFiles.get(1), alignmentFiles.get(2));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\toutputAlignment = new File(parallelPrioritisedCompositionAlignmentFileName);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriter = new PrintWriter(\n\t\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\t\tnew FileWriter(outputAlignment)), 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\trenderer = new RDFRendererVisitor(writer);\n\n\t\t\t\t\tBasicAlignment ppAlignment = (BasicAlignment)(computedAlignment.clone());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tppAlignment.cut(threshold);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tppAlignment.render(renderer);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\twriter.flush();\n\t\t\t\t\twriter.close();\n\n\n\n\n\t\t\t\t\t//evaluate computed alignment\n\t\t\t\t\taparser = new AlignmentParser(0);\n\n\t\t\t\t\tAlignment referenceAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\treferenceAlignment = aparser.parse(new URI(\"file:\"+refAlignFile));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\tAlignment evaluatedAlignment = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevaluatedAlignment = aparser.parse(new URI(\"file:\"+parallelPrioritisedCompositionAlignmentFileName));\n\t\t\t\t\t} catch (AlignmentException | URISyntaxException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tProperties p = new Properties();\n\n\t\t\t\t\tPRecEvaluator eval = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval = new PRecEvaluator(referenceAlignment, evaluatedAlignment);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\teval.eval(p);\n\t\t\t\t\t} catch (AlignmentException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t//evaluation\n\t\t\t\t\tdouble fMeasureValue = round(Double.parseDouble(eval.getResults().getProperty(\"fmeasure\").toString()),2);\n\t\t\t\t\tdouble precisionValue = round(Double.parseDouble(eval.getResults().getProperty(\"precision\").toString()), 2);\n\t\t\t\t\tdouble recallValue = round(Double.parseDouble(eval.getResults().getProperty(\"recall\").toString()), 2);\n\n\t\t\t\t\tString precision = \"Precision\"; \n\t\t\t\t\tString recall = \"Recall\"; \n\t\t\t\t\tString fMeasure = \"F-Measure\";\n\n\t\t\t\t\tdataset.addValue( precisionValue , \"Priority\" , precision ); \n\t\t\t\t\tdataset.addValue( recallValue , \"Priority\" , recall ); \n\t\t\t\t\tdataset.addValue( fMeasureValue , \"Priority\" , fMeasure ); \n\n\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Parallel Priority: \\n\");\n\t\t\t\t\tsbMatchingResults.append(\"F-measure: \" + fMeasureValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Precision: \" + precisionValue);\n\t\t\t\t\tsbMatchingResults.append(\"\\n\");\n\t\t\t\t\tsbMatchingResults.append(\"Recall: \" + recallValue);\n\n\t\t\t\t\tmatchingResultsPane.setText(sbMatchingResults.toString());\n\n\n\n\n\t\t\t\t}\n\n\t\t\t\t//add chart\n\t\t\t\tJFreeChart chart = ChartFactory.createBarChart(\"\", \"\", \"\", dataset, PlotOrientation.VERTICAL, true, false, false);\n\t\t\t\tchart.setBorderVisible(true);\n\t\t\t\tCategoryPlot cp = chart.getCategoryPlot();\n\t\t\t\tcp.setBackgroundPaint(Color.white);\n\n\t\t\t\tChartPanel matchingResultsChartPanel = new ChartPanel((JFreeChart) chart);\n\t\t\t\tmatchingResultsChartPanel.setBorder(null);\n\t\t\t\tDimension matchingResultsDimension = new Dimension();\n\t\t\t\tmatchingResultsDimension.setSize(362, 224);\n\t\t\t\tmatchingResultsChartPanel.setPreferredSize(matchingResultsDimension);\n\t\t\t\tgraphJPanel.add(matchingResultsChartPanel);\n\t\t\t\tgraphJPanel.setVisible(true); \n\n\t\t\t}\n\t\t});\n\n\n\n\n\t\tbtnEvaluate.setToolTipText(\"\");\n\t\tbtnEvaluate.setBounds(6, 623, 153, 29);\n\t\tpanelsubsumptionMatching.add(btnEvaluate);\n\n\n\n\t\t//labels\n\t\tJLabel lblUploadFiles = new JLabel(\"Upload files\");\n\t\tlblUploadFiles.setForeground(Color.RED);\n\t\tlblUploadFiles.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tlblUploadFiles.setBounds(20, 13, 133, 16);\n\t\tpanelsubsumptionMatching.add(lblUploadFiles);\n\n\t\tJLabel matchersLabel = new JLabel(\"Select Matchers\");\n\t\tmatchersLabel.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tmatchersLabel.setForeground(Color.RED);\n\t\tmatchersLabel.setBounds(20, 150, 139, 16);\n\t\tpanelsubsumptionMatching.add(matchersLabel);\n\n\n\t\tJLabel individualProfilesLabel = new JLabel(\"Ontology Profiles \");\n\t\tindividualProfilesLabel.setForeground(Color.RED);\n\t\tindividualProfilesLabel.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tindividualProfilesLabel.setBounds(713, 13, 299, 16);\n\t\tpanelsubsumptionMatching.add(individualProfilesLabel);\n\n\t\tJLabel matchingResultsLabel = new JLabel(\"Evaluation Results\");\n\t\tmatchingResultsLabel.setForeground(Color.RED);\n\t\tmatchingResultsLabel.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tmatchingResultsLabel.setBounds(748, 377, 132, 16);\n\t\tpanelsubsumptionMatching.add(matchingResultsLabel);\n\n\t\tJLabel lblConfidence = new JLabel(\"Choose Confidence threshold\");\n\t\tlblConfidence.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblConfidence.setForeground(Color.RED);\n\t\tlblConfidence.setBounds(197, 150, 218, 16);\n\t\tpanelsubsumptionMatching.add(lblConfidence);\n\n\t\tJLabel labelSameDomainConstraint = new JLabel(\"Enforce same domain constraint\");\n\t\tlabelSameDomainConstraint.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlabelSameDomainConstraint.setToolTipText(\"The \\\"Same Domain Constraint\\\" adds confidence if two concepts from the ontologies being matched are associated with the same WordNet Domain and reduces confidence if they aren´t\");\n\t\tlabelSameDomainConstraint.setForeground(Color.RED);\n\t\tlabelSameDomainConstraint.setBounds(39, 374, 163, 16);\n\t\tpanelsubsumptionMatching.add(labelSameDomainConstraint);\n\n\t\tJLabel lblPriority = new JLabel(\"Set Priority (0 if not included)\");\n\t\tlblPriority.setForeground(Color.RED);\n\t\tlblPriority.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblPriority.setBounds(446, 150, 147, 16);\n\t\tpanelsubsumptionMatching.add(lblPriority);\n\n\n\n\t\tJLabel lblComposition = new JLabel(\"Select Composition \");\n\t\tlblComposition.setForeground(Color.RED);\n\t\tlblComposition.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tlblComposition.setBounds(20, 443, 395, 16);\n\t\tpanelsubsumptionMatching.add(lblComposition);\n\n\n\n\t\tJLabel lblComputeOntologyProfile = new JLabel(\"Compute ontology profile\");\n\t\tlblComputeOntologyProfile.setForeground(Color.RED);\n\t\tlblComputeOntologyProfile.setFont(new Font(\"Lucida Grande\", Font.BOLD, 13));\n\t\tlblComputeOntologyProfile.setBounds(318, 13, 194, 16);\n\t\tpanelsubsumptionMatching.add(lblComputeOntologyProfile);\n\n\t\tJLabel lblConfigureAutomatically = new JLabel(\"Automatic matcher configuration\");\n\t\tlblConfigureAutomatically.setToolTipText(\"The \\\"Same Domain Constraint\\\" adds confidence if two concepts from the ontologies being matched are associated with the same WordNet Domain and reduces confidence if they aren´t\");\n\t\tlblConfigureAutomatically.setForeground(Color.RED);\n\t\tlblConfigureAutomatically.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblConfigureAutomatically.setBounds(340, 74, 182, 16);\n\t\tpanelsubsumptionMatching.add(lblConfigureAutomatically);\n\n\t\tJCheckBox checkBoxConfigureMatchersAutomatically = new JCheckBox(\"\");\n\t\tcheckBoxConfigureMatchersAutomatically.setBounds(310, 70, 37, 23);\n\t\tpanelsubsumptionMatching.add(checkBoxConfigureMatchersAutomatically);\n\n\t\tJLabel lblrequiresMin = new JLabel(\"(Requires min 3 alignments)\");\n\t\tlblrequiresMin.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlblrequiresMin.setForeground(Color.RED);\n\t\tlblrequiresMin.setBounds(259, 472, 194, 16);\n\t\tpanelsubsumptionMatching.add(lblrequiresMin);\n\n\t\tJLabel label = new JLabel(\"(Requires min 3 alignments)\");\n\t\tlabel.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setBounds(259, 503, 194, 16);\n\t\tpanelsubsumptionMatching.add(label);\n\n\t\tJLabel label_1 = new JLabel(\"(Requires min 3 alignments)\");\n\t\tlabel_1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setBounds(259, 537, 194, 16);\n\t\tpanelsubsumptionMatching.add(label_1);\n\n\n\t}", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public UserInterfaceJFrame() {\n initComponents();\n jPanel1.add(new FeatureViewPanel());\n jPanel2.add(new DataVisualizationPanel());\n jPanel3.add(new DataParserPanel());\n }", "public MainFrame() {\n initComponents();\n\n\n }", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "public ExampleJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void initComponents() {\r\n\r\n lbBurro = new javax.swing.JLabel();\r\n canvas1 = new java.awt.Canvas();\r\n canvas2 = new java.awt.Canvas();\r\n jInternalFrame2 = new javax.swing.JInternalFrame();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n Mostra = new javax.swing.JTextPane();\r\n jInternalFrame1 = new javax.swing.JInternalFrame();\r\n jButton5 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n cbMidi = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n jButton3 = new javax.swing.JButton();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n JtmInicial = new javax.swing.JTextField();\r\n jtmFinal = new javax.swing.JTextField();\r\n jButton9 = new javax.swing.JButton();\r\n jpAngulo = new javax.swing.JProgressBar();\r\n jpDistancia = new javax.swing.JProgressBar();\r\n jpVelocidade = new javax.swing.JProgressBar();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n jInternalFrame3 = new javax.swing.JInternalFrame();\r\n jLabel3 = new javax.swing.JLabel();\r\n edTempo = new javax.swing.JTextField();\r\n jLabel5 = new javax.swing.JLabel();\r\n edPos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n edId = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n edDis = new javax.swing.JTextField();\r\n edVel = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n edMTempo = new javax.swing.JTextField();\r\n edMTempo2 = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n edPtGoogle = new javax.swing.JTextField();\r\n jInternalFrame4 = new javax.swing.JInternalFrame();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jSlider1 = new javax.swing.JSlider();\r\n CbMapa = new javax.swing.JCheckBox();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jPanel1 = new javax.swing.JPanel();\r\n GPSGoogle = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem1 = new javax.swing.JMenuItem();\r\n jMenuItem2 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenu3 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"HAPAX - GPSMIDI Conectado ao Servidor ***\");\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n setFocusTraversalPolicyProvider(true);\r\n setFocusable(false);\r\n setForeground(java.awt.Color.white);\r\n\r\n lbBurro.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n lbBurro.setForeground(new java.awt.Color(255, 0, 51));\r\n lbBurro.setText(\"HAPAX GPS MIDI Client - Gerador de Eventos MIDI - GPS\");\r\n\r\n canvas1.setBackground(new java.awt.Color(255, 255, 51));\r\n canvas1.setForeground(java.awt.Color.black);\r\n canvas1.setVisible(false);\r\n\r\n jInternalFrame2.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame2.setTitle(\"Server\");\r\n jInternalFrame2.setMinimumSize(new java.awt.Dimension(86, 35));\r\n jInternalFrame2.setOpaque(true);\r\n jInternalFrame2.setRequestFocusEnabled(false);\r\n jInternalFrame2.setVisible(true);\r\n\r\n Mostra.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n Mostra.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\r\n Mostra.setFocusCycleRoot(false);\r\n Mostra.setRequestFocusEnabled(false);\r\n jScrollPane1.setViewportView(Mostra);\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame2Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame2.getContentPane());\r\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\r\n jInternalFrame2Layout.setHorizontalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE)\r\n );\r\n jInternalFrame2Layout.setVerticalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\r\n );\r\n\r\n jInternalFrame1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\r\n jInternalFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame1.setIconifiable(true);\r\n jInternalFrame1.setResizable(true);\r\n jInternalFrame1.setTitle(\"MIDI\");\r\n jInternalFrame1.setLayer(1);\r\n jInternalFrame1.setVisible(true);\r\n jInternalFrame1.addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\r\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameOpened(evt);\r\n }\r\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameIconified(evt);\r\n }\r\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n });\r\n\r\n jButton5.setText(\"SC_A_80\");\r\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton5MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton7.setText(\"SC_D_82\");\r\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton7MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton8.setText(\"BC_V_83\");\r\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton8MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton6.setText(\"SC_V_81\");\r\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton6MouseClicked(evt);\r\n }\r\n });\r\n\r\n cbMidi.setAutoscrolls(true);\r\n cbMidi.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n cbMidiItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\r\n jLabel4.setText(\" Dispositivo MIDI\");\r\n\r\n jButton3.setBackground(javax.swing.UIManager.getDefaults().getColor(\"InternalFrame.borderLight\"));\r\n jButton3.setText(\"TesteMIDI\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel1.setText(\"Inicial\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel10.setText(\"Final\");\r\n\r\n JtmInicial.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n JtmInicial.setText(\"80\");\r\n JtmInicial.setAutoscrolls(false);\r\n\r\n jtmFinal.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n jtmFinal.setText(\"83\");\r\n jtmFinal.setAutoscrolls(false);\r\n\r\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jButton9.setText(\"Set\");\r\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton9MouseClicked(evt);\r\n }\r\n });\r\n\r\n jpAngulo.setBackground(new java.awt.Color(255, 255, 255));\r\n jpAngulo.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpAngulo.setForeground(new java.awt.Color(153, 255, 0));\r\n jpAngulo.setMaximum(360);\r\n jpAngulo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpAngulo.setString(\"0 graus\");\r\n jpAngulo.setStringPainted(true);\r\n\r\n jpDistancia.setBackground(new java.awt.Color(255, 255, 255));\r\n jpDistancia.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpDistancia.setForeground(new java.awt.Color(0, 102, 255));\r\n jpDistancia.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpDistancia.setString(\"0 m\");\r\n jpDistancia.setStringPainted(true);\r\n\r\n jpVelocidade.setBackground(new java.awt.Color(255, 255, 255));\r\n jpVelocidade.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpVelocidade.setForeground(new java.awt.Color(255, 0, 51));\r\n jpVelocidade.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpVelocidade.setString(\"0 Km/h\");\r\n jpVelocidade.setStringPainted(true);\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel11.setText(\"A\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel12.setText(\"D\");\r\n\r\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel13.setText(\"V\");\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame1Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame1.getContentPane());\r\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\r\n jInternalFrame1Layout.setHorizontalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(17, 17, 17)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel1)\r\n .add(jLabel10))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jtmFinal)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton9))\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE))\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 208, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(27, 27, 27)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(91, 91, 91)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(jButton6)\r\n .add(jButton8)))\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton7)\r\n .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 77, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(91, 91, 91)))))\r\n .add(18, 18, 18))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jInternalFrame1Layout.linkSize(new java.awt.Component[] {jButton5, jButton6, jButton7, jButton8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\r\n\r\n jInternalFrame1Layout.setVerticalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jLabel4)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel1)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel10)\r\n .add(jtmFinal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(35, 35, 35)\r\n .add(jButton9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(35, 35, 35)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton5)\r\n .add(jButton6))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton7)\r\n .add(jButton8))\r\n .add(16, 16, 16)\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(18, 18, 18)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel11))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel12))\r\n .add(14, 14, 14)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel13))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jInternalFrame3.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame3.setIconifiable(true);\r\n jInternalFrame3.setResizable(true);\r\n jInternalFrame3.setTitle(\"Utilitys\");\r\n jInternalFrame3.setVisible(true);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel3.setText(\"Tempo\");\r\n\r\n edTempo.setText(\"1000\");\r\n edTempo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n edTempoActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel5.setText(\"Pos\");\r\n\r\n edPos.setText(\"0\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel2.setText(\"ServerId\");\r\n\r\n edId.setText(\"l2.dat\");\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel7.setText(\"Vel. Max.\");\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel8.setText(\"Dis. Max.\");\r\n\r\n edDis.setText(\"5\");\r\n\r\n edVel.setText(\"3\");\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel6.setText(\"Tempo Msg\");\r\n\r\n edMTempo.setText(\"5000\");\r\n\r\n edMTempo2.setText(\"260\");\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel9.setText(\"Pts\");\r\n\r\n edPtGoogle.setText(\"60\");\r\n\r\n jInternalFrame4.setBackground(new java.awt.Color(255, 255, 153));\r\n jInternalFrame4.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(255, 204, 51)));\r\n jInternalFrame4.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame4.setIconifiable(true);\r\n jInternalFrame4.setResizable(true);\r\n jInternalFrame4.setTitle(\"Comandos\");\r\n jInternalFrame4.setVisible(true);\r\n\r\n jButton1.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/tn2.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton1.setBorder(new javax.swing.border.MatteBorder(null));\r\n jButton1.setDefaultCapable(false);\r\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton2.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/pause.JPG\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton4.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/stop.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n jSlider1.setBackground(javax.swing.UIManager.getDefaults().getColor(\"ToolBar.dockingForeground\"));\r\n jSlider1.setMaximum(20);\r\n jSlider1.setMinimum(5);\r\n jSlider1.setValue(14);\r\n\r\n CbMapa.setBackground(new java.awt.Color(255, 51, 51));\r\n CbMapa.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\r\n CbMapa.setForeground(new java.awt.Color(0, 51, 255));\r\n CbMapa.setText(\"Mapa\");\r\n CbMapa.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\r\n CbMapa.setMargin(new java.awt.Insets(0, 0, 0, 0));\r\n CbMapa.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n CbMapaMouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame4Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame4.getContentPane());\r\n jInternalFrame4.getContentPane().setLayout(jInternalFrame4Layout);\r\n jInternalFrame4Layout.setHorizontalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jSlider1, 0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 64, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 86, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n jInternalFrame4Layout.setVerticalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame3Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame3.getContentPane());\r\n jInternalFrame3.getContentPane().setLayout(jInternalFrame3Layout);\r\n jInternalFrame3Layout.setHorizontalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jInternalFrame4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(26, 26, 26)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel5)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel2)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edId)))\r\n .add(58, 58, 58)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel7)\r\n .add(jLabel8)\r\n .add(jLabel6))\r\n .add(20, 20, 20)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 48, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, edDis)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame3Layout.createSequentialGroup()\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(45, Short.MAX_VALUE))\r\n );\r\n jInternalFrame3Layout.setVerticalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame4)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel6)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel7)\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel9)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel8)\r\n .add(edDis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel2)\r\n .add(edId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel3)\r\n .add(jLabel5)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n\r\n GPSGoogle.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n GPSGoogle.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://maps.google.com/staticmap?center=-21.7566133,-41.331430&zoom=15&size=600x500&key=ABQIAAAANfHaNxB2EEc7ZYvIOCXAohTCRf8s8QHhhExYFAkAHu8ZlJqlqRR7p2SmTf-HSf3XPv6G1SGPptN5QA\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n GPSGoogle.setVerticalAlignment(javax.swing.SwingConstants.TOP);\r\n GPSGoogle.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\r\n\r\n jMenuBar1.setOpaque(false);\r\n\r\n jMenu1.setText(\"Servidor\");\r\n\r\n jMenuItem1.setText(\"Start\");\r\n jMenu1.add(jMenuItem1);\r\n\r\n jMenuItem2.setText(\"Resume\");\r\n jMenu1.add(jMenuItem2);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"Exibir Janelas\");\r\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu2MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"Performace\");\r\n jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu3MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu3);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap(42, Short.MAX_VALUE)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 806, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(145, 145, 145)\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(10, 10, 10))\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(12, 12, 12)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(4292, 4292, 4292)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(515, 515, 515)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 598, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(3637, 3637, 3637))\r\n .add(layout.createSequentialGroup()\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(741, 741, 741)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 922, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(1368, 1368, 1368)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))))\r\n .add(layout.createSequentialGroup()\r\n .add(98, 98, 98)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 583, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(9621, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(4, 4, 4)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .add(23, 23, 23)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 393, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(layout.createSequentialGroup()\r\n .add(355, 355, 355)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 528, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(25, 25, 25)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(20, 20, 20))\r\n .add(layout.createSequentialGroup()\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)))\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 447, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(14, 14, 14)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(8144, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }", "public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }", "public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }", "public GUI() {\n initComponents();\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "public JFrameNotepad() {\n this.dc = new Document(jTextPane1);\n initComponents();\n }", "public Lab1Frame()\r\n {\r\n // set up note pad with capacity for 10 notes\r\n snp = new StickyNotePad(10);\r\n \r\n // set up GUI window\r\n setBackground(Color.darkGray);\r\n setTitle(\"Lab1\");\r\n setSize(400,250);\r\n setLayout(new FlowLayout());\r\n \r\n // set up text area widget\r\n text=new TextArea(10,50);\r\n text.setBackground(Color.YELLOW);\r\n text.setEditable(false);\r\n add(text);\r\n \r\n // set up button widgets\r\n prevNote=new Button(\"<- Previous\");\r\n prevNote.addActionListener(this);\r\n add(prevNote);\r\n newNote=new Button(\" New \");\r\n newNote.addActionListener(this);\r\n add(newNote);\r\n delNote=new Button(\"Delete\");\r\n delNote.addActionListener(this);\r\n add(delNote);\r\n nextNote=new Button(\" Next -> \");\r\n nextNote.addActionListener(this); \r\n add(nextNote);\r\n \r\n // configure close box on window's title bar\r\n this.addWindowListener\r\n (\r\n new WindowAdapter()\r\n {\r\n public void windowClosing(WindowEvent e)\r\n {\r\n System.exit(0);\r\n }\r\n }\r\n ); \r\n }", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\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}" ]
[ "0.73354256", "0.7211274", "0.71689403", "0.71188426", "0.7107017", "0.70955545", "0.7066566", "0.6966782", "0.6966017", "0.69578665", "0.6951518", "0.69429654", "0.6924489", "0.69210535", "0.69171846", "0.69096506", "0.6899177", "0.6875343", "0.6842628", "0.6826885", "0.68253964", "0.6824683", "0.6824683", "0.6822543", "0.68217397", "0.68156326", "0.68098503", "0.6803314", "0.679979", "0.6798204", "0.67951715", "0.67923033", "0.6789939", "0.67848575", "0.678475", "0.6779122", "0.6779011", "0.6777621", "0.67705464", "0.67648315", "0.6764378", "0.6744525", "0.674117", "0.6740576", "0.67381704", "0.67376304", "0.67368275", "0.67295045", "0.671552", "0.6705351", "0.6704715", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6704013", "0.6703025", "0.66956186", "0.66944003", "0.66924965", "0.6690705", "0.6687286", "0.6683163", "0.6681852", "0.6681852", "0.6680104", "0.66799206", "0.6679515", "0.6674529", "0.66712207", "0.6667401", "0.66668653", "0.6660925", "0.6659909", "0.6657746", "0.66515696", "0.66488373", "0.664501", "0.6638352", "0.6636713", "0.66355", "0.6634548", "0.66317046", "0.66282535", "0.6626278", "0.662558", "0.6625066", "0.6621562", "0.66122955", "0.660998", "0.65984935", "0.65927917", "0.65858394" ]
0.81065905
0
This function is used to popup the settings panel
private void settingsPopup() { settingsFrame = new JFrame("Slideshow Settings"); JPanel settingsPanel = new JPanel(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // Set initial parameters for grid bag constraints c.gridx = 1; c.gridy = 0; c.weighty = 0.5; c.gridwidth = 3; c.anchor = GridBagConstraints.CENTER; JCheckBox automatedCheckBox = new JCheckBox("Automatic Slideshow"); JLabel slideIntervalLabel = new JLabel("Default Slide Duration (sec): "); JTextField slideIntervalTF = new JTextField(String.valueOf(slideInterval)); slideIntervalTF.setPreferredSize(new Dimension(50,25)); if (automated) //only allow user to set a Slide interval if "Automatic Slideshow" is selected { automatedCheckBox.setSelected(true); slideIntervalTF.setEnabled(true); } else { automatedCheckBox.setSelected(false); slideIntervalTF.setEnabled(false); } automatedCheckBox.addActionListener(new ActionListener() //makes interval field active/inactive as user checks/unchecks the box { @Override public void actionPerformed(ActionEvent e) { if (automatedCheckBox.isSelected()) { slideIntervalTF.setEnabled(true); slideIntervalTF.setText("3.0"); } else { slideIntervalTF.setEnabled(false); slideIntervalTF.setText("0.0"); } } }); JButton submitChanges = new JButton("Submit Changes"); submitChanges.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { automated = automatedCheckBox.isSelected(); try { slideInterval = Double.parseDouble(slideIntervalTF.getText()); if (slideInterval <= 0 && automated) { automated = false; JOptionPane.showMessageDialog(null, "Invalid Slide Interval entered!"); } else if(slideInterval > 0) { timeline.setDefaultSlideDuration(slideInterval); timeline.setSlideDurationVisible(automated); timeline.setTimingVisible(automated); pack(); setLocationRelativeTo(null); settingsPresent = false; settingsFrame.dispose(); } else { automated = false; settingsPresent = false; timeline.setSlideDurationVisible(automated); timeline.setTimingVisible(automated); pack(); setLocationRelativeTo(null); settingsFrame.dispose(); } } catch (Exception ex) { if (automated) { automated = false; JOptionPane.showMessageDialog(null, "Invalid Slide Interval entered!"); } else { settingsPresent = false; settingsFrame.dispose(); } } } }); settingsPanel.add(automatedCheckBox, c); c.gridy = 1; c.gridx = 0; c.gridwidth = 2; settingsPanel.add(slideIntervalLabel, c); c.gridx = 2; c.gridwidth = 2; settingsPanel.add(slideIntervalTF, c); c.gridx = 1; c.gridy = 2; c.gridwidth = 3; settingsPanel.add(submitChanges, c); settingsFrame.add(settingsPanel); //allows user to save new interval by hitting enter slideIntervalTF.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { submitChanges.doClick(); } } }); settingsFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); settingsFrame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { settingsPresent = false; } }); ImageIcon windowIcon = new ImageIcon("images\\SlideshowIcon.png"); // TODO: Uncomment below for JAR //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource("SlideshowIcon.png")); Image icon = windowIcon.getImage(); settingsFrame.setIconImage(icon); settingsFrame.setSize(new Dimension(290,140)); settingsFrame.setResizable(false); settingsFrame.setLocationRelativeTo(null); settingsFrame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void openSettingsForm(){\n\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\thf.getSettings().setVisible(true);;\n\n\t}", "protected void showMineSettings() {\r\n settingsFrame.setLocation( scorePanel.getLocationOnScreen() );\r\n settingsFrame.setVisible( true );\r\n }", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "@SuppressLint(\"InflateParams\")\n private void showGoToSettingsDialog() {\n View view = LayoutInflater.from(activity).inflate(R.layout.go_to_setting, null, false);\n TextView message = (TextView) view.findViewById(R.id.fingerprint_required);\n TextView description = (TextView) view.findViewById(R.id.go_to_setting_description);\n message.setText((String) call.argument(\"fingerprintRequired\"));\n description.setText((String) call.argument(\"goToSettingDescription\"));\n Context context = new ContextThemeWrapper(activity, R.style.AlertDialogCustom);\n OnClickListener goToSettingHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n activity.startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));\n }\n };\n OnClickListener cancelHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n }\n };\n new AlertDialog.Builder(context).setView(view)\n .setPositiveButton((String) call.argument(\"goToSetting\"), goToSettingHandler)\n .setNegativeButton((String) call.argument(CANCEL_BUTTON), cancelHandler).setCancelable(false).show();\n }", "public void showSettingsAlert() {\r\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\r\n alertDialog.setTitle(mContext.getResources().getString(R.string.gps_settings_title));\r\n alertDialog.setMessage(mContext.getResources().getString(R.string.gps_settings_body));\r\n alertDialog.setCancelable(false);\r\n alertDialog.setPositiveButton(mContext.getResources().getString(R.string.action_settings), new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\r\n ((Activity) mContext).startActivityForResult(intent, REQUEST_LOCATION_CODE);\r\n }\r\n });\r\n alertDialog.show();\r\n }", "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "void openSettings() {\n\t}", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(LocationChooser.this);\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS settings\");\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to enable now?\");\n // On pressing Settings button\n alertDialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n });\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n // Showing Alert Message\n alertDialog.show();\n }", "public void showSettingsAlert(){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "public void showSettingsAlert(){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n }", "public void expandSettingsOption(){\n getUiInstance().getElement(locators.imgProfilePic, Constant.DEFAULT_TIMEOUT).click();\n }", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "public void showSettingsAlert() {\n\n AlertDialog.Builder alertDialog =\n new AlertDialog.Builder(mContext);\n\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(\n Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n mContext.startActivity(intent);\n }\n });\n\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface aDialog, int which) {\n aDialog.cancel();\n }\n });\n\n // Showing Alert Message\n alertDialog.show();\n\n /*Notifications.ShowMessageBox(\n this.mContext,\n \"GPS is not enabled. Do you want to go to settings menu?\",\n \"GPS is setting\",\n \"\");*/\n }", "public void showSettingsAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n // Setting Dialog Title\n alertDialog.setTitle(\"GPS is settings\");\n // Setting Dialog Message\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n // On pressing Settings button\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n getActivity().startActivity(intent);\n dialog.cancel();\n }\n });\n // on pressing cancel button\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n // Showing Alert Message\n// alertDialog.show();\n\n changePassDialog = alertDialog.create();\n\n try {\n changePassDialog.cancel();\n } catch (Exception e) {\n Log.e(TAG, \"Problem with GPS Settings Alert --> \" + e.toString());\n }\n\n changePassDialog.show();\n\n }", "public void openSettingsPage(Class<? extends SettingsPanel> settingClass) {\n\t\topenTab(FS2Tab.SETTINGS);\n\t\t((SettingsTab)instantiatedTabs.get(FS2Tab.SETTINGS)).showSetting(settingClass);\n\t}", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public static synchronized void getSettingsWindow() {\n if (WINDOW == null) {\n WINDOW = new JFrame(\"Settings\");\n WINDOW.setContentPane(new SettingsWindow().settingsPanel);\n WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n WINDOW.pack();\n }\n WINDOW.setVisible(true);\n WINDOW.requestFocus();\n }", "public void showSettingsAlert(final int arg) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n alertDialog.setTitle(\"GPS is settings\");\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n getActivity().startActivityForResult(intent, arg);\n }\n });\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n return;\n }\n });\n alertDialog.show();\n }", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "@Override\n public void onClick(View v) {\n SettingDialog.show();\n }", "public SettingsPanel() {\n initComponents();\n }", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "private void popupModify2te() {\n\t\tRolle rolle = (Rolle) this;\n\t\taufzugschacht.mainFrameShowOptionsFrame(rolle.getRolle2teUmschlingung(), true);\n\t}", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "@SuppressLint(\"RestrictedApi\")\n private void onGameSettingClicked() {\n PopupMenu popup = new PopupMenu(this, this.mGameSetting);\n popup.getMenuInflater().inflate(R.menu.game_setting_menu, popup.getMenu());\n\n popup.setOnMenuItemClickListener(item -> {\n switch (item.getItemId()){\n case R.id.game_setting_sync:\n Toast.makeText(this, \"Game sync successfully \", Toast.LENGTH_SHORT).show();\n break;\n case R.id.game_setting_add_players:\n Intent intent = new Intent(this, Players.class);\n startActivity(intent);\n break;\n case R.id.game_signIn:\n Toast.makeText(this, \"Sign in successfully ! \", Toast.LENGTH_SHORT).show();\n break;\n }\n\n return true;\n });\n\n MenuPopupHelper menuHelper = new MenuPopupHelper(this, (MenuBuilder) popup.getMenu(), this.mGameSetting);\n menuHelper.setForceShowIcon(true);\n menuHelper.show();\n }", "public static void ShowAdminPreferences() {\n if (Controller.permission.GetUserPermission(\"EditUser\")) {\n ToggleVisibility(UsersPage.adminWindow);\n } else {\n DialogWindow.NoAccessTo(\"Admin options\");\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tshowSettingDialog(msg.what);\n\t\t\t// super.handleMessage(msg);\n\t\t}", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "public static void pushApplySiteSettingsButton()\n\t\n\t{\n//\t\tMoveAndClick.OneElement(\"//input[@value='Log in now']\");\n\t\t\n\t}", "public void openUserSettings() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UserSettingsView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tUserSettingsController usc = fxmlLoader.getController();\n\t\t\tusc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"uSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Then(\"click on Settings\")\n public void clickOnSettings() {\n getDriver().findElement(By.xpath(\"//button[@ui-sref='settings.groups']\")).click();\n }", "protected void showSettingsChangedDialog() {\n new AlertDialog.Builder(getActivity())\n .setTitle(R.string.dialog_settings_changed_title)\n .setMessage(R.string.dialog_settings_changed_description)\n .setPositiveButton(android.R.string.yes, this)\n .setNegativeButton(android.R.string.no, this)\n .show();\n }", "public void openSettings() {\n Intent intent2 = new Intent(\"android.settings.APPLICATION_DETAILS_SETTINGS\");\n intent2.setData(Uri.fromParts(\"package\", getPackageName(), (String) null));\n startActivityForResult(intent2, 101);\n }", "public boolean openSettings(){\n return true;\n }", "public void triggerPopup();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowSettingDialog();\n\t\t\t}", "public void showSettingsAlert() {\r\n final android.support.v7.app.AlertDialog.Builder alertDialogBuilder = new android.support.v7.app.AlertDialog.Builder(mContext);\r\n\r\n alertDialogBuilder.setTitle(\"Alerta!\");\r\n alertDialogBuilder.setMessage(\"Para o melhor funcionamento deste aplicativo é necessário que o GPS esteja ativado. Deseja Ativar agora?\");\r\n alertDialogBuilder.setPositiveButton(\" SIM \", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\r\n mContext.startActivity(intent);\r\n }\r\n });\r\n alertDialogBuilder.show();\r\n }", "private void gotoSettings() {\n \t\tIntent i = new Intent( this, GlobalSettingsActivity.class );\n \t\tthis.startActivity( i );\n \t}", "private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "private void openSettingsforApp() {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", AddListingView.this.getPackageName(), null);\n intent.setData(uri);\n AddListingView.this.startActivity(intent);\n }", "public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "@FXML\r\n void ClickOptionsAndSettings(MouseEvent event) throws IOException {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"OptionsAndSettings.fxml\"));\r\n loader.load();\r\n //Load options and settings page\r\n OptionsAndSettingsController controller = loader.getController();\r\n controller.setUser(user);\r\n //Set user details\r\n Parent root = loader.getRoot();\r\n Scene scene = new Scene(root);\r\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "public void settingBtnClick() {\n\t}", "public void createPopupWindow() {\r\n \t//\r\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}", "private void openSettings()\r\n {\r\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\r\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\r\n intent.setData(uri);\r\n startActivityForResult(intent, 101);\r\n }", "@SuppressLint(\"InflateParams\")\n private void showGoToSettingsDialog(String title, String descriptionText) {\n View view = LayoutInflater.from(activity).inflate(R.layout.go_to_setting, null, false);\n TextView message = view.findViewById(R.id.fingerprint_required);\n TextView description = view.findViewById(R.id.go_to_setting_description);\n message.setText(title);\n description.setText(descriptionText);\n Context context = new ContextThemeWrapper(activity, R.style.AlertDialogCustom);\n OnClickListener goToSettingHandler =\n (dialog, which) -> {\n completionHandler.complete(Messages.AuthResult.FAILURE);\n stop();\n activity.startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));\n };\n OnClickListener cancelHandler =\n (dialog, which) -> {\n completionHandler.complete(Messages.AuthResult.FAILURE);\n stop();\n };\n new AlertDialog.Builder(context)\n .setView(view)\n .setPositiveButton(strings.getGoToSettingsButton(), goToSettingHandler)\n .setNegativeButton(strings.getCancelButton(), cancelHandler)\n .setCancelable(false)\n .show();\n }", "public void settingsButton(View view) {\n\t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t\tstartActivity(intent);\n\t}", "private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }", "private void popupWindowOfOptions(View v) {\n \t \n \t\tOrderManager.clearOption();\n \t\t\n \t\tint nOrderBoardTextId = v.getId();\n \tOrder _Order = (Order) ResourceManager.get(nOrderBoardTextId);\n \tint nMenuDbId = _Order.MENU_ID;\n \tint nMenuResourceId = MenuManager.getResourceIdByDbId(nMenuDbId);\n \tMenu mMenu = MenuManager.getMenuByResourceId(nMenuResourceId);\n \t\n \tint nTempIdForCurrentOrder = IdManager.getRandomId();\n \tIdManager.setTemporaryId(nTempIdForCurrentOrder);\n \tResourceManager.put(nTempIdForCurrentOrder, _Order);\n \t\n try {\n \t\n \tint nPopupHeight = 760;\n \t\tint nPopupWith = 520;\n \t\n \tint nSubTitleHeight = 40;\n \tint nOptionListLayoutHeight = 210;\n \t\n \tString strMenuNameEng = mMenu.NAME_ENG;\n \tString strMenuNameOth = mMenu.NAME_OTH;\n \t\n \t// Popup layout\n LinearLayout popLayout = new LinearLayout(this);\n popLayout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));\n popLayout.setGravity(Gravity.CENTER);\n popLayout.setBackgroundColor(0x22000000);\n \n \t // Inner layout\n \t LinearLayout innerLayout = new LinearLayout(this);\n \t innerLayout.setLayoutParams(new LayoutParams(nPopupWith-20,nPopupHeight-20));\n \t innerLayout.setPadding(10,10,10,10);\n \t innerLayout.setOrientation(LinearLayout.VERTICAL);\n \t innerLayout.setGravity(Gravity.CENTER);\n \t innerLayout.setBackgroundColor(0xddffffff);\n \t\t \n \t\t // title eng\n \t\t TextView tvTitleEng = new TextView(this);\n \t\t tvTitleEng.setGravity(Gravity.CENTER);\n \t\t tvTitleEng.setText(strMenuNameEng);\n \t\t tvTitleEng.setTextColor(0xff000000);\n \t\t tvTitleEng.setTextSize(23);\n \t\t tvTitleEng.setHeight(50);\n \t\t tvTitleEng.setWidth(470);\n \t\t \n \t\t // title oth\n \t\t TextView tvTitleOth = new TextView(this);\n \t\t tvTitleOth.setGravity(Gravity.TOP|Gravity.CENTER);\n \t\t tvTitleOth.setText(strMenuNameOth);\n \t\t tvTitleOth.setTextColor(0xff000000);\n \t\t tvTitleOth.setTextSize(13);\n \t\t tvTitleOth.setHeight(55);\n \t\t tvTitleOth.setWidth(470);\n \t\t \n \t\t // common option title\n \t\t TextView tvCO = new TextView(this);\n \t\t tvCO.setText(\"* Common Option\");\n \t\t tvCO.setPadding(10,0,0,0);\n \t\t tvCO.setTextSize(15);\n \t\t tvCO.setTextColor(0xff5f2d09);\n \t\t tvCO.setHeight(nSubTitleHeight);\n \t\t tvCO.setWidth(470);\n \t\t \n \t\t // common option layout\n \t\t ScrollView svCO = new ScrollView(this);\n \t\t svCO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llCO = new LinearLayout(this);\n \t\t llCO.setLayoutParams(new LayoutParams(470,LayoutParams.WRAP_CONTENT));\n \t\t llCO.setPadding(15,10,10,10);\n \t\t llCO.setOrientation(LinearLayout.VERTICAL);\n \t\t llCO.setGravity(Gravity.TOP);\n \t\t \n \t\t showCommonOptions (mMenu, llCO);\n \t\t \t\n \t\t \tsvCO.addView(llCO);\n \t\t \t\n \t\t\t // specific option title\n \t\t\t \n \t\t TextView tvSO = new TextView(this);\n \t\t tvSO.setPadding(10,0,0,0);\n \t\t tvSO.setText(\"* Specific Option\");\n \t\t tvSO.setTextSize(15);\n \t\t tvSO.setTextColor(0xff5f2d09);\n \t\t tvSO.setHeight(nSubTitleHeight);\n \t\t tvSO.setWidth(470);\n \t \n \t\t ScrollView svSO = new ScrollView(this);\n \t\t svSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llSO = new LinearLayout(this);\n \t\t llSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t llSO.setPadding(15,10,10,10);\n \t\t llSO.setOrientation(LinearLayout.VERTICAL);\n \t\t llSO.setGravity(Gravity.TOP);\n \t\n \t\t showSpecificOptions (mMenu, llSO);\n \t\t \n \t\t svSO.addView(llSO);\n \t\t \n \t\t // button group\n \t\t \n \t\t int nButtonHeight = 50;\n \t\t int nButtonWidth = 100;\n \t\t \n \t\t LinearLayout llButtonGroup = new LinearLayout(this);\n \t\t llButtonGroup.setLayoutParams(new LayoutParams(470,80));\n \t\t llButtonGroup.setPadding(10, 0, 10, 4);\n \t\t llButtonGroup.setOrientation(LinearLayout.HORIZONTAL);\n \t\t llButtonGroup.setGravity(Gravity.CENTER|Gravity.BOTTOM);\n \t\t \n \t\t // confirm button\n \t \n \t \tint nConfirmId = IdManager.getRandomId();\n \t\t Button btnConfirm = new Button(this);\n \t\t btnConfirm.setId(nConfirmId);\n \t\t btnConfirm.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnConfirm.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnConfirm.setText(CaptionManager.getCaption().CONFIRM);\n \t\t btnConfirm.setTextSize(13);\n \t\t \n \t\t // add options to an order\n \t\t btnConfirm.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \t\n \t\t\t \tOrder currentOrder = (Order)ResourceManager.get(IdManager.getTemporaryId());\n \t\t\t \t\n \t\t\t \tArrayList<Order> orderList = addOptionsToOrder(currentOrder);\n \t\t\t \tOrderManager.requestUpdateOptions(currentOrder,orderList);\n \t \t\t\t\tloadOrderBoard();\n \t \t\t\t\tOrderManager.clearOption();\n \t \t\t\t\t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // cancel button\n \t\t Button btnCancel = new Button(this);\n \t\t btnCancel.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnCancel.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnCancel.setText(CaptionManager.getCaption().CANCEL);\n \t\t btnCancel.setTextSize(13);\n \t\t btnCancel.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \tOrderManager.clearOption();\n \t\t\t \t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // detail button\n \t\t final int nTempId = 808080;\n \t\t Mapper.put(Integer.valueOf(nTempId), mMenu);\n \t\t \n \t\t Button btnDetail = new Button(this);\n \t\t btnDetail.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnDetail.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnDetail.setText(CaptionManager.getCaption().DETAIL);\n \t\t btnDetail.setTextSize(13);\n \t\t btnDetail.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \n \t\t\t \tMenu menu = (Menu)Mapper.get(Integer.valueOf(808080));\n \t\t\t \tint nMenuRscId = menu.RESOURCE_ID;\n \t\t\t \tpopupWindowDetail(nMenuRscId);\n \t\t\t }\n \t\t });\n \t\t\t \n \t llButtonGroup.addView(btnConfirm);\n \t llButtonGroup.addView(btnCancel);\n \t llButtonGroup.addView(btnDetail);\n \t \n \t\t innerLayout.addView(tvTitleEng);\n \t innerLayout.addView(tvTitleOth);\n \t innerLayout.addView(tvCO);\n \t innerLayout.addView(svCO);\n \t innerLayout.addView(tvSO);\n \t innerLayout.addView(svSO);\n \t innerLayout.addView(llButtonGroup);\n \t \n popLayout.addView(innerLayout);\n\n // show popup\n _PopupWindowOfOptions = new PopupWindow(popLayout, nPopupWith, nPopupHeight, true);\n _PopupWindowOfOptions.showAtLocation(popLayout, Gravity.CENTER, 0, 0);\n \t\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void settings_clicked(View view) {\n Intent intent = new Intent(this, SettingsActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "private void initSettingsPanel() {\n JLabel lblName = new JLabel(\"Name:\");\n lblName.setForeground(StyleCompat.textColor());\n\n JTextField fieldName = new JTextField(20);\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblName, fieldName));\n\n JLabel lblVirtOutput = new JLabel(\"VirtualOutput:\");\n lblVirtOutput.setForeground(StyleCompat.textColor());\n\n JComboBox<String> comboVirtOutputs = new JComboBox<>();\n for(Device device : instance.getInterface().getDeviceManager().getDevices()) {\n if(device instanceof VirtualOutput) {\n if(handler != null && instance.getHandlerByVirtualOutput(device.getId()) == handler) {\n comboVirtOutputs.addItem(device.getId());\n comboVirtOutputs.setSelectedIndex(comboVirtOutputs.getItemCount() - 1);\n } else if(!instance.isVirtualOutputUsed(device.getId())) {\n comboVirtOutputs.addItem(device.getId());\n }\n }\n }\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblVirtOutput, comboVirtOutputs));\n\n JLabel lblDeviceId = new JLabel(\"OpenRGB Device ID (index):\");\n lblDeviceId.setForeground(StyleCompat.textColor());\n\n JFormattedTextField fieldDeviceId = new JFormattedTextField(UserInterfaceUtil.getIntFieldFormatter());\n fieldDeviceId.setColumns(5);\n JButton btnAddDeviceId = new JButton(\"Add device\");\n UiUtilsCompat.configureButton(btnAddDeviceId);\n btnAddDeviceId.addActionListener(e -> {\n if(fieldDeviceId.getValue() == null) return;\n int value = (int) fieldDeviceId.getValue();\n if(value < 0 || listDevices.contains(value)) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Invalid ID or list contains already ID.\"));\n return;\n }\n listDevices.add(value);\n fieldDeviceId.setText(\"\");\n updateDeviceListPanel();\n });\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblDeviceId, fieldDeviceId, btnAddDeviceId));\n\n if(instance.getOpenRGB().isConnected()) {\n // show info label, remove all and add all button\n int deviceCount = instance.getOpenRGB().getControllerCount();\n\n JLabel lblCountInfo = new JLabel(\"There are \" + deviceCount + \" devices available.\");\n lblCountInfo.setForeground(StyleCompat.textColor());\n\n JButton btnAddAll = new JButton(\"Add all\");\n UiUtilsCompat.configureButton(btnAddAll);\n btnAddAll.addActionListener(e -> {\n for(int i = 0; i < deviceCount; i++) {\n if(!listDevices.contains(i))\n listDevices.add(i);\n }\n updateDeviceListPanel();\n });\n\n JButton btnRemoveAll = new JButton(\"Remove all\");\n UiUtilsCompat.configureButton(btnRemoveAll);\n btnRemoveAll.addActionListener(e -> {\n listDevices.clear();\n updateDeviceListPanel();\n });\n\n // add components to panel\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblCountInfo, btnAddAll, btnRemoveAll));\n } else {\n // show hint message\n JLabel lblHint = new JLabel(\"(i) Go back and connect the client to receive live data from the SDK server.\");\n lblHint.setForeground(StyleCompat.textColorDarker());\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblHint));\n }\n\n panelDeviceList = new JPanel();\n panelDeviceList.setBackground(StyleCompat.panelDarkBackground());\n panelDeviceList.setLayout(new BoxLayout(panelDeviceList, BoxLayout.Y_AXIS));\n panelDeviceList.setAlignmentX(Component.LEFT_ALIGNMENT);\n panelSettings.add(Box.createVerticalStrut(10));\n panelSettings.add(panelDeviceList);\n updateDeviceListPanel();\n\n if(handler != null) {\n // set stored values\n fieldName.setText(handler.getName());\n }\n\n JButton btnAdd = new JButton(handler == null ? \"Add OpenRGB Device\" : \"Save OpenRGB Device\");\n UiUtilsCompat.configureButton(btnAdd);\n btnAdd.setAlignmentX(Component.LEFT_ALIGNMENT);\n btnAdd.setMaximumSize(new Dimension(Integer.MAX_VALUE, 50));\n btnAdd.setMinimumSize(new Dimension(100, 50));\n\n btnAdd.addActionListener(e -> {\n // create value holder\n ValueHolder holder = new ValueHolder(\n fieldName.getText(),\n (String) comboVirtOutputs.getSelectedItem(),\n listDevices);\n\n if(validateInput(holder.getName(), holder.getOutputId())) {\n // get output\n VirtualOutput output = OpenRgbPlugin.getVirtualOutput(instance.getInterface().getDeviceManager(), holder.getOutputId());\n if (output == null) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Could not find virtual output for id \" + holder.getOutputId()));\n return;\n }\n\n if(handler != null) { // set values to output handler\n handler.setName(holder.getName());\n handler.setDevices(listDevices);\n handler.setVirtualOutput(output);\n } else { // create new output handler\n // create new handler\n OutputHandler handler = instance.createHandler(holder, output);\n // add handler to set\n instance.addHandler(handler);\n }\n\n // go back\n context.navigateDown();\n }\n });\n\n panelSettings.add(Box.createVerticalGlue());\n panelSettings.add(btnAdd);\n }", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "public void navigateToAccountSettingsOption(){\n expandSettingsOption();\n reporter.info(\"Navigating to Account Settings page\");\n getUiInstance().getElement(locators.linkAccountSetting, Constant.DEFAULT_TIMEOUT).click();\n }", "@Override\n public void onClick(View view) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n collectValuesForSettings();\n updateSettings();\n dismiss();\n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }", "private void openAppSettings() {\n //Open the Settings Activity\n Intent settingsActivityIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsActivityIntent);\n }", "private void launchSettingsActivity() {\n\t\tIntent myIntent = new Intent(this,\n\t\t\t\tSettingsActivity.class);\n\n\t\tthis.startActivityForResult(myIntent,\n\t\t\t\tSettingsActivity.EDIT_SETTINGS_ID);\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "private void initialize() {\n\t\tfrmSettings = new JFrame();\n\t\tfrmSettings.setTitle(\"Settings\");\n\t\tfrmSettings.setBounds(100, 100, 594, 420);\n\t\tfrmSettings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmSettings.getContentPane().setLayout(null);\n\n\t\tJLabel lblSettings = new JLabel(\"Check the appropriate checkbox to change the values\");\n\t\tlblSettings.setBounds(10, 8, 558, 14);\n\t\tfrmSettings.getContentPane().add(lblSettings);\n\n\t\tstorage_panel = new JPanel();\n\t\tstorage_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Storage\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tstorage_panel.setBounds(20, 33, 548, 65);\n\t\tfrmSettings.getContentPane().add(storage_panel);\n\t\tstorage_panel.setLayout(null);\n\n\t\tJLabel lblDefaultPathfor = new JLabel(\"Default path (for reports):\");\n\t\tlblDefaultPathfor.setBounds(10, 27, 149, 14);\n\t\tstorage_panel.add(lblDefaultPathfor);\n\n\t\treport_path = new JTextField();\n\t\treport_path.setText(AppConfigInfo.getDefaultStorage());\n\t\treport_path.setBounds(171, 23, 367, 20);\n\t\tstorage_panel.add(report_path);\n\t\treport_path.setColumns(10);\n\n\t\twork_hours_panel = new JPanel();\n\t\twork_hours_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Work-hours\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\twork_hours_panel.setBounds(20, 112, 548, 90);\n\t\tfrmSettings.getContentPane().add(work_hours_panel);\n\t\twork_hours_panel.setLayout(null);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Full-day hours (hh:mm:ss):\");\n\t\tlblNewLabel.setBounds(10, 26, 161, 14);\n\t\twork_hours_panel.add(lblNewLabel);\n\n\t\tJLabel lblHalfdayHours = new JLabel(\"Half-day hours (hh:mm:ss):\");\n\t\tlblHalfdayHours.setBounds(10, 54, 161, 14);\n\t\twork_hours_panel.add(lblHalfdayHours);\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tDate df = new Date(), dh = new Date();\n\t\ttry {\n\t\t\tdf = sdf.parse(AppConfigInfo.getFullWorkingHours());\n\t\t\tdh = sdf.parse(AppConfigInfo.getHalfWorkingHours());\n\t\t} catch (Exception ex) {\n\n\t\t}\n\t\tfull_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\tfull_day_spinner.setEditor(new JSpinner.DateEditor(full_day_spinner, sdf.toPattern()));\n\t\tfull_day_spinner.setValue(df);\n\t\tfull_day_spinner.setBounds(171, 23, 122, 20);\n\t\twork_hours_panel.add(full_day_spinner);\n\n\t\thalf_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\thalf_day_spinner.setEditor(new JSpinner.DateEditor(half_day_spinner, sdf.toPattern()));\n\t\thalf_day_spinner.setValue(dh);\n\t\thalf_day_spinner.setBounds(171, 51, 122, 20);\n\t\twork_hours_panel.add(half_day_spinner);\n\n\t\tadmin_profile_panel = new JPanel();\n\t\tadmin_profile_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Admin profile\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tadmin_profile_panel.setBounds(20, 211, 548, 123);\n\t\tfrmSettings.getContentPane().add(admin_profile_panel);\n\t\tadmin_profile_panel.setLayout(null);\n\n\t\tlblNewLabel_1 = new JLabel(\"Existing password:\");\n\t\tlblNewLabel_1.setBounds(10, 28, 151, 14);\n\t\tadmin_profile_panel.add(lblNewLabel_1);\n\n\t\tlblNewPassword = new JLabel(\"New password:\");\n\t\tlblNewPassword.setBounds(10, 54, 151, 14);\n\t\tadmin_profile_panel.add(lblNewPassword);\n\n\t\tlblReenterPassword = new JLabel(\"Re-enter password:\");\n\t\tlblReenterPassword.setBounds(10, 79, 151, 14);\n\t\tadmin_profile_panel.add(lblReenterPassword);\n\n\t\texisting_password = new JPasswordField();\n\t\texisting_password.setBounds(171, 25, 159, 20);\n\t\tadmin_profile_panel.add(existing_password);\n\n\t\tnew_password = new JPasswordField();\n\t\tnew_password.setBounds(171, 51, 159, 20);\n\t\tadmin_profile_panel.add(new_password);\n\n\t\tre_entered_password = new JPasswordField();\n\t\tre_entered_password.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (!re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"Password does not match.\");\n\t\t\t\t} else if (re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tre_entered_password.setBounds(171, 76, 159, 20);\n\t\tadmin_profile_panel.add(re_entered_password);\n\n\t\tpassword_status_label = new JLabel(\"\");\n\t\tpassword_status_label.setBounds(340, 79, 198, 14);\n\t\tadmin_profile_panel.add(password_status_label);\n\n\t\tstorage_check = new JCheckBox(\"\");\n\t\tstorage_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tstorage_panel.setEnabled(true);\n\t\t\t\t\tenableReportPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tstorage_panel.setEnabled(false);\n\t\t\t\t\tdisableReportPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tstorage_check.setBounds(0, 56, 21, 23);\n\t\tfrmSettings.getContentPane().add(storage_check);\n\n\t\twork_hours_check = new JCheckBox(\"\");\n\t\twork_hours_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\twork_hours_panel.setEnabled(true);\n\t\t\t\t\tenableWorkHourPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\twork_hours_panel.setEnabled(false);\n\t\t\t\t\tdisableWorkHourPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\twork_hours_check.setBounds(0, 149, 21, 23);\n\t\tfrmSettings.getContentPane().add(work_hours_check);\n\n\t\tadmin_profile_check = new JCheckBox(\"\");\n\t\tadmin_profile_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tadmin_profile_panel.setEnabled(true);\n\t\t\t\t\tenableAdminProfilePanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tadmin_profile_panel.setEnabled(false);\n\t\t\t\t\tdisableAdminProfilePanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadmin_profile_check.setBounds(0, 263, 21, 23);\n\t\tfrmSettings.getContentPane().add(admin_profile_check);\n\n\t\tapply_button = new JButton(\"Apply\");\n\t\tapply_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tif (report_path.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the storage path.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport_status = UpdateAppSettings.updateStoragePath(report_path.getText());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\tif (full_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the full day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (half_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the half day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twork_hours_status = UpdateAppSettings.updateWorkigHours((Date) full_day_spinner.getValue(),\n\t\t\t\t\t\t\t\t(Date) half_day_spinner.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tif (existing_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter your existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (new_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please re-enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (!new_password.getText().equals(re_entered_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Re-entered password does not match.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(existing_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings,\n\t\t\t\t\t\t\t\t\"New password cannot be same as the existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadmin_password_status = UpdateAppSettings.updateAdminPassword(existing_password.getText(),\n\t\t\t\t\t\t\t\tre_entered_password.getText());\n\t\t\t\t\t\tif (!admin_password_status) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Wrong password entered.\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (report_status || work_hours_status || admin_password_status) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Settings applied successfully.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tapply_button.setBounds(239, 348, 89, 23);\n\t\tfrmSettings.getContentPane().add(apply_button);\n\n\t\tlabel = new JLabel(\"\\u00A9 Copyright 2017. Saraswat Infotech Ltd\");\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 9));\n\t\tlabel.setBounds(363, 368, 205, 14);\n\t\tfrmSettings.getContentPane().add(label);\n\t}", "void getSettings(ControlsSettings settings);", "public static void goToPlaylistChooserWindow()\n {\n PlaylistChooser playlistChooser = new PlaylistChooser();\n playlistChooser.setVisible(true);\n playlistChooser.setFatherWindow(actualWindow, false);\n }", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public void settings() {\n btSettings().push();\n }", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "public FDRSettingsPanel() {\n initComponents();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Settings.ACTION_SETTINGS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void openSettings(View view) {\n setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);\n\n // Starts the new activity\n Intent intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n }", "static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}" ]
[ "0.75086594", "0.73706144", "0.73610705", "0.73462075", "0.72343", "0.71735543", "0.71669984", "0.7148902", "0.7126681", "0.7105022", "0.7086954", "0.70426923", "0.7008543", "0.69175696", "0.6901174", "0.68483806", "0.6841225", "0.6817152", "0.68104273", "0.6782265", "0.6766287", "0.6766287", "0.6763271", "0.67561424", "0.6747475", "0.67444706", "0.6730787", "0.6720945", "0.6697823", "0.6673327", "0.66681314", "0.66671765", "0.66670406", "0.66413903", "0.6631881", "0.66261023", "0.66171336", "0.6555239", "0.6522468", "0.6519031", "0.6517617", "0.6501317", "0.648305", "0.64698035", "0.64684546", "0.64669037", "0.644901", "0.6440944", "0.6433141", "0.6426119", "0.6425668", "0.6415461", "0.6398319", "0.63973016", "0.6396241", "0.639012", "0.63760734", "0.63714", "0.636065", "0.63006204", "0.627517", "0.6263178", "0.62507313", "0.62507313", "0.62507313", "0.62507313", "0.62507313", "0.62507313", "0.62506", "0.6248185", "0.62455034", "0.6245224", "0.62172127", "0.62121785", "0.6200215", "0.61688614", "0.6166818", "0.6165245", "0.6131558", "0.61272246", "0.61047065", "0.6103213", "0.6090879", "0.6089992", "0.6089649", "0.6088848", "0.6088622", "0.6069775", "0.6066024", "0.60653496", "0.605349", "0.6031944", "0.6029624", "0.6024836", "0.60176784", "0.60136056", "0.6009734", "0.6001365", "0.59982085", "0.59964395" ]
0.6599504
37