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

📄 linkprotocol802_3frame.java

📁 270的linux说明
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
	 * 	 * @return javax.swing.JScrollPane	 */	private JScrollPane getJScrollPane()	{		if (jScrollPane == null)		{			jScrollPane = new JScrollPane();			jScrollPane.setViewportView(getJTable());		}		return jScrollPane;	}    	/**	 * This method initializes jTable	 * 	 * @return javax.swing.JTable	 */	private JTable getJTable()	{		if (jTable == null)		{			jTable = new JTable(dataModel);		}		return jTable;	}			private javax.swing.JLabel getJLabel() throws IntelMobileException {		if(jLabel == null) {			jLabel = new javax.swing.JLabel();			jLabel.setBounds(14, 8, 406, 18);			jLabel.setText(protocol802_3Instance.GetKey());			jLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP);			jLabel.setToolTipText(protocol802_3Instance.GetKey().toString());					}		return jLabel;	}			/**	 * This method initializes jPanel	 * 	 * @return javax.swing.JPanel	 */	private javax.swing.JPanel getJPanel() throws IntelMobileException {		if(jPanel == null) {			jPanel = new javax.swing.JPanel();			jPanel.setLayout(null);			jPanel.add(getJLabel3(), null);			jPanel.add(getJLabel4(), null);			jPanel.add(getJLabel5(), null);			jPanel.add(getJLabel6(), null);			jPanel.add(getJLabel7(), null);			jPanel.add(getJLabel8(), null);			jPanel.add(getJLabel9(), null);			jPanel.add(getJLabel10(), null);			jPanel.add(getJLabel11(), null);			jPanel.add(getJLabel12(), null);			jPanel.setBounds(12, 62, 474, 206);			jPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Properties", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));		}		return jPanel;	}    	/**	 * This method initializes jLabel1	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel1() throws IntelMobileException {		if(jLabel1 == null) {			jLabel1 = new javax.swing.JLabel();			jLabel1.setBounds(66, 38, 420, 18);			/*StringBuffer strEnabled = null, strMediaPresented = null,strStatus =null;						if(!protocol802_3Instance.Enabled.IsNull())			{				if(protocol802_3Instance.Enabled.GetValue() == true)				strEnabled = new StringBuffer("Enabled");				else				strEnabled = new StringBuffer("Disabled");			}			else			strEnabled = new StringBuffer("NULL");			if(!protocol802_3Instance.MediaPresent.IsNull())			{				if(protocol802_3Instance.MediaPresent.GetValue() == true)				strMediaPresented = new StringBuffer("Media Presented");				else				strMediaPresented = new StringBuffer("Media not Presented");			}			else			strMediaPresented = new StringBuffer("NULL");						if(!protocol802_3Instance.State.IsNull())			{				//strStatus = new StringBuffer(new Integer(protocol802_3Instance.Status.GetValue()).toString());				//strStatus = LinkProtocolTableModel.getProtocolStatus(protocol802_3Instance.Status.GetValue());			    strStatus = new StringBuffer(protocol802_3Instance.State.GetValue().toString());			}			else			strStatus = new StringBuffer("NULL");			*/			jLabel1.setText(protocol802_3Instance.State.GetValue().toString());		}		return jLabel1;	}    	/**	 * This method initializes jLabel2	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel2() {		if(jLabel2 == null) {			jLabel2 = new javax.swing.JLabel();			jLabel2.setBounds(14, 37, 45, 18);			jLabel2.setText("State");		}		return jLabel2;	}    	/**	 * This method initializes jLabel3	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel3() {		if(jLabel3 == null) {			jLabel3 = new javax.swing.JLabel();			jLabel3.setBounds(31, 26, 96, 18);			jLabel3.setText("Mac Address:");		}		return jLabel3;	}    	/**	 * This method initializes jLabel4	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel4() throws IntelMobileException {		if(jLabel4 == null) {			jLabel4 = new javax.swing.JLabel();			jLabel4.setBounds(151, 28, 309, 18);			if(!protocol802_3Instance.MacAddress.IsNull())			{				String macAddr = LinkProtocolTableModel.getHexString(protocol802_3Instance.MacAddress.GetValue(0))				+ "-" + LinkProtocolTableModel.getHexString(protocol802_3Instance.MacAddress.GetValue(1))				+ "-" + LinkProtocolTableModel.getHexString(protocol802_3Instance.MacAddress.GetValue(2))				+ "-" + LinkProtocolTableModel.getHexString(protocol802_3Instance.MacAddress.GetValue(3))				+"-" + LinkProtocolTableModel.getHexString(protocol802_3Instance.MacAddress.GetValue(4))				+"-" + LinkProtocolTableModel.getHexString(protocol802_3Instance.MacAddress.GetValue(5));				jLabel4.setText(macAddr);			}			else			{				jLabel4.setText("(null)");			}		}		return jLabel4;	}    	/**	 * This method initializes jLabel5	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel5() {		if(jLabel5 == null) {			jLabel5 = new javax.swing.JLabel();			jLabel5.setBounds(33, 59, 96, 18);			jLabel5.setText("IP Address:");		}		return jLabel5;	}    	/**	 * This method initializes jLabel6	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel6() throws IntelMobileException {		if(jLabel6 == null) {			jLabel6 = new javax.swing.JLabel();			jLabel6.setBounds(151, 59, 311, 18);			if(!protocol802_3Instance.IpAddress.IsNull())				jLabel6.setText(protocol802_3Instance.IpAddress.GetValue());			else				jLabel6.setText("(null)");		}		return jLabel6;	}    	/**	 * This method initializes jLabel7	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel7() {		if(jLabel7 == null) {			jLabel7 = new javax.swing.JLabel();			jLabel7.setBounds(33, 94, 165, 18);			jLabel7.setText("Max Link Speed(bps):");		}		return jLabel7;	}    	/**	 * This method initializes jLabel8	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel8() throws IntelMobileException {		if(jLabel8 == null) {			jLabel8 = new javax.swing.JLabel();			jLabel8.setBounds(200, 94, 200, 18);			jLabel8.setText(com.intel.mobile.base.UInt64Property.toUnsignedString(protocol802_3Instance.MaxLinkSpeed.GetValue()));		}		return jLabel8;	}    	/**	 * This method initializes jLabel9	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel9() {		if(jLabel9 == null) {			jLabel9 = new javax.swing.JLabel();			jLabel9.setBounds(33, 148, 210, 18);			jLabel9.setText("Current Receive Data Rate(bps):");		}		return jLabel9;	}    	/**	 * This method initializes jLabel10	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel10() {		if(jLabel10 == null) {			jLabel10 = new javax.swing.JLabel();			jLabel10.setBounds(33, 179, 210, 18);			jLabel10.setText("Current Transmit Data Rate(bps):");		}		return jLabel10;	}    	/**	 * This method initializes jLabel11	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel11() throws IntelMobileException {		if(jLabel11 == null) {			jLabel11 = new javax.swing.JLabel();			jLabel11.setBounds(250, 149, 200, 18);			jLabel11.setText(com.intel.mobile.base.UInt64Property.toUnsignedString(protocol802_3Instance.DataRateRx.GetValue()));		}		return jLabel11;	}    	/**	 * This method initializes jLabel12	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel12() throws IntelMobileException {		if(jLabel12 == null) {			jLabel12 = new javax.swing.JLabel();			jLabel12.setBounds(250, 179, 200, 18);			jLabel12.setText(com.intel.mobile.base.UInt64Property.toUnsignedString(protocol802_3Instance.DataRateTx.GetValue()));		}		return jLabel12;	}}class Protocol802_3TableModel extends LinkProtocolTableModel{	public Protocol802_3TableModel(Protocol802_3Instance myInstance) throws IntelMobileException	{		super(myInstance);		Init(myInstance);	}		private void Init(Protocol802_3Instance myInstance) throws IntelMobileException	{		Object[][] tempdata = new Object[500][3];				for (int i = 0; i < this.data.length; i++)		{			tempdata[i][0] = data[i][0];			tempdata[i][1] = data[i][1];			tempdata[i][2] = data[i][2];		}				data = tempdata;	}}

⌨️ 快捷键说明

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