protected void updateMechSearchFilter(){
  mechFilter.isDisabled=false;
  mechFilter.sWalk=tWalk.getText();
  mechFilter.iWalk=cWalk.getSelectedIndex();
  mechFilter.sJump=tJump.getText();
  mechFilter.iJump=cJump.getSelectedIndex();
  mechFilter.iArmor=cArmor.getSelectedIndex();
  mechFilter.sStartYear=tStartYear.getText();
  mechFilter.sEndYear=tEndYear.getText();
  mechFilter.checkArmorType=cbxEnableArmorSearch.isSelected();
  if (cbxEnableArmorSearch.isSelected()) {
    mechFilter.armorType=cboArmorType.getSelectedIndex();
  }
  mechFilter.checkInternalsType=cbxEnableInternalsSearch.isSelected();
  if (cbxEnableInternalsSearch.isSelected()) {
    mechFilter.internalsType=cboInternalsType.getSelectedIndex();
  }
  mechFilter.checkCockpitType=cbxEnableCockpitSearch.isSelected();
  if (cbxEnableCockpitSearch.isSelected()) {
    mechFilter.cockpitType=cboCockpitType.getSelectedIndex();
  }
}

protected void updateMechSearchFilter ( ) { mechFilter . isDisabled = false ; mechFilter . sWalk = tWalk . getText ( ) ; mechFilter . iWalk = cWalk . getSelectedIndex ( ) ; mechFilter . sJump = tJump . getText ( ) ; mechFilter . iJump = cJump . getSelectedIndex ( ) ; mechFilter . iArmor = cArmor . getSelectedIndex ( ) ; mechFilter . sStartYear = tStartYear . getText ( ) ; mechFilter . sEndYear = tEndYear . getText ( ) ; mechFilter . checkArmorType = cbxEnableArmorSearch . isSelected ( ) ; if ( cbxEnableArmorSearch . isSelected ( ) ) { mechFilter . armorType = cboArmorType . getSelectedIndex ( ) ; } mechFilter . checkInternalsType = cbxEnableInternalsSearch . isSelected ( ) ; if ( cbxEnableInternalsSearch . isSelected ( ) ) { mechFilter . internalsType = cboInternalsType . getSelectedIndex ( ) ; } mechFilter . checkCockpitType = cbxEnableCockpitSearch . isSelected ( ) ; if ( cbxEnableCockpitSearch . isSelected ( ) ) { mechFilter . cockpitType = cboCockpitType . getSelectedIndex ( ) ; } }
update the search fields that aren ' t automatically updated .
