JavaPropertiesPanel.java revision 3922
3853N/A * The contents of this file are subject to the terms of the 3853N/A * Common Development and Distribution License, Version 1.0 only 3853N/A * (the "License"). You may not use this file except in compliance 3853N/A * You can obtain a copy of the license at 3853N/A * See the License for the specific language governing permissions 3853N/A * and limitations under the License. 3853N/A * When distributing Covered Code, include this CDDL HEADER in each 3853N/A * file and include the License file at 3853N/A * add the following below this CDDL HEADER, with the fields enclosed 3853N/A * by brackets "[]" replaced with your own identifying information: 3853N/A * Portions Copyright [yyyy] [name of copyright owner] 3853N/A * Copyright 2008 Sun Microsystems, Inc. 3853N/A * The panel where the user can specify the java arguments and java home to be 3853N/A * used in the command-lines. 3853N/A * Creates the layout of the panel (but the contents are not populated here). 3853N/A * Returns <CODE>true</CODE> if the user updated the contents and 3853N/A * <CODE>false</CODE> otherwise. 3853N/A * @return <CODE>true</CODE> if the user updated the contents and 3853N/A * <CODE>false</CODE> otherwise. 3853N/A * Returns the java arguments specified in the table. 3853N/A * @return the java arguments specified in the table. 3853N/A * Inits the contents of the table in the background. 3853N/A "start-ds",
"import-ldif.offline",
"backup.online",
"base64",
3853N/A "create-rc-script",
"dsconfig",
"dsreplication",
"dsframework",
3853N/A "export-ldif.online",
"import-ldif.online",
"ldapcompare",
3853N/A "ldapdelete",
"ldapmodify",
"ldappasswordmodify",
"ldapsearch",
3853N/A "list-backends",
"manage-account",
"manage-tasks",
"restore.online",
3853N/A "stop-ds",
"status",
"status-panel",
"uninstall",
"setup",
3853N/A "backup.offline",
"encode-password",
"export-ldif.offline",
3853N/A "ldif-diff",
"ldifmodify",
"ldifsearch",
"make-ldif",
3853N/A "rebuild-index",
"restore.offline",
"upgrade",
3853N/A * Disables all the components. This is used when we are reading the 3853N/A * java settings in the background. 3853N/A * Enables all the components. This is used when we are reading the 3853N/A * java settings in the background. 3853N/A * Returns the java binary (the executable) for a given java home. 3853N/A * @param javaHome the java home. 3853N/A * @return the java binary (the executable) for the provided java home. 3853N/A * Returns the file containing the java properties. 3853N/A * @return the file containing the java properties. 3853N/A * Class containing the command-name and the associated java 3853N/A * Constructor of the arguments descriptor. 3853N/A * @param commandName the command-line name. 3853N/A * @param javaArguments the java arguments. 3853N/A * Returns the command-line name. 3853N/A * @return the command-line name. 3853N/A * Returns the java arguments associated with the command-line. 3853N/A * @return the java arguments associated with the command-line. 3853N/A * The table model used to display the java arguments. 3853N/A * Sets the data for this table model. 3853N/A * @param newData the data for this table model. 3853N/A * Compares two java argument descriptors. 3853N/A * @param desc1 the first java argument descriptor. 3853N/A * @param desc2 the second java argument descriptor. 3853N/A * @return 1 if in terms of comparison the first element goes higher than 3853N/A * the second one. Returns 0 if both elements are equal in terms of 3853N/A * comparison. Returns -1 if the second element goes higher than the first 3853N/A * Updates the table model contents and sorts its contents depending on the 3853N/A * sort options set by the user. 3853N/A * Returns the java argument descriptor in the provided row. 3853N/A * @param row the row number. 3853N/A * @return the java argument descriptor in the provided row. 3853N/A * Returns whether the sort is ascending or descending. 3853N/A * @return <CODE>true</CODE> if the sort is ascending and <CODE>false</CODE> 3853N/A * Sets whether to sort ascending of descending. 3853N/A * @param sortAscending whether to sort ascending or descending. 3853N/A * Returns the column index used to sort. 3853N/A * @return the column index used to sort. 3853N/A * Sets the column index used to sort. 3853N/A * @param sortColumn column index used to sort.. 3853N/A * Returns an array of String with the String representation of the cells 3853N/A * @param desc the java argument descriptor for which we want to get the 3853N/A * @return an array of String with the String representation of the cells 3853N/A * The task in charge of updating the java properties. 3853N/A * The constructor of the task. 3853N/A * @param info the control panel info. 3853N/A * @param dlg the progress dialog that shows the progress of the task. 3853N/A // All the operations are incompatible if they apply to this 3853N/A // backend for safety. This is a short operation so the limitation 3853N/A // has not a lot of impact.