public class EditLegacyModuleControllerActivity extends EditUSBDeviceActivity
EditActivity.ConfigurationTypeAndDisplayName, EditActivity.DisplayNameAndInteger, EditActivity.DisplayNameAndRequestCode, EditActivity.SetNameTextWatcher| Modifier and Type | Field and Description |
|---|---|
static RequestCode |
requestCode |
extraUSBDevicesappUtil, configurationUtility, context, controllerConfiguration, currentCfgFile, extantRobotConfigurations, haveRobotConfigMapParameter, idAddButton, idFixButton, idSwapButton, remoteConfigure, robotConfigFileManager, robotConfigMap, scannedDevices, spinnerListener, TAG, utility| Constructor and Description |
|---|
EditLegacyModuleControllerActivity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeDevice(View itemView,
ConfigurationType type)
Updates the module behind the scenes to the type that was selected on the spinner.
|
protected void |
clearDevice(View itemView)
Sets device to a non-attached device (name "NO DEVICE ATTACHED" and name field grayed out).
|
void |
editController_portALL(View v)
When the drop-down item is a Controller, this button appears.
|
protected void |
finishOk() |
java.lang.String |
getTag() |
protected void |
onActivityResult(int requestCodeValue,
int resultCode,
Intent data) |
void |
onCancelButtonPressed(View v) |
protected void |
onCreate(Bundle savedInstanceState)
In onCreate, we gather all of the linearLayout's that are associated with each port.
|
void |
onDoneButtonPressed(View v) |
void |
onFixButtonPressed(View v) |
protected void |
onStart() |
void |
onSwapButtonPressed(View view) |
protected void |
refreshSerialNumber() |
completeSwapConfiguration, deserialize, determineExtraUSBDevices, fixConfiguration, getFixableCandidate, isFixable, isSwappable, refreshAfterFix, refreshAfterSwap, showButton, showFixButton, showFixSwapButtons, showSwapButton, swapConfigurationclearNameIfNecessary, deserializeConfigMap, disabledDeviceName, displayNameOfConfigurationType, findPosition, findPosition, finishCancel, finishOk, finishOk, formatSerialNumber, getDefaultEnabledSelection, getRobotConfigMap, handleCommandNotifyActiveConfig, handleLaunchEdit, handleLaunchEdit, handleLaunchEdit, handleSpinner, handleSpinner, localizeConfigTypeSpinner, localizeConfigTypeSpinnerStrings, localizeConfigTypeSpinnerTypes, logActivityResult, logBackPressed, nameOf, nameOf, onBackPressed, sendOrInjectpublic static final RequestCode requestCode
public java.lang.String getTag()
getTag in class EditUSBDeviceActivityprotected void onCreate(Bundle savedInstanceState)
onCreate in class EditActivityprotected void refreshSerialNumber()
refreshSerialNumber in class EditUSBDeviceActivityprotected void onStart()
onStart in class EditActivityprotected void onActivityResult(int requestCodeValue,
int resultCode,
Intent data)
public void onDoneButtonPressed(View v)
protected void finishOk()
finishOk in class EditActivitypublic void onCancelButtonPressed(View v)
public void onFixButtonPressed(View v)
public void onSwapButtonPressed(View view)
protected void clearDevice(View itemView)
clearDevice in class EditActivityitemView - - the view that holds all the necessary UI elementsprotected void changeDevice(View itemView,
ConfigurationType type)
changeDevice in class EditActivityitemView - - - the view that holds all the necessary UI elementstype - - the new type that was just selectedpublic void editController_portALL(View v)
v - - the button that got pressed