list.setModel(model);
tabControls.validate();
}
private void enableControls() {
Auth auth = api.getAuth();
txtDescription.setEnabled(auth.isPermitted("objects:update"));
txtName.setEnabled(auth.isPermitted("objects:update"));
txtProtocol.setEnabled(!btnVirtual.isSelected() && auth.isPermitted("objects:update"));
txtAddress.setEnabled(!btnVirtual.isSelected() && auth.isPermitted("objects:update"));
btnVirtual.setEnabled(auth.isPermitted("objects:update"));
btnChangeImage.setEnabled(auth.isPermitted("objects:update"));
spnRotation.setEnabled(auth.isPermitted("objects:update"));
spnScaleHeight.setEnabled(auth.isPermitted("objects:update"));
spnScaleWidth.setEnabled(auth.isPermitted("objects:update"));
spnX.setEnabled(auth.isPermitted("objects:update"));
spnY.setEnabled(auth.isPermitted("objects:update"));
environmentComboBox.setEditable(auth.isPermitted("objects:update"));
btnDelete.setEnabled(auth.isPermitted("objects:delete"));
}