public Object getControlValue()
    {
        short iFieldValue = 0;
        for (int iBitNumber = 0; iBitNumber < this.getComponentCount(); iBitNumber++)
        {
            JCheckBox checkBox = (JCheckBox)this.getComponent(iBitNumber);
            boolean bState = checkBox.isSelected();
            if (!m_bCheckedIsOn)
                bState = !bState; // Do opposite operation
            if (bState)
                iFieldValue |= (1 << iBitNumber);   // Set the bit
            else
                iFieldValue &= ~(1 << iBitNumber);  // Clear the bit
        }
        return new Short(iFieldValue);
    }
public Object getControlValue ( ) { short iFieldValue = 0 ; for ( int iBitNumber = 0 ; iBitNumber < this . getComponentCount ( ) ; iBitNumber ++ ) { JCheckBox checkBox = ( JCheckBox ) this . getComponent ( iBitNumber ) ; boolean bState = checkBox . isSelected ( ) ; if ( ! m_bCheckedIsOn ) bState = ! bState ; if ( bState ) iFieldValue |= ( 1 << iBitNumber ) ; else iFieldValue &= ~ ( 1 << iBitNumber ) ; } return new Short ( iFieldValue ) ; }
Get the value (On, Off or Null).
@return The raw data (a Short object).