Example usage for java.awt.event ItemEvent SELECTED

List of usage examples for java.awt.event ItemEvent SELECTED

Introduction

In this page you can find the example usage for java.awt.event ItemEvent SELECTED.

Prototype

int SELECTED

To view the source code for java.awt.event ItemEvent SELECTED.

Click Source Link

Document

This state-change value indicates that an item was selected.

Usage

From source file:com.osparking.osparking.Settings_System.java

private void E_Board2_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_E_Board2_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(2, E_Board);
        changeTCP_VS_COM(E_Board, 2);//from w w  w .ja  v a 2 s. com
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void E_Board3_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_E_Board3_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(3, E_Board);
        changeTCP_VS_COM(E_Board, 3);//from   w  ww . j av a 2  s . c  o m
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void GateBar1_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar1_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(1, GateBar);
        changeTCP_VS_COM(GateBar, 1);/* w w  w.  j  a  v  a  2  s  .  c o m*/
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void GateBar2_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar2_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(2, GateBar);
        changeTCP_VS_COM(GateBar, 2);//from w w  w . j a v  a 2 s .c o  m
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void GateBar3_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar3_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(3, GateBar);
        changeTCP_VS_COM(GateBar, 3);/*from   w w w .  j  a  v  a  2s  . c o m*/
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void GateBar4_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar4_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(4, GateBar);
        changeTCP_VS_COM(GateBar, 4);/*from w  ww  . j  av  a  2s. c o  m*/
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void PWStrengthChoiceComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_PWStrengthChoiceComboBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        if (PWStrengthChoiceComboBox.getSelectedIndex() == pwStrengthLevel) {
            changedControls.remove(PWStrengthChoiceComboBox);
        } else {//from   ww  w . j a  v  a2 s. c  o  m
            changedControls.add(PWStrengthChoiceComboBox);
        }
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void OptnLoggingLevelComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_OptnLoggingLevelComboBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        if (OptnLoggingLevelComboBox.getSelectedIndex() == opLoggingIndex) {
            changedControls.remove(OptnLoggingLevelComboBox);
        } else {//from  w w  w . j a  v a  2  s  . c o  m
            changedControls.add(OptnLoggingLevelComboBox);
        }
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void LanguageBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_LanguageBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        if (LanguageBox.getSelectedIndex() == localeIndex) {
            changedControls.remove(LanguageBox);
        } else {//from w  w  w.j av  a2 s  . co m
            changedControls.add(LanguageBox);
        }
    }
}

From source file:com.osparking.osparking.Settings_System.java

private void MessageMaxLineComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_MessageMaxLineComboBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        short lines = (short) Integer.parseInt((String) MessageMaxLineComboBox.getSelectedItem());

        if (lines == maxMessageLines) {
            changedControls.remove(MessageMaxLineComboBox);
        } else {/*w  w  w .j av a 2  s.c  om*/
            changedControls.add(MessageMaxLineComboBox);
        }
    }
}