Package se.sics.mrm.ChannelModel

Examples of se.sics.mrm.ChannelModel.Parameter


    textField.setColumns(4);
    textField.putClientProperty("id", id);
    textField.addPropertyChangeListener("value", new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent e) {
        JFormattedTextField textField = (JFormattedTextField) e.getSource();
        Parameter id = (Parameter) textField.getClientProperty("id");
        Double val = ((Number) e.getNewValue()).doubleValue();
        channelModel.setParameterValue(id, val);
        if (!Parameter.getDefaultValue(id).equals(val)) {
          textField.setBackground(Color.LIGHT_GRAY);
          textField.setToolTipText("Default value: " + Parameter.getDefaultValue(id));
View Full Code Here


    textField.setColumns(4);
    textField.putClientProperty("id", id);
    textField.addPropertyChangeListener("value", new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent e) {
        JFormattedTextField textField = (JFormattedTextField) e.getSource();
        Parameter id = (Parameter) textField.getClientProperty("id");
        Integer val = ((Number) e.getNewValue()).intValue();
        channelModel.setParameterValue(id, val);
        if (!Parameter.getDefaultValue(id).equals(val)) {
          textField.setBackground(Color.LIGHT_GRAY);
          textField.setToolTipText("Default value: " + Parameter.getDefaultValue(id));
View Full Code Here

    checkBox.setSelected(initialValue);
    checkBox.putClientProperty("id", id);
    checkBox.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JCheckBox checkBox = (JCheckBox) e.getSource();
        Parameter id = (Parameter) checkBox.getClientProperty("id");
        Object val = new Boolean(checkBox.isSelected());
        channelModel.setParameterValue(id, val);
        if (!Parameter.getDefaultValue(id).equals(val)) {
          checkBox.setText("<");
        } else {
View Full Code Here

TOP

Related Classes of se.sics.mrm.ChannelModel.Parameter

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.