⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configdialog.java

📁 UoB JADhoc is an AODV Implementation in Java. This is a GZIPed TAR file for the Linux/Unix environme
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
                                return tempCfgInfo.RERRSendingMode;                        else if(row == 16 && column == 0)                                return tempCfgInfo.deletePeriodModeStr;                        else if(row == 16 && column == 1)                                return tempCfgInfo.deletePeriodMode;                        else if(row == 17 && column == 0)                                return tempCfgInfo.routeDiscoveryModeStr;                        else if(row == 17 && column == 1)                                return tempCfgInfo.routeDiscoveryMode;                        else if(row == 18 && column == 0)                                return tempCfgInfo.packetBufferingStr;                        else if(row == 18 && column == 1)                                return tempCfgInfo.packetBuffering;			else if(row == 19 && column == 0)                                return tempCfgInfo.activeRouteTimeoutStr;                        else if(row == 19 && column == 1)                                return tempCfgInfo.activeRouteTimeout;                        else if(row == 20 && column == 0)                                return tempCfgInfo.allowedHelloLossStr;                        else if(row == 20 && column == 1)                                return tempCfgInfo.allowedHelloLoss;                        else if(row == 21 && column == 0)                                return tempCfgInfo.helloIntervalStr;                        else if(row == 21 && column == 1)                                return tempCfgInfo.helloInterval;                        else if(row == 22 && column == 0)                                return tempCfgInfo.localAddTTLStr;                        else if(row == 22 && column == 1)                                return tempCfgInfo.localAddTTL;                        else if(row == 23 && column == 0)                                return tempCfgInfo.netDiameterStr;                        else if(row == 23 && column == 1)                                return tempCfgInfo.netDiameter;                        else if(row == 24 && column == 0)                                return tempCfgInfo.nodeTraversalTimeStr;                        else if(row == 24 && column == 1)                                return tempCfgInfo.nodeTraversalTime;			else if(row == 25 && column == 0)                                return tempCfgInfo.RERRRatelimitStr;                        else if(row == 25 && column == 1)                                return tempCfgInfo.RERRRatelimit;			else if(row == 26 && column == 0)                                return tempCfgInfo.RREQRetriesStr;                        else if(row == 26 && column == 1)                                return tempCfgInfo.RREQRetries;                        else if(row == 27 && column == 0)                                return tempCfgInfo.RREQRateLimitStr;                        else if(row == 27 && column == 1)                                return tempCfgInfo.RREQRateLimit;                        else if(row == 28 && column == 0)                                return tempCfgInfo.timeoutBufferStr;                        else if(row == 28 && column == 1)                                return tempCfgInfo.timeoutBuffer;                        else if(row == 29 && column == 0)                                return tempCfgInfo.TTLStartStr;                        else if(row == 29 && column == 1)                                return tempCfgInfo.TTLStart;                        else if(row == 30 && column == 0)                                return tempCfgInfo.TTLIncrementStr;                        else if(row == 30 && column == 1)                                return tempCfgInfo.TTLIncrement;                        else if(row == 31 && column == 0)                                return tempCfgInfo.TTLThresholdStr;                        else if(row == 31 && column == 1)                                return tempCfgInfo.TTLThreshold;			else                                return " ";                }                /**                * Method to get the column names. Either 'Parameter'                * or 'Value'                * @param int column - the column number                * @return String - the column name                */                public String getColumnName(int column) {                        if(column == 0)                                return "Parameter";                        else                                return "Value";                }                /**                * Method to update the parameter info object, when the                * user makes some changes.                * @param Object val - the data object changed                * @param int row - the row of the data                * @param int column - the column of the data                */                public void setValueAt(Object val, int row, int column) {                        if(row == 0 && column == 1)                                tempCfgInfo.executionMode = new String((String) val);                        else if(row == 1 && column == 1)                                tempCfgInfo.osInUse = new String((String) val);                        else if(row == 2 && column == 1)                                tempCfgInfo.ipVersion = new String((String) val);                        else if(row == 3 && column == 1)                                tempCfgInfo.ipAddress = new String((String) val);                        else if(row == 4 && column == 1)                                tempCfgInfo.ifaceName = new String((String) val);                        else if(row == 5 && column == 1)                                tempCfgInfo.ipAddressGateway = new String((String) val);                        else if(row == 6 && column == 1)                                tempCfgInfo.loIfaceName = new String((String) val);			else if(row == 7 && column == 1)                                tempCfgInfo.loggingStatus = new String((String) val);                        else if(row == 8 && column == 1)                                tempCfgInfo.loggingLevel = new String((String) val);			else if(row == 9 && column == 1)                                tempCfgInfo.logFile = new String((String) val);                        else if(row == 10 && column == 1)                                tempCfgInfo.pathToSystemCmds = new String((String) val);                        else if(row == 11 && column == 1)                                tempCfgInfo.onlyDestination = new String((String) val);                        else if(row == 12 && column == 1)                                tempCfgInfo.gratuitousRREP = new String((String) val);			else if(row == 13 && column == 1)				tempCfgInfo.RREPAckRequired = new String((String) val);			else if(row == 14 && column == 1)				tempCfgInfo.ipAddressMulticast = new String((String) val);			else if(row == 15 && column == 1)				tempCfgInfo.RERRSendingMode = new String((String) val);			else if(row == 16 && column == 1)                                tempCfgInfo.deletePeriodMode = new String((String) val);                        else if(row == 17 && column == 1)				tempCfgInfo.routeDiscoveryMode = new String((String) val);                        else if(row == 18 && column == 1)				tempCfgInfo.packetBuffering = new String((String) val);			else if(row == 19 && column == 1)                                tempCfgInfo.activeRouteTimeout = new String((String) val);                        else if(row == 20 && column == 1)                                tempCfgInfo.allowedHelloLoss = new String((String) val);                        else if(row == 21 && column == 1)                                tempCfgInfo.helloInterval = new String((String) val);                        else if(row == 22 && column == 1)                                tempCfgInfo.localAddTTL = new String((String) val);                        else if(row == 23 && column == 1)                                tempCfgInfo.netDiameter = new String((String) val);                        else if(row == 24 && column == 1)                                tempCfgInfo.nodeTraversalTime = new String((String) val);			else if(row == 25 && column == 1)                                tempCfgInfo.RERRRatelimit = new String((String) val);                        else if(row == 26 && column == 1)                                tempCfgInfo.RREQRetries = new String((String) val);                        else if(row == 27 && column == 1)                                tempCfgInfo.RREQRateLimit = new String((String) val);                        else if(row == 28 && column == 1)                                tempCfgInfo.timeoutBuffer = new String((String) val);                        else if(row == 29 && column == 1)                                tempCfgInfo.TTLStart = new String((String) val);                        else if(row == 30 && column == 1)                                tempCfgInfo.TTLIncrement = new String((String) val);                        else if(row == 31 && column == 1)                                tempCfgInfo.TTLThreshold = new String((String) val);		}                /**                * Method to return whether a certain column is editable or                * not. In this case only the Value column (column 2) is                * editable                * @param int row - the data row                * @param int column - the data column                * @return boolean - whether editable or not                */                public boolean isCellEditable(int row, int column) {                        if(column == 0)                                return false;                        else                                return true;                }        }        /**        * Method to validate and update the changes to the configuration.        * This method is associated with the Update button        */        void updateConfigInfo() {                try {                        cfgInfo.validateInfo(tempCfgInfo);                        cfgInfo.setValuesUsing(tempCfgInfo);                        cfgInfo.updateInfo();                        setVisible(false);                } catch(Exception e) {                        JOptionPane.showMessageDialog(this, e.toString(),                                        "J-Adhoc - Error Message", JOptionPane.ERROR_MESSAGE);                }        }        /**        * Method to leave the configuration user interface without making        * any changes to the config info. This is associated with the        * Cancel button.        */        void cancelConfigUpdate() {                setVisible(false);        }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -