Example usage for java.awt.event ItemEvent getStateChange

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

Introduction

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

Prototype

public int getStateChange() 

Source Link

Document

Returns the type of state change (selected or deselected).

Usage

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

private void GateBar1_TypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar1_TypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_DeviceTypeChanged(1, GateBar);
        setPortNumber(GateBar, GateBar1_TypeCBox.getSelectedItem(), (byte) 1, GateBar1_Port_TextField);
    }//  ww  w  .  ja  v a2s. c  om
}

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

private void GateBar2_TypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar2_TypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_DeviceTypeChanged(2, GateBar);
        setPortNumber(GateBar, GateBar2_TypeCBox.getSelectedItem(), (byte) 2, GateBar2_Port_TextField);
    }/*  ww  w. j  ava2  s.c o  m*/
}

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

private void GateBar3_TypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar3_TypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_DeviceTypeChanged(3, GateBar);
        setPortNumber(GateBar, GateBar3_TypeCBox.getSelectedItem(), (byte) 3, GateBar3_Port_TextField);
    }//from   w  w  w.  java  2 s .com
}

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

private void GateBar4_TypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_GateBar4_TypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_DeviceTypeChanged(4, GateBar);
        setPortNumber(GateBar, GateBar4_TypeCBox.getSelectedItem(), (byte) 4, GateBar4_Port_TextField);
    }/*from   w  w w . j  a  v  a  2 s  . c o m*/
}

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

private void FlowingComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_FlowingComboBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        String newFlowCycleStr = ((String) FlowingComboBox.getSelectedItem()).replace(",", "");

        if (Integer.parseInt(newFlowCycleStr) == EBD_flowCycle) {
            changedControls.remove(FlowingComboBox);
        } else {/*w  w w .ja  v a 2s  .c  o m*/
            changedControls.add(FlowingComboBox);
        }
    }
}

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

private void E_Board4_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_E_Board4_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(4, E_Board);
        changeTCP_VS_COM(E_Board, 4);/*w  w  w.j a  v a2 s.  c o  m*/
    }
}

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

private void E_Board1_connTypeCBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_E_Board1_connTypeCBoxItemStateChanged
    if (evt.getStateChange() == ItemEvent.SELECTED) {
        setButtonEnabled_If_ConnTypeChanged(1, E_Board);
        changeTCP_VS_COM(E_Board, 1);//from  ww  w .java2 s  .co  m
    }
}

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   www. j  a  va2 s . co  m
    }
}

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 ava  2s  .co 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 av a2  s  .c om*/
    }
}