Package ca.canucksoftware.webos

Examples of ca.canucksoftware.webos.DeviceInfo


        selected = new PackageEntry[9];
        webOS = wc;
        pkgMgr = pm;
        t = new Timer();
        if(!webOS.isConnected()) {
            DeviceInfo info = webOS.getDeviceInfo();
            if(info!=null && !info.model().equals(DeviceInfo.Model.Unknown.toString())) {
                JOptionPane.showMessageDialog(rootPane, MessageFormat.format(bundle
                        .getString("{0}_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."),
                        new Object[] {info.model()}));
            } else {
                JOptionPane.showMessageDialog(rootPane, bundle
                        .getString("DEVICE_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."));
            }
            t.schedule(new DoDispose(), 200);
View Full Code Here


                    jTextField1.setText(src.getCanonicalPath());
                } catch(Exception e){}
            }
        });
        if(!webOS.isConnected()) {
            DeviceInfo info = webOS.getDeviceInfo();
            if(info!=null && !info.model().equals(DeviceInfo.Model.Unknown.toString())) {
                JOptionPane.showMessageDialog(rootPane, MessageFormat.format(bundle
                        .getString("{0}_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."),
                        new Object[] {info.model()}));
            } else {
                JOptionPane.showMessageDialog(rootPane, bundle
                        .getString("DEVICE_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."));
            }
            t.schedule(new DoDispose(), 200);
View Full Code Here

        bundle = WebOSQuickInstallApp.bundle;
        initComponents();
        t = new Timer();
        webOS = connection;
        if(!webOS.isConnected()) {
            DeviceInfo info = webOS.getDeviceInfo();
            if(info!=null && !info.model().equals(DeviceInfo.Model.Unknown.toString())) {
                JOptionPane.showMessageDialog(rootPane, MessageFormat.format(bundle
                        .getString("{0}_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."),
                        new Object[] {info.model()}));
            } else {
                JOptionPane.showMessageDialog(rootPane, bundle
                        .getString("DEVICE_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."));
            }
            t.schedule(new DoDispose(), 200);
View Full Code Here

        modTable = (DefaultTableModel) jTable1.getModel();
        modTable.addRow(new Object[] {bundle.getString("LOADING_LIST..."),Boolean.FALSE});
        this.getContentPane().requestFocus();
        t = new Timer();
        if(!webOS.isConnected()) {
            DeviceInfo info = webOS.getDeviceInfo();
            if(info!=null && !info.model().equals(DeviceInfo.Model.Unknown.toString())) {
                JOptionPane.showMessageDialog(rootPane, MessageFormat.format(bundle
                        .getString("{0}_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."),
                        new Object[] {info.model()}));
            } else {
                JOptionPane.showMessageDialog(rootPane, bundle
                        .getString("DEVICE_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."));
            }
            t.schedule(new DoDispose(), 200);
View Full Code Here

        }
    }


    private void loadDeviceDetails() {
        DeviceInfo info = webOS.getDeviceInfo();
        URL imgURL;
        if(info.model().equals(DeviceInfo.Model.Emulator.toString())) {
            imgURL = getClass().getResource("resources/Emulator 64x64.png");
        } else if(info.model().equals(DeviceInfo.Model.Palm_Pixi.toString()) ||
                info.model().equals(DeviceInfo.Model.Palm_Pixi_Plus.toString())) {
            imgURL = getClass().getResource("resources/Palm Pixi 64x64.png");
        } else if(info.model().equals(DeviceInfo.Model.Palm_Pre.toString()) ||
                info.model().equals(DeviceInfo.Model.Palm_Pre_Plus.toString())) {
            imgURL = getClass().getResource("resources/Palm Pre 64x64.png");
        } else if(info.model().equals(DeviceInfo.Model.Palm_Pre_2.toString())) {
            imgURL = getClass().getResource("resources/Palm Pre 2 64x64.png");
        } else if(info.model().equals(DeviceInfo.Model.HP_Veer.toString())) {
            imgURL = getClass().getResource("resources/HP Veer 64x64.png");
        } else if(info.model().equals(DeviceInfo.Model.HP_TouchPad.toString())) {
            imgURL = getClass().getResource("resources/HP TouchPad 64x64.png");
        } else if(info.model().equals(DeviceInfo.Model.HP_Pre_3.toString())) {
            imgURL = getClass().getResource("resources/HP Pre 3 64x64.png");
        } else { //unknown
            imgURL = getClass().getResource("resources/Palm Pre 2 64x64.png");
        }
        jLabel7.setIcon(new ImageIcon(imgURL));
        jLabel2.setText(bundle.getString("DEVICE:") + "    " + info.name());
        jLabel1.setText(bundle.getString("OS:") + "    webOS " + info.version());
        jLabel5.setText(bundle.getString("ARCHITECTURE:") + "    " + info.arch());
        jLabel10.setText(bundle.getString("BUILD_NAME:") + "    " + info.buildName());
        jLabel4.setText(bundle.getString("BUILD_TIME:") + "    " + info.buildTime());

        if(!info.model().equals(DeviceInfo.Model.Emulator.toString())) {
            try {
                String out = webOS.runProgram("/bin/grep", new String[] {"-e", "Processor",
                        "-e", "BogoMIPS", "-e", "Hardware", "/proc/cpuinfo"});
                String[] tokens = out.split("\n");
                for(int i=0; i<tokens.length; i++) {
View Full Code Here

        initComponents();
        t = new Timer();
        webOS = connection;
        items = list;
        if(!webOS.isConnected()) {
            DeviceInfo info = webOS.getDeviceInfo();
            if(info!=null && !info.model().equals(DeviceInfo.Model.Unknown.toString())) {
                JOptionPane.showMessageDialog(rootPane, MessageFormat.format(bundle
                        .getString("{0}_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."),
                        new Object[] {info.model()}));
            } else {
                JOptionPane.showMessageDialog(rootPane, bundle
                        .getString("DEVICE_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."));
            }
            t.schedule(new DoDispose(), 200);
View Full Code Here

        webOS = connection;
        dest = null;
        transferStarted = false;
        t = new Timer();
        if(!webOS.isConnected()) {
            DeviceInfo info = webOS.getDeviceInfo();
            if(info!=null && !info.model().equals(DeviceInfo.Model.Unknown.toString())) {
                JOptionPane.showMessageDialog(rootPane, MessageFormat.format(bundle
                        .getString("{0}_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."),
                        new Object[] {info.model()}));
            } else {
                JOptionPane.showMessageDialog(rootPane, bundle
                        .getString("DEVICE_IS_DISCONNECTED._PLEASE_RECONNECT_THEN_TRY_AGAIN."));
            }
            t.schedule(new DoDispose(), 200);
View Full Code Here

TOP

Related Classes of ca.canucksoftware.webos.DeviceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.