public class EditLegacyModuleControllerActivity extends EditUSBDeviceActivity
EditActivity.ConfigurationTypeAndDisplayName, EditActivity.DisplayNameAndInteger, EditActivity.DisplayNameAndRequestCode, EditActivity.SetNameTextWatcher
Modifier and Type | Field and Description |
---|---|
static RequestCode |
requestCode |
extraUSBDevices
appUtil, 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, swapConfiguration
clearNameIfNecessary, 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, sendOrInject
public static final RequestCode requestCode
public java.lang.String getTag()
getTag
in class EditUSBDeviceActivity
protected void onCreate(Bundle savedInstanceState)
onCreate
in class EditActivity
protected void refreshSerialNumber()
refreshSerialNumber
in class EditUSBDeviceActivity
protected void onStart()
onStart
in class EditActivity
protected void onActivityResult(int requestCodeValue, int resultCode, Intent data)
public void onDoneButtonPressed(View v)
protected void finishOk()
finishOk
in class EditActivity
public void onCancelButtonPressed(View v)
public void onFixButtonPressed(View v)
public void onSwapButtonPressed(View view)
protected void clearDevice(View itemView)
clearDevice
in class EditActivity
itemView
- - the view that holds all the necessary UI elementsprotected void changeDevice(View itemView, ConfigurationType type)
changeDevice
in class EditActivity
itemView
- - - 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