📄 configdialogzaurus.java
字号:
else if(row == 14 && column == 0) return tempCfgInfo.ipAddressMulticastStr; else if(row == 14 && column == 1) return tempCfgInfo.ipAddressMulticast; else if(row == 15 && column == 0) return tempCfgInfo.RERRSendingModeStr; else if(row == 15 && column == 1) 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 " "; } private void setConfigFieldInfo(String val, int row, int column) { if(row == 0 && column == 1) tempCfgInfo.executionMode = new String(val); else if(row == 1 && column == 1) tempCfgInfo.osInUse = new String(val); else if(row == 2 && column == 1) tempCfgInfo.ipVersion = new String(val); else if(row == 3 && column == 1) tempCfgInfo.ipAddress = new String(val); else if(row == 4 && column == 1) tempCfgInfo.ifaceName = new String(val); else if(row == 5 && column == 1) tempCfgInfo.ipAddressGateway = new String(val); else if(row == 6 && column == 1) tempCfgInfo.loIfaceName = new String(val); else if(row == 7 && column == 1) tempCfgInfo.loggingStatus = new String(val); else if(row == 8 && column == 1) tempCfgInfo.loggingLevel = new String(val); else if(row == 9 && column == 1) tempCfgInfo.logFile = new String(val); else if(row == 10 && column == 1) tempCfgInfo.pathToSystemCmds = new String(val); else if(row == 11 && column == 1) tempCfgInfo.onlyDestination = new String(val); else if(row == 12 && column == 1) tempCfgInfo.gratuitousRREP = new String(val); else if(row == 13 && column == 1) tempCfgInfo.RREPAckRequired = new String(val); else if(row == 14 && column == 1) tempCfgInfo.ipAddressMulticast = new String(val); else if(row == 15 && column == 1) tempCfgInfo.RERRSendingMode = new String(val); else if(row == 16 && column == 1) tempCfgInfo.deletePeriodMode = new String(val); else if(row == 17 && column == 1) tempCfgInfo.routeDiscoveryMode = new String(val); else if(row == 18 && column == 1) tempCfgInfo.packetBuffering = new String(val); else if(row == 19 && column == 1) tempCfgInfo.activeRouteTimeout = new String(val); else if(row == 20 && column == 1) tempCfgInfo.allowedHelloLoss = new String(val); else if(row == 21 && column == 1) tempCfgInfo.helloInterval = new String(val); else if(row == 22 && column == 1) tempCfgInfo.localAddTTL = new String(val); else if(row == 23 && column == 1) tempCfgInfo.netDiameter = new String(val); else if(row == 24 && column == 1) tempCfgInfo.nodeTraversalTime = new String(val); else if(row == 25 && column == 1) tempCfgInfo.RERRRatelimit = new String(val); else if(row == 26 && column == 1) tempCfgInfo.RREQRetries = new String(val); else if(row == 27 && column == 1) tempCfgInfo.RREQRateLimit = new String(val); else if(row == 28 && column == 1) tempCfgInfo.timeoutBuffer = new String(val); else if(row == 29 && column == 1) tempCfgInfo.TTLStart = new String(val); else if(row == 30 && column == 1) tempCfgInfo.TTLIncrement = new String(val); else if(row == 31 && column == 1) tempCfgInfo.TTLThreshold = new String(val); } private int getRowCount() { return 32; } /** * Method to validate and update the changes to the configuration. * This method is associated with the Update button */ void updateConfigInfo() { try { for(i = 0; i < getRowCount(); i++) { setConfigFieldInfo(txtConfigFieldData[i].getText(), i, 1); } cfgInfo.validateInfo(tempCfgInfo); cfgInfo.setValuesUsing(tempCfgInfo); cfgInfo.updateInfo(); hide(); } catch(Exception e) { lblError.setText(e.toString()); lblError.repaint(); pnlError.repaint(); } } /** * Method to leave the configuration user interface without making * any changes to the config info. This is associated with the * Cancel button. */ void cancelConfigUpdate() { hide(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -