/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License.
*/
var PRODUCT_INFOS = new Array();
var BUNDLES = new Array();
var product_uids = new Array(); var product_versions = new Array(); var product_display_names = new Array(); var product_notes = new Array(); var product_descriptions = new Array(); var product_download_sizes = new Array(); var product_platforms = new Array();
var group_products = new Array(); var group_display_names = new Array(); var group_descriptions = new Array();
var INFO_ICON = getImagesLocation() + "info_icon.gif"; var INFO_ICON_H = getImagesLocation() + "info_icon_h.gif";
var CHECKED_WHITE_SRC = getImagesLocation() + "checked_badge_white.gif"; var CHECKED_BEIGE_SRC = getImagesLocation() + "checked_badge_beige.gif"; var WARNING_WHITE_SRC = getImagesLocation() + "warning_badge_white.gif"; var WARNING_BEIGE_SRC = getImagesLocation() + "warning_badge_beige.gif"; var CHECKED_WHITE_NA_SRC = getImagesLocation() + "checked_badge_notavailable.gif";
var IMAGE_CHECKED_WHITE_NOT_AVAILABLE = '';
var DOWNLOAD_BUTTON_NORMAL_SRC = getImagesLocation() + DOWNLOAD_BUTTON_NORMAL; var DOWNLOAD_BUTTON_DISABLED_SRC = getImagesLocation() + DOWNLOAD_BUTTON_DISABLED; var DOWNLOAD_BUTTON_HIGHLIGHT_SRC = getImagesLocation() + DOWNLOAD_BUTTON_HIGHLIGHT;
var DOWNLOAD_IMG = ''; var DOWNLOAD_IMG_DISABLED = '';
var IMAGE_CHECKED_WHITE = ''; var IMAGE_WARNING_WHITE = ''; var IMAGE_CHECKED_BEIGE = ''; var IMAGE_WARNING_BEIGE = '';
var NETBEANS_DOWNLOAD_BUNDLES_COMMUNITY_MSG_NUMBER = "1";
var download_tabs_number = 0; var last_selected_lang = 0; var MORE_LANG_ID = "more";
function write_platforms() { for(var i=0; i < PLATFORM_IDS.length; i++ ) {
document.write(' + PLATFORM_LONG_NAMES[i] + '');
}
}
function write_components() { for (var i = 0; i < group_products.length; i++) { // skip the first group name as it goes to the title of the table if (i != 0) {
document.write('
function add_bundle_info(uid, products) { var index = BUNDLES.length;
BUNDLES[index] = new Object;
BUNDLES[index].uid = uid;
BUNDLES[index].products = parseList(products);
}
function get_download_button(id, enabled, bit) {
bit = bit || ''; if(enabled) { if(id!=='') var img = DOWNLOAD_IMG; if(bit.length>0) {
img=DOWNLOAD_IMG.replace(/download/g,"download_"+bit);
} return' ' + img + '';
} else { return DOWNLOAD_IMG_DISABLED;
}
}
function write_table_footer() {
document.write('
');
document.write('
'); for(var i=0;i<BUNDLE_IDS.length;i++) { var id = BUNDLE_IDS[i];
document.write('
' + get_download_button (id, true) + '
');
}
document.write('
');
}
function write_components_sizes() {
document.write('
');
document.write('
'); for(var i=0;i<BUNDLE_IDS.length;i++) { var id = BUNDLE_IDS[i];
document.write('
');
}
document.write('
');
}
function show_description(index) {
document.getElementById('product_' + index + '_description').style.visibility = 'visible';
}
function hide_description(index) {
document.getElementById('product_' + index + '_description').style.visibility = 'hidden';
}
function highlight(){ var table = document.getElementById("components_table"); var tr = table.getElementsByTagName("tr"); var cells = new Array(); for (var i=0;i<tr.length;i++){ var arr = new Array(); for(var j=0;j<tr[i].childNodes.length;j++){ var node = tr[i].childNodes[j]; if(node.nodeType==1) arr.push(node);
}
cells.push(arr);
}
function over(table,cells,obj){ if (!obj.hlCol && !obj.hlRow) obj.className = obj.css + " over"; if(!(obj.col == 0 && obj.className.indexOf("empty") != -1)) { if(obj.hlRow) highlightRow(table,cells,obj.row); if(obj.hlCol) highlightCol(table,cells,obj.col);
}
} function out(table,cells,obj){ if (!obj.hlCol && !obj.hlRow) obj.className = obj.css;
unhighlightRow(table,cells,obj.row);
unhighlightCol(table,cells,obj.col);
}
function highlightCol(table,cells,col){ var css = "over"; for (var i=0;i<cells.length;i++){ var arr = cells[i]; if(col<arr.length) { var obj = arr[col]; if (obj.className.indexOf("onhover_change")!=-1) {
obj.className = obj.css + " " + css;
}
}
}
}
function unhighlightCol(table,cells,col){ for (var i=0;i<cells.length;i++){ var arr = cells[i]; if(col<arr.length) { var obj = arr[col];
obj.className = obj.css;
}
}
}
function highlightRow(table,cells,row){ var css = "over"; var tr = table.getElementsByTagName("tr")[row]; for (var i=0;i<tr.childNodes.length;i++){ var obj = tr.childNodes[i];
obj.className = obj.css + " " + css;
}
}
function unhighlightRow(table,cells,row){ var tr = table.getElementsByTagName("tr")[row]; for (var i=0;i<tr.childNodes.length;i++){ var obj = tr.childNodes[i];
obj.className = obj.css;
}
}
function detect_platform() { var agent = navigator.userAgent; var platform; if (agent.indexOf("Windows") != -1) {
platform='windows';
document.getElementById("platform_select").selectedIndex = 0;
} if (agent.indexOf("Linux") != -1) {
platform='linux';
document.getElementById("platform_select").selectedIndex = 1;
} if (agent.indexOf("Intel Mac OS") != -1) {
platform='mac';
document.getElementById("platform_select").selectedIndex = 2;
} if (agent.indexOf("PPC Mac OS") != -1) {
platform='mac';
document.getElementById("platform_select").selectedIndex = 2;
} if (agent.indexOf("SunOS i86pc") != -1) {
platform='solaris';
document.getElementById("platform_select").selectedIndex = 3;
} if (agent.indexOf("SunOS sun4") != -1) {
platform='solaris';
document.getElementById("platform_select").selectedIndex = 3;
} if (agent.indexOf("BSD") != -1) {
platform='linux';
document.getElementById("platform_select").selectedIndex = 3;
} return platform;
}
function getZipUrl() { var langselect = document.getElementById("language_select"); var lang_id = langselect.options[langselect.selectedIndex].value; var build_location = get_build_location(lang_id); return get_build_info(true).USE_HTML_ZIP_LISTING ? ("javascript: open_zip_link()") : (build_location + "zip/");
} function select_language() { var language = get_language_id(); if(!isMainLanguage(language) && !isCommunityBuild()) {
language = "en";
} var select = document.getElementById("language_select"); var languageOptions = select.options; for(var i=0;i<languageOptions.length;i++) { if(languageOptions[i].value == language) select.selectedIndex = i;
}
last_selected_lang = select.selectedIndex;
}
var select = document.getElementById("platform_select"); var platform = select.options[select.selectedIndex].value; var platform_display_name = select.options[select.selectedIndex].text;
// update the "checks" and generate error messages, if any var product_messages = new Array(); for (var i = 0; i < product_uids.length; i++) { if (is_product_hidden(product_uids[i])) { continue;
}
// enter the default value
product_messages[i] = null;
if (!is_compatible(i, platform)) {
product_messages[i] = product_display_names[i];
}
for(var k=0;k<BUNDLE_IDS.length;k++) { var id = BUNDLE_IDS[k];
function is_compatible(index, platform) { if ( platform == "zip" ) { for (var i = 0; i < group_products.length; i++) { for (var j = 0; j < group_products[i].length; j++) { var uid = group_products[i][j]; for(var k=0;k<product_uids.length;k++) { if (product_uids[k] == uid) { if((k==index) && (i == 0) && uid != "nb-javafx" && uid != "nb-javacard") {//runtimes are not available in zip returntrue;
}
}
}
}
}
} else { for (var i = 0; i < product_platforms[index].length; i++) { if (product_platforms[index][i] == platform) { returntrue;
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.