package x10web;
/*
This module is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as publised by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This module is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Library General Public License
for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA
Should you need to contact the author, you can do so by email to
<wsh@sprintmail.com>.
*/
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import javax.swing.border.*;
import java.net.*;
import java.io.*;
import java.util.*;
import java.text.*;
import javax.swing.event.*;
/**
* <p>Title: x10web</p>
* <p>Description: WEB applet for X10 Linux Universal Device Drivers</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author not attributable
* @version 1.1.0
*/
public class x10web extends Applet {
private boolean isStandalone = false;
public String devicebase;
public String server;
public Integer tcpport;
public Integer udpport;
Socket socketLog;
BufferedReader logIn;
OutputStreamWriter logOut;
boolean debug = false;
String housecode="A";
int presetdim=1;
logThread logThread = null;
GridBagLayout gridBagLog = new GridBagLayout();
x10Log logmodel = new x10Log();
JList listLog = new JList(logmodel);
JScrollPane scrollpaneLog = new JScrollPane(listLog);
GridBagLayout gridBagLayout = new GridBagLayout();
JPanel panelHC = new JPanel();
JPanel panelUC = new JPanel();
JPanel panelLog = new JPanel();
JPanel panelCMD = new JPanel();
GridBagLayout gridBagLayoutHC = new GridBagLayout();
GridBagLayout gridBagLayoutUC = new GridBagLayout();
GridBagLayout gridBagLayoutLog = new GridBagLayout();
GridBagLayout gridBagLayoutCMD = new GridBagLayout();
XRadioButton radioA = new XRadioButton("A","Housecode A");
XRadioButton radioB = new XRadioButton("B","Housecode B");
XRadioButton radioC = new XRadioButton("C","Housecode C");
XRadioButton radioD = new XRadioButton("D","Housecode D");
XRadioButton radioE = new XRadioButton("E","Housecode E");
XRadioButton radioF = new XRadioButton("F","Housecode F");
XRadioButton radioG = new XRadioButton("G","Housecode G");
XRadioButton radioH = new XRadioButton("H","Housecode H");
XRadioButton radioI = new XRadioButton("I","Housecode I");
XRadioButton radioJ = new XRadioButton("J","Housecode J");
XRadioButton radioK = new XRadioButton("K","Housecode K");
XRadioButton radioL = new XRadioButton("L","Housecode L");
XRadioButton radioM = new XRadioButton("M","Housecode M");
XRadioButton radioN = new XRadioButton("N","Housecode N");
XRadioButton radioO = new XRadioButton("O","Housecode O");
XRadioButton radioP = new XRadioButton("P","Housecode P");
Button buttonAUOFF = new Button();
Button buttonAON = new Button();
Button buttonAOFF = new Button();
XButton button1 = new XButton("1","Switch Unit 1");
XButton button2 = new XButton("2","Switch Unit 2");
XButton button3 = new XButton("3","Switch Unit 3");
XButton button4 = new XButton("4","Switch Unit 4");
XButton button5 = new XButton("5","Switch Unit 5");
XButton button16 = new XButton("16","Switch Unit 16");
XButton button13 = new XButton("13","Switch Unit 13");
XButton button14 = new XButton("14","Switch Unit 14");
XButton button15 = new XButton("15","Switch Unit 15");
XButton button6 = new XButton("6","Switch Unit 6");
XButton button7 = new XButton("7","Switch Unit 7");
XButton button8 = new XButton("8","Switch Unit 8");
XButton button9 = new XButton("9","Switch Unit 9");
XButton button10 = new XButton("10","Switch Unit 10");
XButton button11 = new XButton("11","Switch Unit 11");
XButton button12 = new XButton("12","Switch Unit 12");
Button buttonON = new Button();
Button buttonOFF = new Button();
Button buttonBRIGHT = new Button();
Button buttonDIM = new Button();
Button buttonEXTDATA = new Button();
JScrollBar scrollbarPRESETDIM = new JScrollBar();
JButton buttonPRESETDIM = new JButton();
Button buttonSTATUSON = new Button();
Button buttonSTATUSOFF = new Button();
Button buttonSTATUSREQ = new Button();
Button buttonHAILREQ = new Button();
Button buttonHAILACK = new Button();
Button buttonEXTCODE = new Button();
TextField textfieldEXTDATA = new TextField();
x10web_itemStateChanged itemStateChanged = new x10web_itemStateChanged(this);
x10web_actionPerformed actionPerformed = new x10web_actionPerformed(this);
JButton labelPRESETDIM = new JButton();
TitledBorder titledBorder1;
TitledBorder titledBorder2;
TitledBorder titledBorder3;
TitledBorder titledBorder4;
TitledBorder titledBorder5;
JLabel labelNotice = new JLabel();
JCheckBox checkboxSound = new JCheckBox();
ClassLoader cl = null;
AudioClip soundLog = null;
AudioClip soundButton = null;
Icon iconRadio = null;
Icon iconRadioSelected = null;
Icon iconRadioRollover = null;
Icon iconRadioRolloverSelected = null;
Icon iconRadioPressed = null;
Icon iconButton = null;
Icon iconButtonRollover = null;
Icon iconButtonRolloverSelected = null;
Icon iconButtonPressed = null;
ButtonGroup buttongroupHousecode = new ButtonGroup();
JPanel panelBlank1 = new JPanel();
JPanel panelBlank2 = new JPanel();
JPanel panelDimlevel = new JPanel();
GridBagLayout gridBagLayout1 = new GridBagLayout();
JTabbedPane tabs = new JTabbedPane();
JPanel tabAction = new JPanel();
GridBagLayout gridBagTabAction = new GridBagLayout();
XDetectedPanel tabDetected = new XDetectedPanel(16,16);
XStatusPanel tabStatus = new XStatusPanel(16,16);
String stringHC = "ABCDEFGHIJKLMNOP";
//Get a parameter value
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
private Icon getIcon(ClassLoader cl,String name){
try {
return new ImageIcon(cl.getResource(name));
} catch (Exception e){
System.out.println("Error getting resource "+name);
System.out.println("Error: "+e);
return null;
}
}
//Component initialization
private void jbInit() throws Exception {
int i,j;
cl = this.getClass().getClassLoader();
try {
soundLog = Applet.newAudioClip(cl.getResource("audio/log.wav"));
} catch (Exception e) { System.out.println("Error getting resource audio/log.wav"); }
try { soundButton = Applet.newAudioClip(cl.getResource("audio/button.wav"));
} catch (Exception e) { System.out.println("Error getting resource audio/button.wav"); }
iconRadio = getIcon(cl,"image/rb.gif");
iconRadioSelected = getIcon(cl,"image/rbs.gif");
iconRadioRollover = getIcon(cl,"image/rbr.gif");
iconRadioRolloverSelected = getIcon(cl,"image/rbrs.gif");
iconRadioPressed = getIcon(cl,"image/rbp.gif");
iconButton = getIcon(cl,"image/cb.gif");
iconButtonRollover = getIcon(cl,"image/cbs.gif");
iconButtonRolloverSelected = getIcon(cl,"image/cbr.gif");
iconButtonPressed = getIcon(cl,"image/cbrs.gif");
titledBorder1 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(142, 142, 178)),"Housecode");
titledBorder2 = new TitledBorder("");
titledBorder3 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(142, 142, 178)),"Unit");
titledBorder4 = new TitledBorder(BorderFactory.createEt
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
remote mangaer.gz_LINUX远程自动_java 远程控制_remote_远程控制 (174个子文件)
makesignedx10home.bat 314B
makex10web.bat 187B
makex10home.bat 160B
x10home.bat 56B
x10web.bat 53B
x10web.bat,v 363B
x10serv.c 16KB
x10serv.c,v 19KB
x10home.cfg 222B
x10web.class 27KB
x10home.class 20KB
X10Switch.class 13KB
x10PropertiesDialog.class 9KB
X10Object.class 7KB
x10home$actionAdapter.class 6KB
XDetectedPanel.class 5KB
XArrayPanel.class 4KB
X10Statemachine.class 4KB
x10home$logThread.class 3KB
x10web$logThread.class 3KB
XStatusPanel.class 2KB
x10PropertiesDialog$actionAdapter.class 2KB
XArrayPanel$XThread.class 2KB
XRadioButton.class 2KB
XCheckBox.class 2KB
X10Statemachine$address.class 1KB
x10PropertiesDialog$changeAdapter.class 1KB
XButton.class 1KB
X10Statemachine$capability.class 1KB
x10Log.class 1KB
x10Log.class 1KB
x10home$propertiesAdapter.class 1KB
x10home$switchAdapter.class 955B
X10Object$internalFrameAdapter.class 880B
X10Switch$changeListener.class 596B
X10Switch$actionAdapter.class 591B
X10Object$actionAdapter.class 591B
XDetectedPanel_componentAdapter.class 558B
x10web_checkboxSound_changeAdapter.class 502B
x10web_scrollbarPRESETDIM_adjustmentAdapter.class 494B
x10web_actionPerformed.class 458B
x10web_itemStateChanged.class 456B
x10home$1.class 383B
x10web$1.class 380B
codes.gif 72KB
cbrs.gif 1KB
cbr.gif 1KB
cbs.gif 1KB
cbs.gif 1KB
cb.gif 1KB
cb.gif 1KB
lts.gif 1003B
lt.gif 938B
ltr.gif 937B
redcancel.gif 933B
greenok.gif 908B
AutoAdd16.gif 902B
AutoAdd16.gif 902B
Tile16.gif 882B
Tile16.gif 882B
rbr.gif 703B
History16.gif 677B
History16.gif 677B
Help16.gif 661B
Information16.gif 661B
Help16.gif 661B
Cut16.gif 652B
Cut16.gif 652B
on.gif 639B
on.gif 639B
rbrs.gif 492B
rbs.gif 492B
Edit16.gif 441B
New16.gif 426B
New16.gif 426B
Properties16.gif 425B
off.gif 410B
Stop16.gif 410B
Stop16.gif 410B
rbp.gif 345B
rb.gif 336B
Paste16.gif 298B
Paste16.gif 298B
Print16.gif 293B
Print16.gif 293B
Copy16.gif 288B
Copy16.gif 288B
green.gif 287B
blue.gif 283B
Volume16.gif 257B
Volume16.gif 257B
Refresh16.gif 244B
Refresh16.gif 244B
AlignBottom16.gif 235B
AlignBottom16.gif 235B
plus.gif 215B
plus.gif 215B
Delete16.gif 208B
Delete16.gif 208B
Preferences16.gif 207B
共 174 条
- 1
- 2
资源评论
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 原生微信小程序源码 - -仿豆瓣图书
- 原生微信小程序源码 - -滴滴公交-查公交
- 人工智能实验四 感知器算法的设计实现
- java小项目多线程多线程 复制文件 冒泡排序 群聊
- 四数之和(java代码).docx
- 701837906919458TapScanner v3.0.10 (Pro).apk
- 青岛大学人工智能实验二 利用α-β搜索的博弈树算法编写一字棋游戏
- ### 1、项目介绍 本项目Scrapy进行数据爬取,并使用Django框架+PyEcharts实现可视化大屏 效果如下:
- # 微信小程序-健康菜谱 基于微信小程序的一个查找检索菜谱的应用 ### 效果 !动态图(./res/gif/demo
- zabbix-get命令包资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功